Minimum Azure RBAC Role Assignments for User1
You have an Azure subscription that contains a user named User1 and two resource groups named RG1 and RG2. You need to ensure that User1 can perform the following tasks: • View all resources. • Restart virtual machines. • Create virtual machines in RG1 only. • Create storage accounts in RG1 only. What is the minimum number of role-based access control (RBAC) role assignments required?
Community Votes
64% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
Tests understanding that 'Reader', 'Virtual Machine Contributor', and 'Storage Account Contributor' are separate built-in roles that cannot be combined into a single assignment without violating least privilege or requiring custom roles not implied by 'minimum assignments'.
Determines the minimum number of RBAC role assignments needed to grant specific view, restart, and creation permissions in Azure. The correct answer is C because distinct built-in roles are required to satisfy least privilege across subscription and resource group scopes.
Selecting B (2) by assuming a single Custom Role or a broader Built-in Role like 'Contributor' can cover all tasks at RG1 scope while maintaining subscription-level read access, often overlooking that Reader is a separate role assignment at the subscription level.
Community Discussion (18 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
To achieve the specified requirements with minimal assignments using standard built-in roles, three distinct assignments are necessary. First, assign the Reader role at the Subscription scope to allow User1 to view all resources across RG1 and RG2. Second, assign the Virtual Machine Contributor role at the RG1 scope; this grants permission to create VMs and also includes the ability to restart them (as restarting is part of the VM management operations covered by this role). Third, assign the Storage Account Contributor role at the RG1 scope to enable creating storage accounts. This totals 3 assignments.Why the Other Options Are Wrong
Option A (1) is incorrect because a single role like 'Contributor' at RG1 would not grant read access to RG2 or the subscription root, and 'Owner' would grant excessive permissions. Option B (2) might seem plausible if one assumes a custom role or misinterprets scope inheritance, but you cannot combine 'Reader' (subscription scope) with RG-specific write permissions into two standard built-in role assignments without either over-granting or under-granting. Option D (4) is unnecessary as three well-placed built-in roles fully satisfy the constraints.Community Comment Notes
Many learners initially voted for B, arguing that a Custom Role could combine permissions, but the question implies standard RBAC usage where 'minimum assignments' usually refers to built-in roles unless specified otherwise. Comments highlighting the separation of 'Reader' at the subscription level and distinct contributor roles at the RG1 level support the answer C. Some users noted that 'Virtual Machine Contributor' covers both creating and restarting VMs, reducing the need for a separate 'Restart' role assignment.Exam Strategy
Always check if a single built-in role covers multiple actions (e.g., VM Contributor covers restart and create). Separate scope-based needs (Subscription Read vs. RG Write) require distinct assignments even if the user is the same.
Frequently Asked Questions
Does Virtual Machine Contributor include restart permissions?
Yes, Virtual Machine Contributor includes permissions to start, stop, and restart virtual machines along with create/delete operations.
Why can't we use one Contributor role for everything?
A Contributor role at RG1 scope does not grant read access to RG2 or the subscription level. Reader is a separate role needed for broad visibility.
Related Analysis
Practice All SC-300 Questions
Access 80 questions with complete answers and detailed explanations.
View Full SC-300 Practice Test →