Question 367 — Domain 2-Describe Azure architecture and services | AZ-900 Practice Exam | 399 Questions
You are tasked with granting temporary access to a new engineer who will be working on a specific virtual machine for a week. What is the best way to handle this using RBAC? (Select one answer).
Assign the engineer the Owner role at the subscription level.
Assign the engineer the Reader role at the subscription level.
Assign the engineer the Contributor role at the virtual machine level.
Assign the engineer the Contributor role at the management group level.
Correct answers
Assign the engineer the Contributor role at the virtual machine level.
Explanations
Correct:
Assign the engineer the Contributor role at the virtual machine level
The Contributor role at the virtual machine level allows the engineer to manage the specific virtual machine without over-provisioning access to other resources, adhering to the principle of least privilege.
Wrong:
Assign the engineer the Owner role at the subscription level
This grants excessive permissions across the entire subscription, which is unnecessary and insecure for the task.
Assign the engineer the Reader role at the subscription level
The Reader role only provides read-only access, which is insufficient for managing the virtual machine.
Assign the engineer the Contributor role at the management group level
This would grant access to multiple resources across management groups, which is overly broad and violates the principle of least privilege.