Azure Fundamentals AZ-900 · Describe Azure Management and Governance · medium

An administrator wants to allow developers to read, modify, and start/stop existing Virtual Machines in a production Resource Group while preventing anyone—including Subscription Owners until the lock is removed—from accidentally deleting the VMs. Which control should be applied?

Published · Last updated · checked before publication — how we verify questions

Options

  • AA CanNotDelete Resource Lock applied to the production Resource GroupCorrect answer
  • BA ReadOnly Resource Lock applied to the production Resource Group
  • CA billing cost Tag Environment:Production attached to each VM
  • DAn Azure Service Health maintenance alert rule on the Subscription

Answer: A. A CanNotDelete Resource Lock applied to the production Resource Group

Azure Resource Locks add a protective layer on top of role-based access control and apply to every user, including Owners. A CanNotDelete lock (shown as Delete in the portal) lets authorized users still read and modify a resource, so developers can update, start, and stop VMs. It blocks only delete operations. Locks are inherited, so a lock on the production Resource Group covers every VM in it, including ones added later. An Owner or User Access Administrator can remove the lock, and that is the deliberate step that must happen before a deletion. This is why the question says deletion is blocked until the lock is removed. The common trap is choosing ReadOnly because it sounds safer. ReadOnly behaves like giving everyone only the Reader role, even for people with higher permissions. It blocks write actions, and operations such as starting or stopping a VM are control-plane actions that can fail under it. Remember that CanNotDelete protects against deletion, and ReadOnly protects against both change and deletion.

Why the other options are wrong

  • B. A ReadOnly Resource Lock applied to the production Resource Group — A ReadOnly lock stops all write and update operations, so developers could not modify, start, or stop the VMs. It prevents deletion, but it also blocks the changes the administrator wants to allow.
  • C. A billing cost Tag Environment:Production attached to each VM — Tags are name-value metadata used to organize resources and allocate costs. They have no effect on permissions or on deletion, so a VM tagged Environment:Production can still be deleted.
  • D. An Azure Service Health maintenance alert rule on the Subscription — Azure Service Health alerts notify you about Azure service incidents and planned maintenance affecting your resources. They are notifications only, do not enforce any restriction, and cannot stop someone from deleting a VM.

All Describe Azure Management and Governance questions and the topic overview →

Microsoft and Azure are trademarks of Microsoft Corporation. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Microsoft Corporation.