hardmultiple choiceObjective-mapped

A system-assigned managed identity is attached to an Azure VM to call Key Vault. The VM is frequently reimaged and sometimes redeployed to a different name during scale events, but the application must keep the same identity and secretless access. What should the administrator use instead?

Question 1hardmultiple choice
Full question →

A system-assigned managed identity is attached to an Azure VM to call Key Vault. The VM is frequently reimaged and sometimes redeployed to a different name during scale events, but the application must keep the same identity and secretless access. What should the administrator use instead?

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

This identity is tied to a specific VM lifecycle and would change when the VM is replaced.

B

Best answer

A user-assigned managed identity associated with the workload.

A user-assigned identity remains stable across reimages and redeployments and can be attached to new VMs as needed.

C

Distractor review

A shared storage account key placed in the VM custom script.

This introduces credential exposure and does not meet the requirement for secretless access.

D

Distractor review

A policy exemption for the Key Vault access policy.

Policy exemptions do not provide authentication, and Key Vault access still requires a valid identity.

Common exam trap

Common exam trap: answer the scenario, not the keyword

Many certification questions include familiar terms but test a specific constraint. Read the exact wording before choosing an answer that is generally true but wrong for this case.

Technical deep dive

How to think about this question

This question should be treated as a scenario, not a definition check. Identify the problem, the constraint and the best action. Then compare each option against those facts.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.
  • Use explanations to understand the rule behind the answer.

TExam Day Tips

  • Underline the problem statement mentally.
  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

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?

Read the scenario before looking for a memorised answer.

What is the correct answer to this question?

The correct answer is: A user-assigned managed identity associated with the workload. — A user-assigned managed identity is the right choice when the identity must survive VM replacement, reimaging, or name changes. Because it is not tied to the lifecycle of one specific VM, the application keeps the same Azure identity even when the underlying compute resource changes. That stability is important for secretless access to Key Vault and reduces operational overhead because permissions are managed once on the identity rather than re-created with every deployment. Why others are wrong: A system-assigned identity is recreated with the VM, so it does not survive replacement events. A shared key is a credential, not an identity, and it creates exactly the kind of secret management problem the scenario wants to avoid. Policy exemptions have nothing to do with authentication. The essential requirement is identity persistence across redeployments, which makes user-assigned managed identity the correct answer.

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.