Soru

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

An administrator manages an Azure subscription that includes a resource group named rg-ecommerce-prod. The resource group contains an Azure Container Registry named acrprodregistry and an Azure Key Vault named kvecommerceprod. The administrator applies a tag named 'CostCenter: Finance' and a CanNotDelete resource lock to rg-ecommerce-prod. Additionally, the administrator applies a ReadOnly resource lock directly to kvecommerceprod. The administrator attempts to delete acrprodregistry, add a new secret to kvecommerceprod, and query the container registry's cost by filtering for the 'CostCenter: Finance' tag. Which of the following describes the outcomes of these actions?

  1. The deletion of the container registry is blocked, adding the secret to the key vault is blocked, and the container registry does not have the CostCenter tag applied.Cevap
  2. B
    The deletion of the container registry succeeds, adding the secret to the key vault is blocked, and the container registry does not have the CostCenter tag applied.
  3. C
    The deletion of the container registry is blocked, adding the secret to the key vault succeeds, and the container registry automatically inherits the CostCenter tag.
  4. D
    The deletion of the container registry is blocked, adding the secret to the key vault is blocked, and the container registry automatically inherits the CostCenter tag.

Cevap

The deletion of the container registry is blocked, adding the secret to the key vault is blocked, and the container registry does not have the CostCenter tag applied.
The correct option correctly identifies that the CanNotDelete lock is inherited by the container registry, blocking its deletion; the ReadOnly lock on the key vault prevents adding new secrets; and tags applied to the resource group are not automatically inherited by individual resources, meaning the container registry will not match the tag query.

Adım Adım Çözüm

1
Evaluate the deletion action on the Azure Container Registry.
The deletion is blocked.
Resource locks are inherited by all child resources. The CanNotDelete lock applied to the resource group rg-ecommerce-prod inherits to the acrprodregistry container registry, preventing its deletion.
2
Evaluate the secret addition action on the Azure Key Vault.
Adding the secret is blocked.
A ReadOnly lock applied to a resource prevents any modifications or creations, including data plane operations like writing secrets to a Key Vault.
3
Evaluate the tag query on the Azure Container Registry.
The query fails to find the registry because the tag is not applied.
Tags applied to a resource group are not inherited by resources inside the resource group. Therefore, the container registry does not have the 'CostCenter: Finance' tag unless it is explicitly applied or enforced by Azure Policy.

Anahtar Kavram

Resource lock inheritance and tag non-inheritance rules in Azure resource governance.
Bu soruyu puanla