A company's Azure environment contains the following resource hierarchy:
- Management Group: `MG-Finance`
- Subscription: `Sub-Treasury`
- Resource Group: `rg-vault`
A security principal named `AppService-SP` is assigned the Reader role at the `MG-Finance` management group level. An administrator also assigns the Contributor role to `AppService-SP` at the `rg-vault` resource group level.
A developer needs to determine the effective permissions of `AppService-SP` for a key vault named `kv-secrets` located inside `rg-vault`.
Which permissions does `AppService-SP` have for `kv-secrets`?
- Contributor permissions, because Azure RBAC role assignments are additive and the most permissive role applies.Answer
- BReader permissions only, because the Reader assignment at the management group level takes precedence.
- CContributor permissions only, because role assignments at a lower scope override assignments at a higher scope.
- DNo permissions, because conflicting role assignments at different scopes result in access being denied.
Answer
Contributor permissions, because Azure RBAC role assignments are additive and the most permissive role applies.
The correct answer is correct because Azure RBAC role assignments are additive. A security principal's effective permissions are the sum of all roles assigned at the current scope and any inherited parent scopes. In this scenario, the Contributor role assigned at the resource group scope provides broader access than the Reader role inherited from the management group, granting Contributor-level permissions on the key vault.
Step-by-Step Solution
Key Concept
Azure RBAC inheritance and additive permission model