Soru

Zorluk: KolayAzure Role Assignments and Scopes

Your company has an Azure environment with a subscription named Sub1. Inside Sub1, there is a resource group named RG-Dev that contains several virtual machines.

You need to grant a user named User1 the permission to restart the virtual machines and to delegate role assignments to other team members within RG-Dev. The solution must use the principle of least privilege.

Which two of the following role assignments should you configure? (Select two.)

  1. Assign the Virtual Machine Contributor role to User1 at the RG-Dev scope.Cevap
  2. Assign the User Access Administrator role to User1 at the RG-Dev scope.Cevap
  3. C
    Assign the Global Administrator role to User1 in Microsoft Entra ID.
  4. D
    Assign the User Access Administrator role to User1 at an Administrative Unit scope.

Cevap

To meet the requirements, you must assign the Virtual Machine Contributor role to User1 at the RG-Dev scope to allow virtual machine management, and assign the User Access Administrator role to User1 at the RG-Dev scope to allow delegating role assignments.
To satisfy the requirements, two roles must be assigned at the resource group level: Virtual Machine Contributor (to manage the virtual machines) and User Access Administrator (to delegate role assignments to other users). These roles represent the least privilege configuration required for the scenario.

Adım Adım Çözüm

1
Identify the minimum required role for virtual machine management.
The Virtual Machine Contributor role is selected, as it permits restarting and managing virtual machines without excess permissions.
This fulfills the requirement to manage virtual machines under the principle of least privilege.
2
Identify the minimum required role for role delegation.
The User Access Administrator role is selected, as it permits managing role assignments without granting full resource ownership (Owner role).
This fulfills the requirement to delegate role assignments under the principle of least privilege.
3
Evaluate the correct scope for these assignments.
The role assignments must be applied at the resource group scope (RG-Dev) to target the specific resources and limit access.
Applying roles at the resource group level ensures the permissions inherit only to resources within RG-Dev, satisfying the scope requirement.

Anahtar Kavram

Azure RBAC roles are scoped to specific resource hierarchies (Management Group, Subscription, Resource Group, Resource). Assigning Virtual Machine Contributor allows VM management, while User Access Administrator allows role delegation. Microsoft Entra ID directory roles and Administrative Units do not directly grant Azure resource permissions.
Bu soruyu puanla