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)
Related AZ-104 questions
- An engineer must create and manage user accounts and groups in Microsoft Entra ID but must not have any permissions on…Manage Azure identities and governance
- You are implementing hybrid identity with Microsoft Entra Connect. The security team requires that user passwords be…Manage Azure identities and governance
- You assign an Azure Policy definition with a deployIfNotExists effect that configures diagnostic settings on resources.Manage Azure identities and governance
- Your company synchronizes on-premises Active Directory users to Microsoft Entra ID using a sync server installed…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%.