easymultiple choiceObjective-mapped

Exhibit

Identity requirement:
- VM1 in rg-web
- VM2 in rg-api
- VM3 in rg-batch
- All three VMs need the same access to an Azure service
- The identity must not disappear when any one VM is deleted

Based on the exhibit, three VMs in different resource groups must use the same Azure identity, and the identity must continue working if one VM is deleted and recreated. What should you use?

Question 1easymultiple choice
Full question →

Based on the exhibit, three VMs in different resource groups must use the same Azure identity, and the identity must continue working if one VM is deleted and recreated. What should you use?

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 VM.

A system-assigned identity is tied to one specific VM, so it does not meet the requirement for one shared identity across multiple VMs.

B

Best answer

A user-assigned managed identity attached to all three VMs.

A user-assigned managed identity is correct because it is created independently from any single VM and can be attached to multiple resources. That makes it ideal when several VMs need the same identity and the identity must remain available even if one VM is deleted and recreated.

C

Distractor review

A service principal stored in the VM image.

A service principal stored in an image introduces secret management problems and does not provide the clean Azure-managed identity model described in the scenario.

D

Distractor review

A shared access signature assigned to the resource group.

A SAS token is not an identity and cannot be attached to VMs as a reusable Azure login mechanism.

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 VMs. — A user-assigned managed identity is the right choice because the same identity must be shared by multiple VMs and continue existing independently of any one machine. Unlike a system-assigned identity, it is not deleted when the VM goes away. That makes it the safest and most flexible option when you need a common Azure identity across several compute resources. Why others are wrong: A system-assigned identity belongs to one VM only. A service principal requires managing secrets and is not the preferred approach for Azure compute identity in this scenario. A SAS token is for limited data access and is not a reusable machine identity.

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.