easymultiple choiceObjective-mapped

Exhibit

Workload note:
- VM01 and VM02 both need to read the same Azure SQL connection metadata from an app registration-protected service.
- The identity must be reusable across multiple VMs.
- The team wants to avoid secrets in scripts and configuration.

Based on the exhibit, which identity approach should the administrator use so both VMs can share the same access without managing secrets or recreating role assignments when a VM is replaced?

Question 1easymultiple choice
Full question →

Based on the exhibit, which identity approach should the administrator use so both VMs can share the same access without managing secrets or recreating role assignments when a VM is replaced?

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 separate system-assigned managed identity on each VM.

A system-assigned identity is tied to one VM and does not provide a shared identity across both VMs.

B

Best answer

A single user-assigned managed identity attached to both VMs.

A user-assigned managed identity is independent of any one VM and can be attached to multiple resources. That makes it ideal when several VMs need the same permissions and the access must continue even if one VM is deleted or rebuilt.

C

Distractor review

An administrator username and password stored in the script.

Storing credentials in a script is insecure and does not meet the requirement for secret-free access.

D

Distractor review

A shared access signature assigned to the virtual network.

A SAS token is not an identity for multiple VMs, and it cannot be attached to a network in this way.

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 single user-assigned managed identity attached to both VMs. — A user-assigned managed identity is designed for sharing across multiple Azure resources. In this scenario, both VMs need the same access, and the team wants the permissions to remain stable even if one VM is replaced. Because the identity is created separately from the VM lifecycle, it can be attached to VM01 and VM02 and reused over time without storing secrets or changing the app code. Why others are wrong: A system-assigned identity is convenient for one VM, but each VM gets its own identity, so it does not solve the shared-access requirement. Administrator credentials and SAS tokens both introduce secrets and operational overhead. The virtual network cannot be assigned a SAS token as an identity substitute.

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.