hardmultiple choiceObjective-mapped

A web application runs in Azure App Service and uploads files to Azure Blob Storage. The storage account has shared key access disabled, and the app must not store secrets in configuration. If the App Service is deleted and recreated later, the storage access should be removed automatically with the app. What should you configure?

Question 1hardmultiple choice
Full question →

A web application runs in Azure App Service and uploads files to Azure Blob Storage. The storage account has shared key access disabled, and the app must not store secrets in configuration. If the App Service is deleted and recreated later, the storage access should be removed automatically with the app. What should you configure?

Answer choices

Why each option matters

Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.

A

Best answer

A system-assigned managed identity with Blob Data Contributor permissions on the container.

A system-assigned managed identity is tied directly to the App Service instance and disappears when the app is deleted, which satisfies the automatic cleanup requirement. Because shared key access is disabled and secrets are not allowed in configuration, the app should authenticate through Microsoft Entra ID using the managed identity. Assigning Blob Data Contributor at the appropriate scope allows upload access without storing credentials.

B

Distractor review

A user-assigned managed identity with Blob Data Reader permissions on the storage account.

A user-assigned identity can be reused, but it does not disappear when the App Service is deleted, and Reader does not allow uploads.

C

Distractor review

A shared access signature generated from the storage account key.

A SAS derived from the account key still depends on shared key access and introduces a secret that must be managed.

D

Distractor review

A storage account access key stored in an application setting.

An access key is a long-lived secret and directly violates the no-secrets requirement in the scenario.

Common exam trap

Common exam trap: NAT rules depend on direction and matching traffic

NAT is not only about the public address. The inside/outside interface roles and the ACL or rule that matches traffic are just as important.

Technical deep dive

How to think about this question

NAT questions usually test address translation, overload/PAT behaviour, static mappings and whether the right traffic is being translated. Read the interface direction and address terms carefully.

KKey Concepts to Remember

  • Static NAT maps one inside address to one outside address.
  • PAT allows many inside hosts to share one public address using ports.
  • Inside local and inside global describe the private and translated addresses.
  • NAT ACLs identify traffic for translation, not always security filtering.

TExam Day Tips

  • Identify inside and outside interfaces first.
  • Check whether the scenario needs static NAT, dynamic NAT or PAT.
  • Do not confuse NAT matching ACLs with normal packet-filtering intent.

Related practice questions

Related AZ-104 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

More questions from this exam

Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.

FAQ

Questions learners often ask

What does this AZ-104 question test?

Static NAT maps one inside address to one outside address.

What is the correct answer to this question?

The correct answer is: A system-assigned managed identity with Blob Data Contributor permissions on the container. — The best choice is a system-assigned managed identity because it gives the application a credential-free way to authenticate to Blob Storage through Microsoft Entra ID. The identity is lifecycle-bound to the App Service, so if the app is deleted, the identity is removed automatically. Since the app only needs to upload files, you can grant the required Blob Data Contributor permission at the narrowest appropriate scope without exposing keys or SAS tokens. Why others are wrong: A user-assigned identity can also avoid secrets, but it is not automatically removed when the app is deleted. Blob Data Reader would not permit uploads. SAS tokens and account keys both depend on secret material, which conflicts with the requirement to avoid storing credentials in configuration and with shared key access being disabled.

What should I do if I get this AZ-104 question wrong?

Then try more questions from the same exam bank and focus on understanding why the wrong options are tempting.

Discussion

Loading comments…

Sign in to join the discussion.