mediummultiple choiceObjective-mapped

An Azure administrator deploys a Linux VM that runs an application needing to read secrets from Azure Key Vault. The security policy forbids storing passwords, certificates, or access tokens on the VM. The application will run only on this single VM. What should be enabled on the VM?

Question 1mediummultiple choice
Full question →

An Azure administrator deploys a Linux VM that runs an application needing to read secrets from Azure Key Vault. The security policy forbids storing passwords, certificates, or access tokens on the VM. The application will run only on this single VM. What should be enabled 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

Store a service principal secret in a protected file and use it at startup.

This still stores a credential on the VM, which conflicts with the security requirement.

B

Best answer

Enable a system-assigned managed identity on the VM.

A system-assigned managed identity lets the VM authenticate to Azure resources without storing secrets.

C

Distractor review

Create a user-assigned managed identity and avoid assigning it to the VM.

An identity that is not assigned to the VM cannot be used by the application at runtime.

D

Distractor review

Use an SSH certificate to authenticate the app to Key Vault.

SSH certificates are for SSH access, not for application authentication to Azure Key Vault.

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: Enable a system-assigned managed identity on the VM. — A system-assigned managed identity is the best choice because it is created for that VM and removed with it, which fits a single-server workload. The application can request Azure tokens from the platform without embedding passwords, certificates, or secrets in files or environment variables. That removes secret-management overhead and aligns with the requirement to avoid storing credentials on the machine. Why others are wrong: Option A violates the stated security policy because it still places a secret on the VM. Option C does not help because an unassigned identity cannot authenticate the workload. Option D is unrelated to Key Vault authentication for an application and does not solve the credential-storage problem.

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.