An Azure subscription named Sub-Corp has a CanNotDelete resource lock applied. Within Sub-Corp, there is a resource group named RG-Data that has a ReadOnly resource lock applied. RG-Data contains a storage account named sa-logs and a virtual network named vnet-prod. An administrator with Owner permissions on the subscription attempts to perform various tasks. Which of the following actions are blocked by the resource locks? Select two.
- Retrieving the access keys for the storage account sa-logsCevap
- Deleting the virtual network vnet-prodCevap
- CUploading a new blob to a container inside the storage account sa-logs
- DModifying the tags of a resource group named RG-App that is located outside RG-Data but inside Sub-Corp
Cevap
The actions that are blocked by the resource locks are retrieving the access keys for the storage account sa-logs, and deleting the virtual network vnet-prod.
The correct options are the ones stating that retrieving the access keys for the storage account sa-logs and deleting the virtual network vnet-prod are blocked. Retrieving the access keys is a control plane POST request, which is blocked by the ReadOnly lock on the resource group. Deleting the virtual network is blocked because it is located inside the resource group with the ReadOnly lock and inherits the CanNotDelete lock from the subscription.
Adım Adım Çözüm
Anahtar Kavram
Azure Resource Locks prevent accidental deletion or modification of resources. They are inherited from parent scopes (subscriptions, resource groups) to child resources. CanNotDelete prevents deletion but allows updates, while ReadOnly prevents both deletion and updates (including control plane POST requests like listing storage keys), but does not affect data plane operations.
Tahmini Süre:2m 0s