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)
Related AZ-104 questions
- Ten virtual machines and two Logic Apps must all authenticate as the same identity so one role assignment covers them.Manage Azure identities and governance
- You assign the Reader role to a group at the subscription scope. What can members of that group do?Manage Azure identities and governance
- An operations team must be able to start and restart existing Azure VMs in a resource group, but must not be able to…Manage Azure identities and governance
- A production resource group must be protected against accidental deletion, while still allowing resources inside it to…Manage Azure identities and governance
All 62 free AZ-104 questions by domain · 15 sample questions on one page
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%.