AZ-104 practice by domain

AZ-104 Identity and Governance Practice Questions

Ten practice questions from the CramHQ AZ-104 bank for Manage Azure Identities and Governance, with answers and explanations. No signup needed.

Question 1 of 10Manage Azure Identities and Governance

CramHQ moves 40 support analysts to a new merchant operations pod. Their sign-in history, MFA registrations, licenses, and mailboxes must remain unchanged, but they should no longer manage the old resource group and must manage the new one. What should the administrator recommend?

  1. A. Bulk update each Microsoft Entra user profile department value and assign the users directly to the Contributor role on the new resource group.
  2. B. Disable the Microsoft Entra accounts, revoke user sessions, re-enable the accounts, and then assign the users directly to the Reader role on the old resource group.
  3. C. Bulk delete the Microsoft Entra user accounts, restore them, and then add the restored accounts to the group assigned to the new resource group.
  4. D. Update Microsoft Entra security group membership so the users leave the group with the old Azure RBAC assignment and join the group assigned to the new resource group.
Show answer and explanation

Answer: D

This keeps each user object, authentication methods, licenses, and history intact while changing resource permissions through group-based Azure RBAC, matching the stated change in work scope.

If you picked A

Why it is tempting: It mentions a bulk change and grants Contributor on the new resource group, so it appears to address the new job assignment.

Why it is wrong: Profile attributes do not control Azure RBAC access, and adding new access does not automatically remove old access.

If you picked B

Why it is tempting: Disabling accounts and revoking sessions are familiar administrative controls when access must be restricted quickly.

Why it is wrong: Use account disabling or session revocation for sign-in control; use role assignments or group membership to change resource permissions.

If you picked C

Why it is tempting: Restoring accounts can sound like a way to refresh group membership while keeping recognizable user identities.

Why it is wrong: Deleting and restoring users is an account recovery workflow, not a normal way to change Azure resource permissions for valid accounts.

Question 2 of 10Manage Azure Identities and Governance

CramHQ must onboard 600 internal R&D engineers this weekend. HR provided names, desired user principal names, departments, and a flag indicating whether each account should be usable on Monday. An administrator wants one portal-based upload that creates the accounts and prevents format-related job failures; license assignment can occur after creation. Which recommendation should the administrator follow?

  1. A. Use Microsoft Entra admin center Bulk create; keep the template rows unchanged, fill all required fields, and set Block sign in to No for accounts that must wait.
  2. B. Use Microsoft Entra admin center Bulk create; download its CSV template, keep the version and header rows unchanged, remove sample rows, and provide Name, User name, Initial password, and Block sign in values.
  3. C. Use Microsoft Entra admin center Bulk create; export a custom CSV from HR with displayName, userPrincipalName, department, usageLocation, license, and accountEnabled columns, then upload it.
  4. D. Use Microsoft Entra admin center Bulk create; keep the template rows unchanged, but leave Initial password blank for rows where Block sign in is Yes.
Show answer and explanation

Answer: B

Microsoft Entra admin center Bulk create requires the downloaded CSV structure and exact headings, with Name, User name, Initial password, and Block sign in populated. Setting Block sign in to Yes prevents sign-in after creation.

If you picked A

Why it is tempting: The wording can feel backwards because the field is phrased as a block rather than an enablement setting.

Why it is wrong: Block sign in controls whether the account can be used to sign in. Use a blocked state for accounts that must not be usable yet.

If you picked C

Why it is tempting: Fields like userPrincipalName and accountEnabled look technically relevant to user creation.

Why it is wrong: The portal bulk-create upload expects its downloaded template and exact required fields, not an arbitrary property-style CSV.

If you picked D

Why it is tempting: If the account cannot sign in yet, the password can seem unnecessary until release.

Why it is wrong: Initial password remains a required bulk-create value for each internal user row, even when sign-in is blocked.

Question 3 of 10Manage Azure Identities and Governance

CramHQ enrolls airport check-in endpoints in Microsoft Entra ID for its airline platform. Operations assigns configuration and access according to each endpoint's region and purpose. Devices are replaced often during station maintenance, and missed assignment can delay check-in. The team wants membership to track the endpoint inventory without using collaboration features or updating users as proxies. Which group design should you recommend?

  1. A. Create a Microsoft 365 group with Dynamic User membership based on airport staff attributes; target the assignments to that group.
  2. B. Create a Security group with Dynamic User membership based on each endpoint owner's attributes; target the assignments to that group.
  3. C. Create a Security group with Dynamic Device membership based on device attributes; target the configuration and access assignments to that group.
  4. D. Create a Security group with Assigned membership for the endpoint objects; update it from replacement tickets before targeting assignments to that group.
Show answer and explanation

Answer: C

Security groups can include device objects, and Dynamic Device membership evaluates device attributes directly. That matches frequent endpoint replacement without proxying through users or adding collaboration resources.

If you picked A

Why it is tempting: Dynamic user membership sounds automated, and Microsoft 365 groups are familiar for organizing people.

Why it is wrong: Use a group design that can contain and assign to the objects that actually need the configuration or access.

If you picked B

Why it is tempting: A security group can be used for assignments, and owner attributes can appear to describe the endpoint indirectly.

Why it is wrong: For device assignments, target device objects directly instead of deriving membership from user or owner attributes.

If you picked D

Why it is tempting: Assigned membership is straightforward and the security group can contain device objects.

Why it is wrong: Use assigned membership only when manual membership maintenance fits the operational requirement.

Show all 10 practice questions
Question 4 of 10Manage Azure Identities and Governance

CramHQ's payments team needs one repeatable permission set for operators who manage app resources in selected resource groups across two Azure subscriptions. New app resource groups will be added often, but the permission set must not be available for assignments outside those two subscriptions. Which recommendation best fits?

  1. A. Create one Azure custom role with the required Actions, set AssignableScopes to the current resource group IDs, and update the role whenever new app resource groups are created.
  2. B. Create one Azure custom role with the required Actions, set AssignableScopes to both subscription IDs, and create role assignments only on the selected resource groups.
  3. C. Create separate Azure custom roles with the same required Actions for each resource group, each with AssignableScopes set to that resource group ID.
  4. D. Create one Azure custom role with the required Actions, set AssignableScopes to the tenant root management group, and assign it only to the selected resource groups.
Show answer and explanation

Answer: B

A custom role can be made available at subscription scope and then assigned at lower scopes within those subscriptions. This supports new resource groups without changing the role definition while preventing assignments elsewhere.

If you picked A

Why it is tempting: It looks least-privileged because the custom role is available only at the resource groups that need it today.

Why it is wrong: Use AssignableScopes to define the approved area where the custom role can be assigned, and use role assignments to grant access at selected lower scopes.

If you picked C

Why it is tempting: Each role is tightly scoped to one resource group, so it appears to minimize where the role can be assigned.

Why it is wrong: When the Actions are the same, reuse one custom role definition and choose AssignableScopes that cover the approved parent scopes.

If you picked D

Why it is tempting: Assigning the role only to selected resource groups sounds like it keeps actual access narrow.

Why it is wrong: AssignableScopes must stop at the largest approved boundary; narrow assignments do not fix an overly broad role-definition availability scope.

Question 5 of 10Manage Azure Identities and Governance

CramHQ's R&D lab creates and removes simulator VMs weekly in resource group RG-Sim. Automation engineers must start, stop, redeploy, and resize those VMs without managing networking, storage accounts, or any resources in other lab resource groups. Which Azure RBAC recommendation best meets the operational need with the smallest ongoing access boundary?

  1. A. Assign Contributor to the automation group at RG-Sim.
  2. B. Assign Virtual Machine Contributor to the automation group at each existing simulator VM.
  3. C. Assign Virtual Machine Contributor to the automation group at RG-Sim.
  4. D. Assign Virtual Machine Contributor to the automation group at the lab subscription.
Show answer and explanation

Answer: C

Virtual Machine Contributor supports the required VM operations. Applying it at RG-Sim covers current and future simulator VMs in that resource group without granting rights in other lab resource groups.

If you picked A

Why it is tempting: Resource group scope looks narrow enough, and Contributor is often associated with day-to-day administration.

Why it is wrong: Select the built-in role that grants the required operations without unnecessary control over unrelated resource types.

If you picked B

Why it is tempting: Per-resource assignment feels like the smallest possible scope for least privilege.

Why it is wrong: Assign at the lowest scope that still covers current resources and expected future resources created under the same boundary.

If you picked D

Why it is tempting: Subscription scope would cover future VMs without repeated assignments.

Why it is wrong: Do not assign at a higher scope when a lower scope covers the operational boundary.

Question 6 of 10Manage Azure Identities and Governance

A researcher at CramHQ can restart virtual machines in the genomics compute resource group. The resource group owner sees no assignment created directly for that researcher and needs to determine why access exists and reduce it without affecting unrelated users. Which recommendation is best?

  1. A. Use Access control (IAM) on the resource group to check the researcher, then remove the parent-scope role assignment or replace it with a narrower assignment.
  2. B. Use Access control (IAM) on each virtual machine to check the researcher, then remove matching assignments only from the virtual machines.
  3. C. Use Access control (IAM) on the resource group to list direct assignments, then add Reader for the researcher at the same resource group.
  4. D. Use Microsoft Entra admin center to remove the researcher from all security groups, then recreate only resource-group-level membership.
Show answer and explanation

Answer: A

Checking access at the affected scope shows assignments at that scope and assignments inherited from parent scopes. If the permission comes from a broader assignment, changing that source is required.

If you picked B

Why it is tempting: The observed action happens on virtual machines, so checking each VM feels directly tied to the symptom.

Why it is wrong: For inherited Azure RBAC access, the effective grant can come from the resource group, subscription, or management group; removing only child-resource assignments does not remove parent-scope access.

If you picked C

Why it is tempting: Reader sounds more restrictive, and assigning it at the resource group seems aligned to the affected scope.

Why it is wrong: Azure RBAC role assignments are additive; to reduce access, remove or narrow the assignment that grants the unwanted permission.

If you picked D

Why it is tempting: Security groups can be used in Azure RBAC assignments, so group membership can look like the right place to act.

Why it is wrong: Effective access troubleshooting should identify whether the grant comes from a user assignment, group assignment, role capability, and scope before changing membership or assignments.

Question 7 of 10Manage Azure Identities and Governance

CramHQ's genomics teams frequently deploy short-lived compute resources. Operations finds many resources missing the required billing tag, and some contain stale values. They want future create and update requests to be corrected when possible, and existing resources corrected during a planned cleanup window without making researchers resubmit deployments. Which recommendation best meets the governance intent?

  1. A. Assign an Azure Policy definition with the modify effect for the tag and create a remediation task using the assignment's managed identity.
  2. B. Assign an Azure Policy definition with the append effect for the tag and run a remediation task after the assignment.
  3. C. Assign an Azure Policy definition with the deployIfNotExists effect to deploy the required tag and create a remediation task for existing resources.
  4. D. Assign an Azure Policy definition with the deny effect for missing or incorrect tag values and exempt the existing research resource groups temporarily.
Show answer and explanation

Answer: A

This matches the need to correct supported fields during create or update and remediate existing noncompliant resources through a remediation task that uses the assignment identity.

If you picked B

Why it is tempting: Append can sound appropriate when the problem is a missing tag on future deployments.

Why it is wrong: Use modify, not append, when the policy must update supported tag values and remediate resources that already exist.

If you picked C

Why it is tempting: deployIfNotExists is remediation-capable, so it can look close when the question mentions existing resources.

Why it is wrong: Use deployIfNotExists for deploying related resources or configurations, and use modify for changing supported properties such as tags on the evaluated resource.

If you picked D

Why it is tempting: Deny is familiar for preventing noncompliant creates or updates, and exemptions can appear to handle existing resources.

Why it is wrong: Use deny when the intent is to reject noncompliant requests; use modify when the intent is to correct supported properties during evaluation.

Question 8 of 10Manage Azure Identities and Governance

CramHQ's telemetry platform team is onboarding several Azure subscriptions under one management group for mission workloads. Security wants a reusable control package that applies multiple guardrails and configuration checks together, reports compliance as one program, and lets each guardrail keep its own behavior when resources are created or drift. Which recommendation best fits this governance need?

  1. A. Create an Azure Policy initiative definition, add the required policy definitions with their own parameters/effects, assign it to the management group with a managed identity, and remediate applicable noncompliant resources.
  2. B. Create one custom Azure Policy definition that combines all required checks, assign it to the management group with a managed identity, and use a parameterized deny/audit effect.
  3. C. Create an Azure Policy initiative definition, assign it to each resource group with Enforcement mode Disabled, and remediate after compliance scans identify noncompliant resources.
  4. D. Create separate Azure Policy assignments for each required policy definition at each subscription, configure the intended effect per assignment, and remediate applicable noncompliant resources.
Show answer and explanation

Answer: A

This preserves each included definition's documented behavior while managing the set through one assignment at the containing scope. The assignment identity supports remediation for definitions that can change existing resources.

If you picked B

Why it is tempting: A custom policy can contain complex logic and can be assigned at the management group, so it appears to centralize governance.

Why it is wrong: When controls need separate evaluation, reporting, parameters, effects, or remediation behavior, group separate definitions in an initiative instead of flattening them into one definition.

If you picked C

Why it is tempting: The choice uses an initiative and still produces compliance data, which matches part of the scenario.

Why it is wrong: The assignment behavior must match the governance intent; disabling enforcement is inappropriate when request-time guardrails and normal policy behavior are required.

If you picked D

Why it is tempting: Separate assignments can enforce each policy and can use the intended effect for each control.

Why it is wrong: Use an initiative when related policy definitions must be assigned and reported together as one managed set.

Question 9 of 10Manage Azure Identities and Governance

CramHQ runs many short-lived genomics experiments in one funded Azure subscription. Each experiment deploys compute, disks, load balancers, and temporary storage in multiple regions, while shared datasets and hub networking must persist. Lab leads need delegated control to clean up only their experiment after publication. Which organization should you recommend?

  1. A. Create one resource group per Azure region, place each experiment's regional assets in the matching group, and assign each lab lead Owner on all groups used by that experiment.
  2. B. Create one resource group per experiment for temporary assets, keep shared datasets and hub networking in separate resource groups, and assign each lab lead Owner on the experiment group.
  3. C. Create one subscription per experiment under the same management group, place shared datasets in a separate subscription, and assign each lab lead Owner on the experiment subscription.
  4. D. Create one resource group per resource type, place compute, disks, load balancers, and storage in separate groups, and assign each lab lead Owner on the required type groups.
Show answer and explanation

Answer: B

A resource group is the documented management boundary for resources that are administered together. This matches the experiment lifecycle and permits scoped delegated control without including persistent shared resources.

If you picked A

Why it is tempting: Regional grouping can look tidy when resources are deployed in multiple Azure regions.

Why it is wrong: Resource groups should reflect resources that are administered, delegated, and deleted together when lifecycle is the decisive requirement.

If you picked C

Why it is tempting: A subscription can provide strong isolation, quotas, and billing separation, so it can look like the safest boundary.

Why it is wrong: Select the smallest Azure governance scope that satisfies the control requirement; use a subscription when subscription-level isolation, billing, or policy separation is required.

If you picked D

Why it is tempting: Grouping all compute, disks, load balancers, and storage by type can make inventory views feel orderly.

Why it is wrong: Operational grouping should follow the administration and lifecycle boundary when delegation and cleanup are the stated goals.

Question 10 of 10Manage Azure Identities and Governance

CramHQ removed Lina's Contributor assignment from rg-compute after her project ended, but she can still start and deallocate VMs there. She must keep read-only access to rg-compute, and the ops group she belongs to must continue managing the rest of the subscription. Check access at rg-compute shows the permission source is an ops group assignment above the resource group. What should you recommend?

  1. A. Create an Azure deny assignment on rg-compute for VM start and deallocate actions, and assign Lina Reader on rg-compute.
  2. B. Remove Lina's direct Contributor assignment on rg-compute and assign Lina Reader on rg-compute.
  3. C. Assign Lina Reader on rg-compute and leave the ops group's subscription-level Virtual Machine Contributor assignment unchanged.
  4. D. Replace the ops group's subscription-level Virtual Machine Contributor assignment with resource-group assignments for the groups it should manage, and assign Lina Reader on rg-compute.
Show answer and explanation

Answer: D

This changes the assignment that still grants VM management at the broader boundary while preserving the group's management access where it is still needed. The Reader assignment supplies only the stated read-only access.

If you picked A

Why it is tempting: A deny sounds like it would override allowed actions while preserving read access.

Why it is wrong: Use the effective permission source shown by Check access to decide which role assignment must change.

If you picked B

Why it is tempting: Contributor on the affected resource group is the obvious permission to remove when VM management should stop there.

Why it is wrong: Distinguish direct assignments from inherited assignments; removing one does not affect permissions granted from a parent scope.

If you picked C

Why it is tempting: Reader matches Lina's required remaining access, so it can look like the final corrective assignment.

Why it is wrong: Azure RBAC allow permissions are additive; a narrower read-only assignment does not remove actions granted by another role assignment.

CramHQ links wrong answers to the mistake behind them. The free diagnostic finds yours, then your Pass Plan works on them.