Skip to main content
  1. Public practice questions
  2. AZ-104 Practice Exams | Azure Administrator Associate
  3. AZ-104 Practice Exam 3

Question 45 — AZ-104 Practice Exam 3

You’re building an app on Azure that reads and writes blobs. Security mandates no embedded secrets in code or configurations, and operations wants the simplest ongoing access management. What should you implement? (Select one answer)

  1. Use Shared Key and store the account key in an app setting.

  2. Use Microsoft Entra ID with a managed identity and assign the appropriate RBAC role for Blob Data.

  3. Use a SAS generated from the account key and hardcode it in the app for a year.

  4. Enable anonymous access on the container so the app doesn’t need credentials.

Correct answers

  1. Use Microsoft Entra ID with a managed identity and assign the appropriate RBAC role for Blob Data.

Explanations

Correct:
Use Microsoft Entra ID with a managed identity and assign the appropriate RBAC role for Blob Data. Managed identities avoid secrets, and RBAC provides least-privilege authorization with simple lifecycle management.

Wrong:
Use Shared Key and store the account key in an app setting. Stores a high-privilege secret; not aligned with “no embedded secrets.”
Use a SAS… hardcode it in the app for a year. Embeds credentials and increases risk; long-lived SAS is difficult to rotate.
Enable anonymous access… Public access is not appropriate for read/write to private data.