An administrator manages an Azure subscription and configures resource governance. The subscription contains a resource group named `rg-billing-app`. Inside `rg-billing-app`, there are two resources: a Key Vault named `kv-billing-keys` and a Storage Account named `sa-billing-data`.
The administrator configures the following settings:
- A tag named `CostCenter: Finance` and a `ReadOnly` resource lock are applied to `rg-billing-app`.
- A tag named `Environment: Production` and a `CanNotDelete` resource lock are applied directly to `kv-billing-keys`.
Which of the following statements correctly describe the resulting governance state? (Select two.)
- The Storage Account `sa-billing-data` has no tags applied and is protected by an inherited `ReadOnly` resource lock.Answer
- Authorized users are prevented from creating new secrets in `kv-billing-keys` because the inherited `ReadOnly` lock combined with the direct `CanNotDelete` lock results in the most restrictive lock applying.Answer
- CThe Key Vault `kv-billing-keys` allows the creation of new secrets because the directly applied `CanNotDelete` lock overrides the inherited `ReadOnly` lock.
- DTo prevent deletion of `sa-billing-data` while allowing configuration updates, you must configure a custom RBAC role with an explicit Deny action at the resource group level.
Answer
The Storage Account has no tags applied and is protected by an inherited ReadOnly resource lock, and users are prevented from creating new secrets in the Key Vault because the inherited ReadOnly lock combined with the direct CanNotDelete lock results in the most restrictive lock applying.
The correct statements describe that the storage account inherits the ReadOnly lock but does not inherit the CostCenter tag, and that the Key Vault is subject to the ReadOnly lock because locks are cumulative and the most restrictive lock takes precedence over the less restrictive one.
Step-by-Step Solution
Key Concept
Resource lock inheritance is cumulative where the most restrictive lock applies, whereas tags applied to resource groups do not inherit to child resources.