Skip to main content

AZ-104 practice question · Manage Azure identities and governance

A production resource group must be protected against accidental deletion, while still allowing resources inside it to…

A production resource group must be protected against accidental deletion, while still allowing resources inside it to be reconfigured. Which lock should you apply?

  • AA CanNotDelete lock on the resource group
  • BA ReadOnly lock on the resource group
  • CRemove all Contributor role assignments
  • DAn Azure Policy with the Deny effect on the delete action
Show the answer and explanation

Correct answer: A) A CanNotDelete lock on the resource group

Why each option is right or wrong

  • A) Correct. CanNotDelete allows reading and modifying resources but blocks deletion of the locked resource group and everything in it — exactly the accidental-deletion protection needed.
  • B) Incorrect. ReadOnly also blocks modifications, so resources could not be reconfigured.
  • C) Incorrect. That prevents legitimate work and doesn't stop an Owner from deleting the group.
  • D) Incorrect. Resource locks are the purpose-built mechanism for delete protection; Policy is not scoped to block deletes of an arbitrary resource group this way.
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%.