AZ-104 Manage Azure Identities and Governance Practice Question
A contractor from a partner company needs read-only access to one application resource group for 14 days. When the contractor leaves the project, access should be removed immediately by removing a single identity from a group. Which two actions should the administrator take? Select two.
⚠ Common exam trap
Watch out — candidates often confuse resource locks with RBAC roles, thinking a lock can enforce read-only access, but locks only prevent accidental deletion or modification and do not affect permissions granted by role assignments.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Create an Entra ID security group for the contractor team.
Creating an Entra ID security group for the contractor team (Option A) allows the administrator to manage access centrally. By assigning the Reader role to that group at the application resource group scope (Option B), all members inherit read-only permissions. When the contractor leaves, removing their user object from the group immediately revokes access without needing to modify role assignments, satisfying the requirement for a single identity removal.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Create an Entra ID security group for the contractor team.
Why this is correct
Creating an Entra ID security group for the contractor team is the correct first step because RBAC roles should be assigned to groups, not individuals, to simplify access lifecycle and ensure consistent permissions. Assigning the group a role at the appropriate scope means contractor membership is the single control: adding or removing a user from the group immediately revokes or grants inherited access. This also supports external B2B collaboration accounts for partner users while keeping the assignment centralised.
- ✓
Assign the Reader role to that group at the application resource group scope.
Why this is correct
Assigning the Reader role to that group at the application resource group scope is correct because Reader provides read-only access to all resources within that resource group, and the scope restricts visibility to exactly the application boundary. Resource group scope inherits to all child resources, so the contractor can view VMs, App Services, and storage but cannot modify or delete anything. This granular scoping aligns with least privilege and avoids giving broader subscription-level visibility.
- ✗
Assign Reader directly to the contractor's user object at the subscription scope.
Why it's wrong here
Assigning Reader directly to the contractor's user object at the subscription scope is wrong because subscription scope grants read access to every resource group and resource in the entire subscription, far beyond the application's resource group. Direct user assignments are also an anti-pattern because they are difficult to audit and revoke consistently when the contractor leaves or changes roles. This violates least-privilege principles and creates an unnecessary security risk.
When this WOULD be correct
This option would be correct if the question required granting read-only access to all resources within a subscription for a user, and there was no need for group-based management or temporary access. For example: 'A new employee needs read-only access to all resources in the subscription for auditing purposes.'
- ✗
Assign Contributor at the resource group scope and rely on discipline.
Why it's wrong here
Assigning Contributor at the resource group scope is wrong because Contributor includes write actions: it enables the contractor to create, delete, and modify resources, which is far too broad for read-only needs. Relying on discipline is not an acceptable security control because RBAC is preventive and there is no technical barrier to accidental or malicious changes. Even if the contractor only intends to view, any credential compromise would inherit write-level privileges.
When this WOULD be correct
If the requirement were for a contractor to have write permissions (e.g., to deploy resources) for a limited time, and the organization uses manual oversight to ensure compliance, then assigning Contributor at the resource group scope could be considered, though still not best practice.
- ✗
Use a resource lock to limit the contractor to read-only access.
Why it's wrong here
Using a resource lock to limit the contractor to read-only access is wrong because resource locks (such as ReadOnly) do not grant any access; they only prevent management operations from being performed on protected resources by users who already have RBAC permissions. A ReadOnly lock applies globally to all users with sufficient permission, not selectively to a contractor, meaning it cannot be used to define who can read a resource. Proper access must come from an RBAC role assignment like Reader, not a lock.
When this WOULD be correct
In a scenario where a user already has read access via a role assignment (e.g., Reader) and the administrator wants to prevent accidental deletion or changes to critical resources, a resource lock (e.g., CanNotDelete) would be the correct additional measure.
Option-by-option analysis
Why each answer is right or wrong
Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The AZ-104 exam frequently reuses these exact scenarios with slightly different constraints.
✓Create an Entra ID security group for the contractor team.Correct answer▾
Why this is correct
Creating an Entra ID security group for the contractor team is the correct first step because RBAC roles should be assigned to groups, not individuals, to simplify access lifecycle and ensure consistent permissions. Assigning the group a role at the appropriate scope means contractor membership is the single control: adding or removing a user from the group immediately revokes or grants inherited access. This also supports external B2B collaboration accounts for partner users while keeping the assignment centralised.
✗Assign Reader directly to the contractor's user object at the subscription scope.Wrong answer — click to see why▾
Why this is wrong here
Assigning Reader directly to the contractor's user object at the subscription scope grants read-only access to all resources in the subscription, not just the application resource group, violating the principle of least privilege. The requirement is for read-only access to a single resource group, not the entire subscription.
★ When this WOULD be the correct answer
This option would be correct if the question required granting read-only access to all resources within a subscription for a user, and there was no need for group-based management or temporary access. For example: 'A new employee needs read-only access to all resources in the subscription for auditing purposes.'
Why candidates choose this
Candidates may think assigning the Reader role directly to the user is simpler and sufficient, overlooking the need for scoped access and the requirement to remove access by removing a single identity from a group.
✗Assign Contributor at the resource group scope and rely on discipline.Wrong answer — click to see why▾
Why this is wrong here
Assigning Contributor at the resource group scope grants write permissions, which violates the requirement for read-only access. Relying on discipline is not a secure or auditable access control method.
★ When this WOULD be the correct answer
If the requirement were for a contractor to have write permissions (e.g., to deploy resources) for a limited time, and the organization uses manual oversight to ensure compliance, then assigning Contributor at the resource group scope could be considered, though still not best practice.
Why candidates choose this
Candidates may think Contributor is a 'standard' role and assume that discipline (e.g., verbal instructions) can prevent misuse, underestimating the need for least privilege and proper access controls.
✗Use a resource lock to limit the contractor to read-only access.Wrong answer — click to see why▾
Why this is wrong here
A resource lock prevents accidental deletion or modification of resources but does not grant read-only access; it only protects existing permissions. The contractor still needs a role assignment to access resources, so a lock alone is insufficient.
★ When this WOULD be the correct answer
In a scenario where a user already has read access via a role assignment (e.g., Reader) and the administrator wants to prevent accidental deletion or changes to critical resources, a resource lock (e.g., CanNotDelete) would be the correct additional measure.
Why candidates choose this
Candidates may confuse resource locks with role-based access control, thinking a lock can restrict access to read-only, when in fact locks only protect against operations on the resource itself, not access permissions.
Analysis generated from the official AZ-104blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”
Go deeper
Related to this question
Learn chapter
Privileged Identity Management (PIM)
Key term
Security
Security in IT is the practice of protecting systems, networks, and data from unauthorized access, damage, or theft.
Key term
Group
A group is a collection of users, devices, or other objects that are assigned permissions and policies together for simplified management in identity and governance systems like Microsoft Entra ID.
About these practice questions
This AZ-104 question is part of Courseiva's 1,049-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AZ-104 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-104 exam.