An organization has an Azure management group named Enterprise-MG. A subscription named Subscription-A is grouped under Enterprise-MG. Within Subscription-A, there is a resource group named App-RG.
An administrator assigns a developer the Reader role at the Enterprise-MG scope.
The administrator must configure the environment to meet the following additional requirements:
- The developer must be able to create and manage all resources within App-RG.
- The developer must be prevented from deploying any resources to any other location in Subscription-A.
- All deployments in Subscription-A must be restricted to the West US region only.
Which of the following configurations should the administrator implement to meet these requirements?
- Assign the Contributor role to the developer at the App-RG scope, and assign an Azure Policy definition enforcing the allowed locations to the Subscription-A scope.Cevap
- BAssign the Contributor role to the developer at the App-RG scope, and assign an Azure Policy definition enforcing the allowed locations directly to the developer's user account.
- CAssign the Contributor role to the developer at the Subscription-A scope, and apply a ReadOnly resource lock to all resource groups in the subscription except App-RG.
- DAssign the Reader role to the developer at the App-RG scope, and assign an Azure Policy definition enforcing the allowed locations to the Subscription-A scope.
Cevap
Assign the Contributor role to the developer at the App-RG scope, and assign an Azure Policy definition enforcing the allowed locations to the Subscription-A scope.
To allow the developer to manage resources in App-RG while keeping view-only access elsewhere, the Contributor role must be assigned at the App-RG scope. Because Azure RBAC permissions are additive, the developer inherits the Reader role from the management group and gains Contributor permissions inside the resource group. Outside App-RG, they only have Reader access, which prevents them from deploying resources in other parts of the subscription. To enforce the region restriction across the entire subscription, an Azure Policy definition must be assigned to the Subscription-A scope, as Azure Policy is designed to enforce resource compliance rules like allowed deployment locations.
Adım Adım Çözüm
Anahtar Kavram
Azure RBAC permissions are additive and inherit down the resource hierarchy, while Azure Policy enforces compliance and resource properties at specified scopes.
Tahmini Süre:2m 0s