‹ All AZ-900 questions

AZ-900 Practice Question 9: Resource Locks

Microsoft Azure Fundamentals (AZ-900) · Test 1 · question 9 of 10

Azure Management & Governancemedium

A production resource group was deleted by mistake last quarter. Management now wants it to be impossible for anyone (including users holding the Owner role on the subscription) to delete the replacement resource group or anything inside it, while engineers keep the ability to reconfigure the resources it contains. What should be applied?

Select one answer
Show answer and explanation

Answer:

  • C. A CanNotDelete (Delete) lock on the resource group

A management lock applies to all users and roles, overriding their permissions; that is what separates it from RBAC and makes it the right answer for "nobody, not even an Owner". A CanNotDelete lock (shown as Delete in the portal) lets authorized users read and modify a resource but not delete it, and locks applied at a parent scope are inherited by every resource in that scope, including ones added later.

Option B, a ReadOnly lock, also blocks deletion, but it additionally blocks updates (authorized users are effectively reduced to Reader) which contradicts the requirement that engineers keep reconfiguring resources. Option A is wrong because Azure Policy governs what resources may be created or how they must be configured; a Deny effect evaluates resource properties on write operations and is not the intended mechanism for protecting an existing object from deletion. Option D fails on two counts: Reader would also stop the engineers from making changes, and subscription-level Owners would still be able to delete the group because RBAC is inherited downward.

Reference: Lock your resources to protect your infrastructure

Practice Test 1 ›

Study guides for AZ-900

Azure Administrator (AZ-104): jobs, salary and the examAzure administrator role, jobs and pay data, and the AZ-104 exam: five domains, 100 minutes, US$165 / ₹4,865, AZ-900 first or not, and what next.
Free cloud certifications in 2026: which are really freeWhich free cloud certifications are really free in 2026: Oracle's free OCI exams, and the voucher routes for AWS, Microsoft and Google, with prices.
AI-901 exam guide: Azure AI Fundamentals after AI-900AI-901 replaced AI-900: learn what changed, how much Python and Microsoft Foundry you need, exam costs in India, and how to prepare.
Microsoft Fabric certification: DP-700 vs DP-600Microsoft Fabric certification means two exams, DP-600 and DP-700. Their roles, skills, format, cost in India, and which one to take first.
Which cloud certification is best? AWS vs Azure vs GoogleWhich cloud certification is best for a beginner? AWS Cloud Practitioner, AZ-900 and Google Cloud Digital Leader compared: cost, format and which first.
Azure certification path 2026: AZ-900, AZ-104, AZ-305The Azure certification path for 2026 - AZ-900, AZ-104 and AZ-305 in order, what each covers, the AZ-305 prerequisite, renewal and what to skip.
Azure RBAC vs Azure Policy vs Entra roles vs resource locksHow Azure RBAC, Azure Policy, Microsoft Entra roles and resource locks differ, how scope inheritance works, and when deny beats audit.
Azure Storage redundancy - LRS, ZRS, GRS, GZRS and failoverHow LRS, ZRS, GRS, RA-GRS, GZRS and RA-GZRS differ, what failover does to your account, and how access tiers interact with redundancy.