A developer accidentally deleted a virtual machine. Which feature would help prevent accidental deletions?
Choose an answer
Tap an option to check your answer.
Correct answer: Lock resource.
Why this is the answer
Lock resource is correct because it prevents accidental deletion or modification of Azure resources. You can apply "CanNotDelete" or "ReadOnly" locks to subscriptions, resource groups, or individual resources like virtual machines. Resource tags are incorrect because they are used for organizing resources and managing costs, not for preventing deletions. Azure Monitor is incorrect because it collects and analyzes telemetry data for monitoring performance and health, not for preventing resource changes. Activity Log is incorrect because it records events that occurred in the subscription, such as resource deletions, but it does not prevent them.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed