Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Evaluate and remediate overprivileged access assignments by using Azure role-based access control (RBAC)

A worked example

Single answer

Adele is an active engineer who holds the Owner role at the Contoso-Prod subscription scope. A completed access review confirmed that she must still manage the existing virtual machines in the rg-app1 resource group every day. She doesn't manage networks, storage, or role assignments, and she has no work in other resource groups.

Requirements:

  • Apply least privilege by using the most specific built-in role at the narrowest scope. Use a single replacement role assignment.
  • Adele must not lose access to the VMs at any point during the change.

Which remediation should you perform?

Choose one answer
Why

Replace subscription Owner with Virtual Machine Contributor at rg-app1 to match Adele's VM-management responsibilities. This service-specific role avoids the broad resource-management permissions of Contributor and the role-assignment permissions of Owner. Establish and verify the replacement assignment before removing Owner to preserve access during the change.

  • Not correct: Assign Virtual Machine Contributor at the subscription, verify the assignment is effective, then remove subscription Owner. Subscription scope grants VM-management access beyond rg-app1. Adele has no responsibilities in the other resource groups.
  • Not correct: Keep Owner at the subscription and record the access review approval as justification. The review confirmed Adele's VM-management responsibilities, not a continuing need for subscription Owner. Retention requires justification for the existing permission level.
  • Correct: Assign Virtual Machine Contributor at rg-app1, verify the assignment is effective, then remove subscription Owner. A service-specific role at resource group scope replaces the excessive Owner assignment. Establishing and verifying the replacement before removing Owner preserves Adele's required access.
  • Not correct: Remove subscription Owner, then assign Virtual Machine Contributor at rg-app1 and verify the assignment is effective. The role and scope fit the work, but removing Owner before establishing replacement access can interrupt Adele's access.
  • Not correct: Assign Contributor at rg-app1, verify the assignment is effective, then remove subscription Owner. Contributor grants broader resource-management permissions than Adele needs. The source recommends selecting an applicable service-specific role instead.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free