easymultiple choiceObjective-mapped

A VM-hosted application must read blobs from an Azure Storage account without storing any secret in code or configuration. Which identity should you enable on the VM?

Question 1easymultiple choice
Full question →

A VM-hosted application must read blobs from an Azure Storage account without storing any secret in code or configuration. Which identity should you enable on the VM?

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

A storage account access key

An access key works, but it is a shared secret that must be stored and protected somewhere.

B

Best answer

A system-assigned managed identity

A system-assigned managed identity is tied to the VM and lets the application authenticate to Azure services without storing credentials. Azure can issue tokens for the identity automatically, and the identity is removed when the VM is deleted. This is the simplest credential-free option for a single VM that needs access to Storage or other Azure resources.

C

Distractor review

A shared access signature (SAS) token

A SAS token can limit access, but it is still a secret that must be issued, stored, and eventually rotated.

D

Distractor review

A local administrator account on the VM

A local admin account controls access to the operating system, not Azure Storage authorization.

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 — A system-assigned managed identity is the best choice when one VM needs to access Azure resources without embedded secrets. The identity is created and managed by Azure, so the application can obtain tokens directly instead of using passwords, keys, or connection strings. Because it is bound to that VM, it is a clean fit for a single server scenario and reduces secret management overhead and exposure. Why others are wrong: A storage account key and a SAS token both rely on shared secrets, which the question explicitly wants to avoid. A local administrator account is only for operating system access and does not authorize access to Azure Storage. The managed identity is the only option that gives Azure-native authentication without keeping credentials in application settings.

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.