AZ-104 CanNotDelete lock Practice Question
You need to prevent accidental deletion of a resource group while still allowing administrators to create and modify resources inside it. Which lock should you apply?
⚠ Common exam trap
Test-takers frequently confuse the non-existent 'Delete lock' with the actual CanNotDelete lock, or assume a ReadOnly lock is needed when only deletion prevention is required.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
CanNotDelete
The CanNotDelete lock prevents the resource group from being deleted while still allowing all operations (including create and modify) on resources within it. This is the correct choice because the requirement is specifically to block deletion, not to restrict modifications or read access.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
ReadOnly
Why it's wrong here
A ReadOnly lock would also prevent administrators from modifying resources.
When this WOULD be correct
When the requirement is to prevent any changes to the resource group or its resources, such as protecting a production resource group from accidental modifications while still allowing read access for monitoring.
- ✓
CanNotDelete
Why this is correct
A CanNotDelete lock blocks deletion but still permits updates.
- ✗
Delete lock
Why it's wrong here
Delete lock is not the Azure lock name used in the platform.
When this WOULD be correct
In a scenario where a custom lock policy or third-party tool uses a lock named 'Delete lock' to prevent deletion, but this is not standard Azure terminology. The question would need to specify a non-standard lock mechanism.
- ✗
No lock and a budget alert
Why it's wrong here
A budget alert does not prevent accidental deletion.
When this WOULD be correct
This option would be correct if the question asked: 'You need to receive a notification when costs exceed a certain amount for a resource group. What should you configure?'
Option-by-option analysis
Why each answer is right or wrong
Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The AZ-104 exam frequently reuses these exact scenarios with slightly different constraints.
✓CanNotDeleteCorrect answer▾
Why this is correct
A CanNotDelete lock blocks deletion but still permits updates.
✗ReadOnlyWrong answer — click to see why▾
Why this is wrong here
ReadOnly lock prevents all modifications, including creating and modifying resources inside the resource group, which contradicts the requirement to allow administrators to create and modify resources.
★ When this WOULD be the correct answer
When the requirement is to prevent any changes to the resource group or its resources, such as protecting a production resource group from accidental modifications while still allowing read access for monitoring.
Why candidates choose this
Candidates may confuse 'prevent deletion' with 'prevent changes' and incorrectly assume a read-only lock is sufficient to block deletion, not realizing it also blocks modifications.
✗Delete lockWrong answer — click to see why▾
Why this is wrong here
There is no 'Delete lock' in Azure; the correct lock types are 'CanNotDelete' and 'ReadOnly'. 'Delete lock' is not a valid Azure resource lock name.
★ When this WOULD be the correct answer
In a scenario where a custom lock policy or third-party tool uses a lock named 'Delete lock' to prevent deletion, but this is not standard Azure terminology. The question would need to specify a non-standard lock mechanism.
Why candidates choose this
Candidates may assume 'Delete lock' is the correct term because it intuitively describes preventing deletion, without knowing the exact Azure lock names.
✗No lock and a budget alertWrong answer — click to see why▾
Why this is wrong here
A budget alert does not prevent deletion; it only notifies when spending exceeds a threshold. The question requires a lock to block deletion, which a budget alert cannot do.
★ When this WOULD be the correct answer
This option would be correct if the question asked: 'You need to receive a notification when costs exceed a certain amount for a resource group. What should you configure?'
Why candidates choose this
Candidates may confuse cost management controls with resource protection controls, thinking a budget alert can prevent deletion by warning administrators.
Analysis generated from the official AZ-104blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”
Go deeper
Related to this question
Learn chapter
Azure Blob Storage Access Tiers
Key term
Resource group
A logical container in Microsoft Azure that holds related resources for an application or solution, enabling unified management, security, and billing.
Key term
Group
A group is a collection of users, devices, or other objects that are assigned permissions and policies together for simplified management in identity and governance systems like Microsoft Entra ID.
About these practice questions
One of 1,053 original AZ-104 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AZ-104 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-104 exam.