- A
ReadOnly
Why wrong: Incorrect. A ReadOnly lock prevents any modifications to the resource group and its resources, including updates and deletions. This is stricter than needed, as the team still requires the ability to create, update, and delete individual resources.
- B
CanNotDelete
Correct. A CanNotDelete lock prevents any user from deleting the resource group or any of its resources, but it still allows read, update, and create operations. This meets the requirement to prevent accidental deletion while allowing normal operational changes.
- C
DoNotDelete
Why wrong: Incorrect. 'DoNotDelete' is not a valid Azure Resource Lock type. The two available lock types are ReadOnly and CanNotDelete.
- D
ModifyOnly
Why wrong: Incorrect. 'ModifyOnly' is not a valid Azure Resource Lock type. Azure only provides ReadOnly and CanNotDelete locks.
Quick Answer
The answer is CanNotDelete. This Azure resource lock type is the correct choice because it prevents the deletion of the resource group and all its resources while still allowing users to create, update, and delete individual resources within the group for normal operations. The ReadOnly lock would block all write operations, which is far too restrictive for the stated need to permit ongoing changes. On the Microsoft Azure Fundamentals AZ-900 exam, this scenario tests your understanding of how resource locks apply at the resource group scope and the critical distinction between preventing deletion versus preventing modification. A common trap is choosing ReadOnly when the requirement only calls for deletion protection, so remember that CanNotDelete is the middle ground—it locks the door against removal but leaves the windows open for edits. A useful memory tip: think of CanNotDelete as a “keep, but edit” lock, while ReadOnly is a “look, don’t touch” lock.
AZ-900 Describe Azure management and governance Practice Question
This AZ-900 practice question tests your understanding of describe azure management and governance. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. A key principle to apply: azure Resource Locks prevent accidental deletion or modification of resources.. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A company has a resource group named 'RG-Prod' that contains critical virtual machines, a SQL database, and a storage account. The infrastructure team needs to ensure that no one can accidentally delete this resource group or any of its resources. However, users must still be able to create, update, and delete individual resources within the group as needed for normal operations. Which type of Azure Resource Lock should the team apply to 'RG-Prod'?
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 (Option B) is correct because it prevents the deletion of the resource group and all its resources while still allowing read, create, and update operations. This matches the requirement to protect against accidental deletion but permit normal operational changes. ReadOnly locks would block all write operations, which is too restrictive for the stated needs.
Key principle: Azure Resource Locks prevent accidental deletion or modification of resources.
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
Incorrect. A ReadOnly lock prevents any modifications to the resource group and its resources, including updates and deletions. This is stricter than needed, as the team still requires the ability to create, update, and delete individual resources.
- ✓
CanNotDelete
Why this is correct
Correct. A CanNotDelete lock prevents any user from deleting the resource group or any of its resources, but it still allows read, update, and create operations. This meets the requirement to prevent accidental deletion while allowing normal operational changes.
Related concept
Azure Resource Locks prevent accidental deletion or modification of resources.
- ✗
DoNotDelete
Why it's wrong here
Incorrect. 'DoNotDelete' is not a valid Azure Resource Lock type. The two available lock types are ReadOnly and CanNotDelete.
- ✗
ModifyOnly
Why it's wrong here
Incorrect. 'ModifyOnly' is not a valid Azure Resource Lock type. Azure only provides ReadOnly and CanNotDelete locks.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates may confuse the CanNotDelete lock with the ReadOnly lock, or assume a non-existent lock name like 'DoNotDelete' is valid, when in fact Azure only supports two lock levels: CanNotDelete and ReadOnly.
Detailed technical explanation
How to think about this question
Azure Resource Locks are applied at the subscription, resource group, or resource scope and override any role-based access control (RBAC) permissions. The CanNotDelete lock allows all operations except DELETE, meaning users with Contributor or Owner roles can still modify resources but cannot remove the locked scope or its contents. This lock is inherited by all child resources, so applying it to 'RG-Prod' protects the entire group and its virtual machines, SQL database, and storage account from deletion.
KKey Concepts to Remember
- Azure Resource Locks prevent accidental deletion or modification of resources.
- The `CanNotDelete` lock prevents deletion but allows all other operations (read, create, update).
- Locks applied at a higher scope (e.g., resource group) are inherited by child resources.
- Resource Locks complement Azure RBAC by adding an extra layer of protection.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Azure Resource Locks prevent accidental deletion or modification of resources.
Real-world example
How this comes up in practice
A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.
What to study next
Got this wrong? Here's your next step.
Review azure Resource Locks prevent accidental deletion or modification of resources., then practise related AZ-900 questions on the same topic to reinforce the concept.
- →
Describe Azure management and governance — study guide chapter
Learn the concepts, then practise the questions
- →
Describe Azure management and governance practice questions
Targeted practice on this topic area only
- →
All AZ-900 questions
1,031 questions across all exam domains
- →
Microsoft Azure Fundamentals AZ-900 study guide
Full concept coverage aligned to exam objectives
- →
AZ-900 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related AZ-900 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Describe cloud concepts practice questions
Practise AZ-900 questions linked to Describe cloud concepts.
Describe Azure architecture and services practice questions
Practise AZ-900 questions linked to Describe Azure architecture and services.
Describe Azure management and governance practice questions
Practise AZ-900 questions linked to Describe Azure management and governance.
AZ-900 Azure services practice questions
Practise AZ-900 questions linked to AZ-900 Azure services.
AZ-900 pricing and support practice questions
Practise AZ-900 questions linked to AZ-900 pricing and support.
AZ-900 security and compliance practice questions
Practise AZ-900 questions linked to AZ-900 security and compliance.
AZ-900 governance practice questions
Practise AZ-900 questions linked to AZ-900 governance.
Practice this exam
Start a free AZ-900 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this AZ-900 question test?
Describe Azure management and governance — This question tests Describe Azure management and governance — Azure Resource Locks prevent accidental deletion or modification of resources..
What is the correct answer to this question?
The correct answer is: CanNotDelete — The CanNotDelete lock (Option B) is correct because it prevents the deletion of the resource group and all its resources while still allowing read, create, and update operations. This matches the requirement to protect against accidental deletion but permit normal operational changes. ReadOnly locks would block all write operations, which is too restrictive for the stated needs.
What should I do if I get this AZ-900 question wrong?
Review azure Resource Locks prevent accidental deletion or modification of resources., then practise related AZ-900 questions on the same topic to reinforce the concept.
What is the key concept behind this question?
Azure Resource Locks prevent accidental deletion or modification of resources.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Same concept, more angles
3 more ways this is tested on AZ-900
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A company wants to ensure a specific resource group cannot be deleted, but they also need to be able to delete it temporarily during maintenance windows. Which approach allows the most granular control?
hard- A.Assign an Azure Policy with deny effect on delete operations.
- ✓ B.Apply a 'CanNotDelete' resource lock and remove it before maintenance.
- C.Use Azure RBAC with a custom role that denies delete.
- D.Use Azure Blueprints to enforce protection.
Why B: A 'CanNotDelete' resource lock prevents deletion of a resource group and its resources, but it can be removed and reapplied as needed, providing granular control during maintenance windows. This approach allows temporary deletion by removing the lock, performing the deletion, and then reapplying the lock afterward. It is the only option that directly supports the requirement for both protection and temporary removal without permanent configuration changes.
Variation 2. A company has a critical production resource group that contains several virtual machines and an Azure SQL Database. The IT manager wants to prevent anyone from accidentally deleting the resource group or any of its resources. However, authorized administrators must still be able to add, update, or delete individual resources within the group (except deletion of the group itself). Which Azure feature should the manager apply to the resource group?
medium- A.Apply an Azure Policy with the 'Deny' effect to prevent all operations on the resource group.
- B.Apply a Read-Only lock on the resource group.
- ✓ C.Apply a CanNotDelete lock on the resource group.
- D.Remove the Contributor role from all users and assign the Owner role to the IT manager only.
Why C: Option C is correct because a CanNotDelete lock on the resource group prevents deletion of the group itself while still allowing authorized administrators to add, update, or delete individual resources within the group. This lock type specifically blocks delete operations on the locked scope, but does not restrict read, write, or other management operations, aligning perfectly with the requirement to protect the resource group from accidental deletion while permitting ongoing resource management.
Variation 3. A company has a critical resource group named 'Prod-Databases' that contains Azure SQL databases and virtual machines used by a production order-processing system. The database administrator wants to prevent any user, including administrators, from accidentally deleting or modifying resources in this resource group. The operations team needs a safeguard that requires an explicit action to be taken before any changes become possible, without affecting the ability to manage resources in other resource groups. Which Azure feature should the team implement?
medium- A.Azure Policy with the Deny effect
- B.Azure RBAC role assignment (e.g., restrict to Reader role)
- ✓ C.Azure Resource Lock (CanNotDelete)
- D.Azure management group
Why C: Option C is correct because Azure Resource Locks provide a safeguard that prevents accidental deletion or modification of critical resources at the subscription, resource group, or individual resource level. The CanNotDelete lock specifically blocks delete operations while allowing all read and update operations, and it requires an explicit unlock action before any changes can be made, even by administrators. This meets the requirement of protecting the 'Prod-Databases' resource group without affecting other resource groups.
Keep practising
More AZ-900 practice questions
- A company uses Azure and wants to organize all their virtual machines, databases, and storage accounts into logical cont…
- A company uses multiple Azure subscriptions for different departments. The finance team wants to monitor spending across…
- A company wants to ensure that all Azure resources are tagged with a 'CostCenter' tag at creation time. If a resource is…
- A company uses Azure Blueprints to define a repeatable set of Azure resources and policies for new subscriptions. They w…
- A company uses Azure Policy to enforce governance. They want to prevent users from creating virtual machines of the Stan…
- A company wants to ensure that all Azure resources are tagged with metadata such as 'Environment' and 'Department'. They…
Last reviewed: Jun 11, 2026
This AZ-900 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-900 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.