Skip to main content

AZ-104 practice question · Manage Azure identities and governance

A virtual machine needs an identity to authenticate to Azure Key Vault, and that identity should be created and deleted…

A virtual machine needs an identity to authenticate to Azure Key Vault, and that identity should be created and deleted together with the VM. What should you enable?

  • AA system-assigned managed identity on the VM
  • BA user-assigned managed identity
  • CA service principal with a client secret stored on the VM
  • DA shared access signature for Key Vault
Show the answer and explanation

Correct answer: A) A system-assigned managed identity on the VM

Why each option is right or wrong

  • A) Correct. A system-assigned managed identity is tied to the resource's lifecycle — created when you enable it on the VM and automatically deleted when the VM is deleted.
  • B) Incorrect. A user-assigned identity is a standalone resource with its own lifecycle, meant to be shared across resources — it isn't removed when one VM is deleted.
  • C) Incorrect. That reintroduces a secret to manage and rotate, which managed identities exist to avoid.
  • D) Incorrect. Key Vault doesn't use SAS tokens; access is granted through Entra identity and RBAC or access policies.
Exam domain
Manage Azure identities and governance · 25% of AZ-104
Question type
Multiple choice (one answer)

Practise the full AZ-104 exam

This question is one of a small free sample from the CertRidge AZ-104 bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with Microsoft; never copied from the real exam.

Worth reading: AZ-104 passing score (700/1000), what 700 means on Microsoft's scaled score, and why it isn't 70%.