A cloud engineering team manages resources within an Azure resource group named CoreServices-RG. This resource group contains a virtual network named VNet-Core and a storage account named Storage-Core. The team applies a CanNotDelete resource lock to CoreServices-RG, and a ReadOnly resource lock directly to Storage-Core. Which two statements accurately describe how these locks affect the resources? (Select two.)
- Users can modify the configuration of VNet-Core, but they cannot delete the virtual network.Answer
- Users cannot regenerate the access keys of Storage-Core.Answer
- CUsers can modify the configuration of Storage-Core because the ReadOnly lock only blocks deletion of the storage account.
- DThe ReadOnly lock on Storage-Core overrides the resource group's CanNotDelete lock, allowing users to delete the storage account.
Answer
Users can modify the configuration of the virtual network but cannot delete it, and users cannot regenerate the access keys of the storage account.
The resource group has a CanNotDelete lock, which is inherited by all resources within it, including the virtual network. A CanNotDelete lock allows authorized users to read and modify a resource, but prevents them from deleting it. Therefore, users can modify the configuration of the virtual network but cannot delete it. Additionally, a ReadOnly lock is applied directly to the storage account. A ReadOnly lock prevents all write and delete operations, which includes configuration changes and control plane actions like regenerating access keys.
Step-by-Step Solution
Key Concept
Azure Resource Locks (CanNotDelete and ReadOnly) prevent accidental deletion or modification of critical Azure resources, applying cumulatively via resource group inheritance.