A user accidentally deletes a critical virtual machine. Which Azure feature can prevent that action?
Choose an answer
Tap an option to check your answer.
Correct answer: Azure Resource Locks.
Why this is the answer
Azure Resource Locks prevent accidental deletion or modification of critical Azure resources. By applying a Delete or Read-only lock to a virtual machine, users are blocked from performing the locked action, even if they have the necessary permissions. This directly addresses the scenario of accidental deletion. Azure Monitor Alerts notify you of events or metrics, but they don't prevent actions. Azure Policy enforces organizational standards and compliance, which could include rules about resource creation or configuration, but not directly preventing an accidental deletion of an existing resource in the way a lock does. Azure App Service is a platform for hosting web applications and has no direct role in preventing resource deletion.
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