Soru

Zorluk: OrtaResource Locks

An organization has an Azure subscription containing a resource group named rg-shipping-prod. A CanNotDelete lock is applied directly to the rg-shipping-prod resource group. An administrator with the Owner role needs to update the configuration of an Azure App Service plan named asp-shipping and delete an unused Azure Storage account named stshippinghistory, both of which are located inside rg-shipping-prod.

Which of the following statements correctly describes the outcome of these actions?

  1. The update to the App Service plan is permitted, but the deletion of the Storage account is blocked.Cevap
  2. B
    Both the update to the App Service plan and the deletion of the Storage account are blocked.
  3. C
    Both the update to the App Service plan and the deletion of the Storage account are permitted because the administrator has the Owner role.
  4. D
    The update to the App Service plan is blocked, but the deletion of the Storage account is permitted.

Cevap

The update to the App Service plan is permitted, but the deletion of the Storage account is blocked.
The correct answer is that the update to the App Service plan is permitted, but the deletion of the Storage account is blocked. A CanNotDelete lock allows authorized users to read and modify a resource but blocks its deletion. Since locks are inherited by child resources, both resources in the resource group are subject to this restriction, meaning the Storage account cannot be deleted while the App Service plan can be successfully updated.

Adım Adım Çözüm

1
Determine the lock type applied and its scope.
A CanNotDelete lock is applied at the resource group level (rg-shipping-prod).
This establishes the scope and base restriction rule for all resources inside the resource group.
2
Evaluate lock inheritance for child resources.
Both the App Service plan (asp-shipping) and the Storage account (stshippinghistory) inherit the CanNotDelete lock.
Locks applied at the resource group level are automatically inherited by all resources within that group.
3
Apply the lock permissions to the proposed actions.
Modifying the App Service plan configuration is allowed, but deleting the Storage account is blocked.
A CanNotDelete lock permits updates (write actions) but restricts deletion (delete actions).

Anahtar Kavram

Azure Resource Locks restrict actions on resources regardless of user permissions. A CanNotDelete lock allows read and modify operations but blocks deletion, and is inherited by all child resources.
Bu soruyu puanla