Prepare and test your skills

Prepare and test your skills

Free sample question, answered and explained below. The AZ-900 Microsoft Azure Fundamentals Exam practice bank has 688 more like it. Try 10 free: instant score, no account.
An administrator needs to decommission and delete an unused Azure storage account. When attempting to delete the resource in the Azure portal, the operation fails because a CanNotDelete resource lock is currently applied to the storage account.
What action must the administrator take to successfully delete the storage account?
Azure Role-Based Access Control (Azure RBAC) is an authorization system used to grant fine-grained permissions to security principals (users, groups, and service principals) over Azure resources.
Resource locks take precedence over RBAC permissions. Even a user with the Owner or User Access Administrator role cannot delete or modify a locked resource while the lock is active. While an Owner has permission to remove the lock, having the Owner role alone does not automatically bypass the lock's enforcement.
Microsoft.Authorization/locks/*) to create or remove locks.This option would be appropriate if the administrator lacked the authorization permissions needed to manage and remove resource locks in the subscription.
Resource tags are metadata key-value pairs applied to Azure resources and resource groups to assist with logical categorization, cost tracking, environment identification, and asset management.
Resource tags are informational metadata and do not provide functional governance controls or security overrides. Adding, modifying, or removing a tag cannot override, disable, or supersede a Resource Lock.
This option would be correct if the organization required adding metadata to mark resources for upcoming review or inventory audits prior to manual decommissioning.
A ReadOnly lock is a stricter type of resource lock that prevents both configuration modifications and deletions on the target resource while permitting read operations.
Changing the lock level to ReadOnly does not permit deletion. In fact, a ReadOnly lock continues to block all delete operations while additionally restricting updates and management writes, making the deletion still impossible.
This option would be correct if the administrator wanted to prevent other team members from modifying the configuration settings of the storage account while still keeping it active.
Azure Resource Manager locks provide a mechanism to protect critical Azure resources from accidental deletion or unintended configuration changes. When a lock is active on a resource, it restricts specific management plane operations regardless of the user's role-based access control (Azure RBAC) permissions.
To delete a resource that is protected by a lock:
Remove-AzResourceLock), or the Azure CLI (az lock delete), the deletion restriction is lifted.Get-AzResourceLock and removed using Remove-AzResourceLock or the portal Locks pane.Removing the lock is the only supported method to permit deletion of a locked resource. It ensures that safeguards cannot be bypassed accidentally and enforces operational intent.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated Validated