hardmulti selectObjective-mapped

A web app uses a managed identity to read blobs from a storage account. Security now wants to ensure no future requests can authenticate with shared keys and the app should continue to use secretless access. Which two changes should the administrator make? Select two.

Question 1hardmulti select
Full question →

A web app uses a managed identity to read blobs from a storage account. Security now wants to ensure no future requests can authenticate with shared keys and the app should continue to use secretless access. Which two changes should the administrator make? Select two.

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

Assign the Storage Blob Data Reader role to the managed identity on the storage account or container.

The data-plane role authorizes blob reads for the managed identity without storing secrets in the application.

B

Best answer

Disable shared key access on the storage account.

Disabling shared key access blocks account-key authentication and forces Entra-based data access instead.

C

Distractor review

Generate a service SAS and place it in an app setting.

A SAS in app settings reintroduces a secret and undermines the goal of a secretless design.

D

Distractor review

Rotate the storage account keys weekly.

Rotating keys does not eliminate key-based authentication and still leaves secrets in active use.

E

Distractor review

Grant Reader access to the resource group because it includes the storage account.

Reader is a management-plane role and does not grant blob data access for reading objects.

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: Assign the Storage Blob Data Reader role to the managed identity on the storage account or container. — Because the app already uses a managed identity, the storage account should authorize that identity directly with the Storage Blob Data Reader role. To prevent any future app from falling back to account keys, shared key access should be disabled at the storage account level. That combination preserves secretless access for the app while eliminating a major authentication path that the security team no longer wants to permit. Why others are wrong: A SAS stored in an app setting reintroduces a secret. Rotating account keys still relies on shared keys rather than removing them. Reader access on the resource group only affects management operations and does not authorize blob reads, so it cannot replace the data-plane role.

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.