mediummultiple choiceObjective-mapped

Three Azure VMs run the same scheduled script and must access both Storage and Key Vault. The team wants one identity that can be reused if a VM is rebuilt, and they do not want the identity tied to a single machine. What should the administrator create?

Question 1mediummultiple choice
Full question →

Three Azure VMs run the same scheduled script and must access both Storage and Key Vault. The team wants one identity that can be reused if a VM is rebuilt, and they do not want the identity tied to a single machine. What should the administrator create?

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 system-assigned managed identity on each virtual machine.

This creates a separate identity per VM and the identity lifecycle follows each machine individually.

B

Distractor review

A service principal with a certificate file copied to each VM.

This still introduces certificate management and is not as clean as a reusable Azure-managed identity.

C

Best answer

A user-assigned managed identity attached to all three virtual machines.

A user-assigned managed identity can be shared across multiple VMs and reused independently of any one VM.

D

Distractor review

A shared access signature for each storage account and Key Vault access policy.

SAS tokens and ad hoc access policies do not provide one reusable identity for both services and multiple VMs.

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 user-assigned managed identity attached to all three virtual machines. — A user-assigned managed identity is ideal when the same Azure identity must be attached to multiple resources and survive VM rebuilds. Because it is created separately from the virtual machines, it can be reused across the three VMs and kept even if one machine is reimaged or replaced. This provides a cleaner, centrally managed authentication model than secrets or per-VM identities. Why others are wrong: Option A binds an identity to each VM, which does not meet the requirement for reuse across machines. Option B still depends on certificate distribution and lifecycle management. Option D is not an identity strategy and would not provide a single reusable principal for both Storage and Key Vault access.

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.