mediummultiple choiceObjective-mapped

A web app running in Azure App Service must upload files to a blob container. The team wants to avoid storing any secrets in application settings and wants the app to authenticate without a password or access key. What should the administrator configure?

Question 1mediummultiple choice
Full question →

A web app running in Azure App Service must upload files to a blob container. The team wants to avoid storing any secrets in application settings and wants the app to authenticate without a password or access key. What should the administrator 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

Distractor review

Store the storage account key in the app configuration and use it from the application

Account keys work, but they create secret management overhead and are not credential-free.

B

Best answer

Enable a system-assigned managed identity for the app and grant it a storage data role

Managed identity allows the app to authenticate to Storage with Microsoft Entra ID and no stored secret.

C

Distractor review

Create an anonymous public container so the app can upload without authentication

Anonymous access is insecure and does not provide the required controlled upload authentication.

D

Distractor review

Use a shared access signature generated from the storage account root key

A SAS is temporary, but generating it from an account key still depends on a stored secret.

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: Enable a system-assigned managed identity for the app and grant it a storage data role — A system-assigned managed identity is the most appropriate choice because it gives the App Service instance its own identity in Microsoft Entra ID without requiring stored credentials. You then grant the identity a storage data role such as Storage Blob Data Contributor at the appropriate scope. This approach is operationally safer than embedding account keys or long-lived secrets in application settings, and it is easier to rotate because there is no secret to manage in the application itself. Why others are wrong: Using an account key or a SAS generated from an account key still introduces shared secret management. Anonymous public access is not acceptable for a controlled upload scenario. The key requirement is credential-free authentication from the workload itself, which managed identity provides.

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.