Soru

Zorluk: ZorResource Governance: Resource Groups, Tags, and Resource Locks

An Azure subscription contains a resource group named `rg-prod-data`. The resource group contains an Azure Storage account named `storelogs1`. A `ReadOnly` lock is applied directly to the resource group `rg-prod-data`. No other locks or tags are applied to the resource group or the storage account. An administrator needs to retrieve the access keys for `storelogs1` using the Azure portal. Does the lock applied to `rg-prod-data` prevent the administrator from retrieving the access keys for `storelogs1`?

Cevap: Cevap

Cevap

The ReadOnly lock inherited by the storage account prevents the retrieval of the access keys.
The correct answer is that the lock prevents the retrieval of the keys. A ReadOnly lock applied to a resource group is inherited by all resources within that group. In addition to blocking write and delete operations, a ReadOnly lock blocks POST operations, which includes the request to retrieve (list) storage account access keys.

Adım Adım Çözüm

1
Analyze lock inheritance behavior in Azure.
The ReadOnly lock applied to the resource group is inherited by all child resources, including the storage account.
Azure Resource Locks are inherited by all child resources within the scope where the lock is applied.
2
Evaluate the permissions blocked by a ReadOnly lock.
A ReadOnly lock blocks all write and delete operations, as well as control plane POST operations.
This prevents configurations from being modified and blocks actions that generate or return sensitive keys.
3
Determine if listing storage keys is blocked.
Retrieving storage account keys requires a POST action, which is blocked by the inherited ReadOnly lock.
Listing access keys is a control plane operation that uses the POST method, making it subject to ReadOnly lock restrictions.

Anahtar Kavram

Azure Resource Lock inheritance and ReadOnly lock constraints on POST operations
Bu soruyu puanla