Courseiva

CCNA Manage Azure Identities and Governance Questions

75 of 233 questions · Page 2/4 · Manage Azure Identities and Governance · Answers revealed

76
MCQmedium

Your company has two subscriptions named Dev-Sub and Prod-Sub. A new administrator must be able to create resource groups only in Dev-Sub and must not have any permissions in Prod-Sub. What should you do?

A.Assign Contributor to the administrator at the management group scope.
B.Assign Contributor to the administrator at the Dev-Sub scope.
C.Assign Owner to the administrator at the resource group scope in Dev-Sub.
D.Assign Reader to the administrator at the Prod-Sub scope and Contributor at the tenant root group.
AnswerB

Assigning Contributor at the Dev-Sub subscription scope grants the administrator permission to create and manage all resource types within that subscription, including resource groups and any resources inside them, without granting access to other subscriptions. Contributor deliberately excludes the 'Manage Access' permission, so the administrator cannot delegate roles to others, aligning with the principle of least privilege. This scope exactly matches the requirement to administer Dev resources, and because the role assignment is scoped to the subscription, it cannot affect Prod-Sub or any other Azure scope.

Why this answer

Assigning the Contributor role at the Dev-Sub scope grants the administrator full permissions to create and manage resource groups within that subscription, while the role assignment is scoped exclusively to Dev-Sub, ensuring no permissions in Prod-Sub. Azure RBAC is hierarchical, so a role assigned at a subscription scope applies to all resource groups within it, but does not cross subscription boundaries. This meets the requirement of allowing resource group creation only in Dev-Sub with no access to Prod-Sub.

Exam trap

The trap here is that candidates often confuse the scope required to create resource groups (subscription-level write permission) with the ability to manage existing resource groups (resource group-level permission), leading them to incorrectly choose Option C (Owner at resource group scope) which only allows management of that specific resource group, not creation of new ones.

Why the other options are wrong

A

Assigning Contributor at the management group scope grants permissions to all subscriptions under that management group, including Prod-Sub, which violates the requirement that the administrator must have no permissions in Prod-Sub.

C

The Owner role at the resource group scope in Dev-Sub grants full access, including the ability to assign permissions, which exceeds the requirement to only create resource groups. Additionally, it does not prevent the administrator from gaining permissions in Prod-Sub through inheritance if the management group hierarchy includes both subscriptions.

D

Assigning Reader at Prod-Sub scope grants read-only permissions in Prod-Sub, violating the requirement that the administrator must have no permissions in Prod-Sub. Additionally, assigning Contributor at the tenant root group would grant Contributor access to all subscriptions, including Prod-Sub.

77
MCQeasy

A production resource group must not be deleted accidentally, but administrators still need to update resources inside it. Which lock should you apply to the resource group?

A.ReadOnly lock
B.CanNotDelete lock
C.Contributor role
D.Azure Policy deny assignment
AnswerB

A CanNotDelete lock blocks delete operations on the resource group and all contained resources while allowing normal read and update activities, making it the right control to prevent accidental deletion. It is enforced by Azure Resource Manager after RBAC authorization, so even users with delete permissions (such as Owner) will be denied the delete operation as long as the lock is present. Since the question concerns only accidental deletion, this lock provides the exact protection without affecting ongoing administration.

Why this answer

The CanNotDelete lock (option B) is correct because it prevents deletion of the resource group while still allowing all other operations, including updates to resources within it. This lock type is specifically designed to protect against accidental deletion without blocking read, write, or modify actions, which aligns perfectly with the requirement that administrators need to update resources inside the group.

Exam trap

The trap here is that candidates often confuse RBAC roles (like Contributor) with resource locks, mistakenly thinking that assigning a role can prevent deletion, whereas locks are a separate governance mechanism that override role-based permissions for specific operations.

How to eliminate wrong answers

Option A is wrong because a ReadOnly lock prevents all write operations, including updates to resources, which would block administrators from modifying resources inside the group. Option C is wrong because the Contributor role is an Azure RBAC role that grants permissions to manage resources but does not provide a lock mechanism to prevent deletion; it can be overridden by other permissions or bypassed by users with higher roles. Option D is wrong because an Azure Policy deny assignment is used to enforce compliance rules (e.g., restricting resource types or locations) and is not designed to block deletion of a resource group; it can be complex to configure and may inadvertently block updates if not scoped correctly.

78
MCQmedium

A finance application is deployed in a single resource group named rg-finance-app. The team must manage only the resources in that group and must not receive permissions for other resource groups in the subscription. Where should the Contributor role be assigned?

A.At the management group that contains the subscription.
B.At the subscription scope.
C.At the rg-finance-app resource group scope.
D.At each individual resource in the resource group.
AnswerC

Resource group scope is the narrowest scope that still covers all resources for the finance application. Any resource inside that group inherits the assignment, while resources in other groups remain unaffected. This gives the team exactly the access needed without expanding permissions to unrelated workloads.

Why this answer

The Contributor role must be assigned at the rg-finance-app resource group scope to restrict permissions exclusively to that group. This ensures the team can manage only the resources within that resource group, without inheriting permissions to other resource groups in the subscription. Role assignments in Azure are inherited from higher scopes (management group, subscription) down to lower scopes, so assigning at the resource group scope is the most specific and restrictive level that meets the requirement.

Exam trap

The trap here is that candidates often choose the subscription scope (Option B) thinking it is the simplest way to grant access, but they overlook that it would grant permissions to all resource groups in the subscription, violating the requirement to restrict access to only rg-finance-app.

Why the other options are wrong

A

Assigning Contributor at the management group scope grants permissions to all subscriptions within that management group, not just the rg-finance-app resource group, violating the requirement to restrict access to only that resource group.

B

Assigning the Contributor role at the subscription scope grants permissions to all resource groups in the subscription, not just rg-finance-app, violating the requirement to restrict access to only that resource group.

D

Assigning the Contributor role at each individual resource would be overly granular and inefficient; it violates the principle of least privilege by requiring separate assignments for every resource, and it does not cover future resources added to the group.

79
MCQeasy

Based on the exhibit, which identity type should be used so the on-premises build server can authenticate to Azure without using a human account password?

A.System-assigned managed identity
B.User-assigned managed identity
C.Service principal
D.Azure Storage access key
AnswerC

A service principal is the correct choice for non-Azure automation that needs to authenticate to Azure without using a person’s credentials. It can be paired with a certificate or secret and used by build and deployment tools running outside Azure.

Why this answer

A service principal is the correct identity type for an on-premises build server to authenticate to Azure without a human account password because it represents a non-human identity that can be assigned to applications, services, and automation tools. Service principals authenticate using client secrets or certificates, enabling secure, password-less authentication via OAuth 2.0 client credentials grant flow, which is ideal for automated build pipelines.

Exam trap

The trap here is that candidates often confuse managed identities (which are Azure-resource-bound) with service principals (which are application identities), leading them to choose a managed identity option even though the on-premises server cannot host an Azure-managed identity.

Why the other options are wrong

A

System-assigned managed identity is tied to a specific Azure resource (e.g., a VM) and cannot be used by an on-premises build server, which is outside Azure.

B

User-assigned managed identities are tied to Azure resources (e.g., VMs, App Services) and cannot be used by an on-premises build server, which is outside Azure. The question requires an identity that works for an on-premises resource, so a service principal (app registration) is needed.

D

Azure Storage access keys are used to authenticate to Azure Storage services, not to authenticate an on-premises build server to Azure in general. They do not support authentication without a human account password in the context of Azure AD authentication.

80
MCQmedium

An administrator added a user to an Entra security group that already has Contributor on a resource group. The role assignment is correct, but the user still gets 'You do not have access' in the Azure portal 5 minutes later. What is the most likely next step?

A.Change the role assignment from the group to the subscription.
B.Have the user sign out and sign back in to refresh the access token.
C.Delete and recreate the resource group.
D.Assign Owner directly to the user.
AnswerB

When a user is added to a group that holds a role assignment, the existing access token does not include the new group claim. Entra ID tokens are cached for their lifetime (typically 60-90 minutes), and during that window the Azure portal cannot see the updated membership. Signing out clears the cached token and session state; signing back in forces a fresh token issuance that includes the updated group claims, so RBAC evaluation recognizes the user's new permissions immediately. This is the direct, least-privilege fix.

Why this answer

When a user is added to a security group that already has a role assignment, the new permissions take effect immediately in Azure RBAC, but the user's existing access token (which is cached by the Azure portal) does not include the new group membership claims. The token must be refreshed by signing out and signing back in, or by closing and reopening the browser, to force a new token acquisition that includes the updated role assignments.

Exam trap

The trap here is that candidates assume Azure RBAC changes are instantaneous and overlook the client-side token caching mechanism, leading them to incorrectly modify the role assignment or scope instead of simply refreshing the user's session.

Why the other options are wrong

A

The user already has Contributor permissions via group membership on the resource group; changing the scope to subscription would grant broader access but does not address the token refresh issue causing the 'access denied' message.

C

Deleting and recreating the resource group would remove all resources and is an extreme, unnecessary action. The issue is a stale access token, not a problem with the resource group itself.

D

Assigning Owner directly to the user bypasses group-based management and violates the principle of least privilege, but more importantly, it does not address the root cause: the user's access token has not yet been refreshed to include the new group membership.

81
MCQmedium

A company wants to stop users from deploying resources in any region except East US and West US. Users still need to be able to create resources if they choose an approved region. Which Azure feature should the administrator use?

A.Azure RBAC with a Contributor role at the subscription scope.
B.Azure Policy with a deny effect assigned at the appropriate scope.
C.A resource lock at the subscription level.
D.A tag requirement in Azure RBAC.
AnswerB

Azure Policy is designed for compliance and enforcement. A policy that checks the location property and uses a deny effect can block deployments outside the approved regions while still allowing valid deployments in East US or West US. This meets the requirement without changing the users' general ability to create resources.

Why this answer

Azure Policy with a deny effect can enforce that resource deployments are only allowed in specified regions (East US and West US) by evaluating the location property of the resource against a policy definition. When a user attempts to deploy a resource in a non-approved region, the policy engine rejects the request before any resource creation begins, ensuring compliance without blocking approved regions.

Exam trap

The trap here is confusing Azure Policy (which can enforce location restrictions with a deny effect) with Azure RBAC (which controls permissions but not resource properties) or resource locks (which protect against deletion/modification, not creation).

Why the other options are wrong

A

Azure RBAC with a Contributor role grants broad permissions to create and manage resources but does not restrict which regions can be used. It allows resource creation in any region, not just East US and West US.

C

A resource lock at the subscription level prevents deletion or modification of all resources, but does not restrict resource creation to specific regions; it blocks all changes indiscriminately.

D

Tag requirements in Azure RBAC cannot restrict resource deployment by region; they only enforce tagging on resources, not control which regions are allowed.

82
MCQmedium

A policy at the management group denies storage accounts that allow public network access. One legacy storage account in RG-Legacy must stay public for 30 days while a migration runs, and the team does not want to change the policy for everyone else. What should the administrator create?

A.A resource lock on the storage account
B.A policy exemption for that storage account
C.A second policy assignment with higher priority
D.A custom RBAC role for the migration team
AnswerB

A policy exemption is designed for temporary or justified exceptions to an assignment without weakening the control for all other resources. It lets the legacy storage account remain out of compliance for the approved period while the deny policy continues to apply everywhere else under the management group.

Why this answer

A policy exemption allows specific resources to be excluded from the effect of a policy initiative without modifying the original policy definition. In this scenario, the management group policy denies storage accounts with public network access, but the legacy account needs to remain public temporarily. By creating a policy exemption (with 'exempt' category) for that specific storage account, the administrator can bypass the deny effect for 30 days while the policy continues to apply to all other resources.

Exam trap

The trap here is that candidates confuse policy exemptions with resource locks or RBAC, thinking that locking the resource or assigning permissions can bypass policy enforcement, but only a policy exemption can create a targeted exception without altering the policy definition.

Why the other options are wrong

A

A resource lock prevents deletion or modification of the storage account, but it does not override the policy that denies public network access. The lock cannot exempt the account from the policy effect.

C

Policy assignments with higher priority do not override existing policy definitions; Azure Policy uses 'deny' effects that cannot be bypassed by priority. A second assignment would still enforce the deny effect on the storage account.

D

A custom RBAC role controls permissions for users, not policy enforcement. It cannot override a deny policy at the management group scope, so it would not allow the storage account to remain public.

83
MCQhard

Your company has two Azure subscriptions named Dev-Sub and Prod-Sub. You need to ensure that a user can create resource groups only in Dev-Sub and nowhere else. What should you do?

A.Assign the Contributor role at the Dev-Sub subscription scope.
B.Assign the Owner role at the tenant root scope.
C.Assign the Reader role at the Dev-Sub subscription scope.
D.Assign the Contributor role at the management group scope that contains both subscriptions.
AnswerA

Assigning Contributor at the Dev-Sub subscription scope grants the user full management rights over all resources and resource groups inside that subscription, including permission to create new resource groups via Microsoft.Resources/subscriptions/resourceGroups/write. Because the scope is limited to Dev-Sub, this role assignment does not extend to Prod-Sub, and unlike Owner, Contributor cannot modify role assignments. This is the correct least-privilege choice for the stated requirement.

Why this answer

The Contributor role allows a user to create and manage resources, including resource groups, within the assigned scope. By assigning this role at the Dev-Sub subscription scope, the user gains the necessary permissions to create resource groups only in that subscription, as Azure RBAC permissions are inherited downward but not across sibling scopes. This ensures the user cannot create resource groups in Prod-Sub or any other subscription.

Exam trap

The trap here is that candidates often confuse the Contributor role with the Reader role, or incorrectly assume that assigning a role at a management group scope can be used to limit permissions to a single subscription, not realizing that management group scope inheritance applies to all child subscriptions.

Why the other options are wrong

B

Assigning the Owner role at the tenant root scope grants full administrative access to the entire Azure AD tenant, including all subscriptions, which would allow the user to create resource groups in both Dev-Sub and Prod-Sub, not just Dev-Sub.

C

The Reader role only allows read access, not the ability to create resource groups. The user needs write permissions to create resource groups.

D

Assigning Contributor at the management group scope that contains both subscriptions would grant the user Contributor permissions on both Dev-Sub and Prod-Sub, allowing resource group creation in both, which violates the requirement to restrict creation to Dev-Sub only.

84
MCQmedium

You need to ensure that all new resources deployed to a subscription automatically receive a CostCenter tag with a default value if the tag is omitted during deployment. Which Azure governance feature should you use?

A.A resource lock
B.An Azure Policy with an append or modify effect
C.A management group lock
D.A custom RBAC role
AnswerB

An Azure Policy with an append or modify effect is evaluated during resource provisioning. Append can inject a required tag such as CostCenter into the resource properties when absent, while modify can add or update tag values and can even use a managed identity to remediate existing non-compliant resources. This happens automatically at deployment time, making it the only option that actually writes metadata as part of the creation flow.

Why this answer

Azure Policy with an append or modify effect can automatically add a CostCenter tag with a default value to resources that are missing it during deployment. The append effect adds the tag and value at creation time, while the modify effect (using a 'addOrReplace' operation) can also update existing resources. This ensures governance compliance without manual intervention.

Exam trap

The trap here is confusing Azure Policy (which enforces and automatically applies tags) with resource locks or RBAC roles, which manage permissions or prevent changes but do not automatically add missing tags.

Why the other options are wrong

A

Resource locks prevent deletion or modification of resources, but they do not enforce tagging or add default tags to new resources.

C

Management group locks prevent deletion or modification of resources at the management group scope, but they do not enforce tagging or add default values to new resources.

D

Custom RBAC roles control permissions (who can do what) but cannot enforce tag values or automatically add missing tags during resource deployment.

85
Multi-Selecteasy

A project team adds and removes contractors every month. The admin wants Azure access to update automatically when membership changes without editing role assignments for each person. Which two actions should the admin take? Select two.

Select 2 answers
A.Create a Microsoft Entra ID security group for the contractors.
B.Assign the Azure RBAC role directly to each contractor user account.
C.Assign the Azure RBAC role to the security group.
D.Create a management group for the contractors.
E.Use a resource lock to control access.
AnswersA, C

A security group gives the administrator one place to manage a changing set of users. When contractors join or leave, membership can be updated without rewriting Azure role assignments. This is the standard way to delegate access for a team or project that changes often.

Why this answer

Creating a Microsoft Entra ID security group for contractors allows the admin to manage membership dynamically. When contractors are added or removed from the group, their Azure access updates automatically without needing to edit individual role assignments. This leverages group-based RBAC, where the group is assigned the role, and membership changes propagate to Azure RBAC.

Exam trap

The trap here is that candidates often confuse management groups (Option D) with security groups, thinking they can be used for access control, but management groups are for organizing subscriptions and applying policies, not for assigning RBAC roles to users.

Why the other options are wrong

B

Assigning RBAC roles directly to each contractor user account requires manual updates when contractors change, which does not meet the requirement for automatic access updates based on membership changes.

D

Management groups are used for organizing subscriptions and applying governance policies, not for managing user access to resources. They do not support direct role assignments for user access control.

E

Resource locks prevent accidental deletion or modification of resources, but they do not automate role assignment updates based on group membership changes. The question requires dynamic access updates, which resource locks cannot provide.

86
MCQmedium

An administrator assigned a modify policy at the subscription scope to add a CostCenter tag to new virtual machines. New VMs now have the tag, but older VMs in the subscription still do not. What must the administrator do to bring the existing VMs into compliance?

A.Reassign the policy at the resource group scope.
B.Create a remediation task for the noncompliant resources.
C.Add a resource lock to the subscription.
D.Move the VMs to another resource group and back again.
AnswerB

Policy assignments evaluate both existing and new resources, but a modify effect needs remediation to update already deployed resources. The remediation task tells Azure Policy to apply the configured effect to noncompliant resources that were created before the assignment or before the policy changed. That is the step that fills in the missing tag on the older virtual machines.

Why this answer

The modify effect policy assigned at the subscription scope automatically applies the CostCenter tag to new resources during creation, but it does not retroactively update existing noncompliant resources. To bring older VMs into compliance, the administrator must create a remediation task, which triggers Azure Policy's deployment engine to evaluate and apply the defined modify effect (e.g., adding the missing tag) to existing noncompliant resources using a managed identity.

Exam trap

The trap here is that candidates assume a policy assigned with a modify effect automatically applies to existing resources, but Azure Policy's modify effect only applies to new resources unless a remediation task is explicitly created and run.

Why the other options are wrong

A

Reassigning the policy at the resource group scope does not retroactively apply the policy to existing resources; it only affects new resources in that scope. The issue is that existing VMs are noncompliant, and reassignment does not trigger remediation.

C

A resource lock prevents accidental deletion or modification of resources, but it does not apply or enforce Azure Policy assignments. It cannot bring existing noncompliant resources into compliance.

D

Moving VMs to another resource group and back does not trigger policy evaluation or remediation; policies are evaluated on resource creation or update, not on move.

87
Multi-Selecteasy

A team needs to understand Azure RBAC inheritance. Which two statements are correct? Select two.

Select 2 answers
A.A role assignment at a resource group scope applies to resources inside that group.
B.A role assignment at subscription scope applies to all resource groups and resources in that subscription.
C.A role assignment at a resource scope automatically applies to all other resources in the subscription.
D.A role assignment at management group scope applies only to the subscription where it was created.
E.A role assignment at a resource group scope is broader than a subscription scope.
AnswersA, B

RBAC permissions flow downward within the scope where the assignment is made. A resource group assignment automatically covers the resources inside that resource group, which is why groups are useful for managing several related resources together.

Why this answer

Azure RBAC inheritance follows a hierarchical scope model: a role assignment at a resource group scope applies to all resources within that resource group, as the resource group is the parent scope for its child resources. This means any user or group assigned a role at the resource group level automatically inherits those permissions for every resource (e.g., VMs, storage accounts) inside that group, without needing separate assignments.

Exam trap

The trap here is that candidates often confuse the direction of RBAC inheritance, mistakenly thinking a narrower scope (like resource group) applies to broader scopes (like subscription), or that assignments at a resource scope propagate to other resources in the same subscription, when in fact inheritance only flows downward from parent to child scopes.

Why the other options are wrong

C

Azure RBAC does not cascade from a resource to other resources in the same subscription; each resource requires its own role assignment unless inherited from a higher scope.

D

Role assignments at management group scope apply to all subscriptions within that management group, not just the subscription where it was created.

E

A role assignment at resource group scope is narrower than subscription scope because subscription scope includes all resource groups and resources within that subscription, whereas resource group scope only applies to resources within that specific group.

88
Multi-Selecthard

A Modify policy adds CostCenter=042 to resources in RG-Finance. New resources are tagged correctly, but existing virtual machines remain untagged. What three requirements must be met for the assignment to update the existing resources? Select three.

Select 3 answers
A.Create a remediation task for the policy assignment.
B.Ensure the policy assignment has a managed identity.
C.Grant that identity permission to update the target resources or tags at the assigned scope.
D.Recreate the virtual machines before the policy can evaluate them.
E.Change the effect from Modify to Audit to trigger the tag operation.
AnswersA, B, C

A Modify policy assignment only makes the effect available to the Azure Policy engine; it does not automatically update already-provisioned resources. Existing virtual machines in the finance resource group remain non-compliant until you trigger a remediation task, which asynchronously invokes the resource provider to write the costcenter=042 tag. You can run the task on demand or schedule it, and it will report the number of resources successfully remediated versus those that failed.

Why this answer

A remediation task is required to apply a Modify effect policy to existing non-compliant resources. The Modify effect only tags new resources automatically; existing resources remain untagged until a remediation task is triggered, which uses the policy's managed identity to update the resource tags.

Exam trap

The trap here is that candidates assume the Modify effect automatically updates existing resources, but it only applies to new resources; a remediation task is mandatory for existing resources, and the managed identity must have appropriate permissions (e.g., Tag Contributor) at the scope.

Why the other options are wrong

D

Azure Policy evaluates existing resources automatically; recreating VMs is unnecessary because the Modify effect with a remediation task can update tags on existing resources without redeployment.

E

The Modify effect already triggers the tag operation; changing to Audit would only evaluate compliance without applying tags, failing to update existing resources.

89
MCQmedium

You need to ensure that a user can view cost data for Azure resources but cannot create or modify those resources. Which built-in role should you assign at the required scope?

A.Owner
B.Contributor
C.Reader
D.User Access Administrator
AnswerC

Reader does not include permissions to view cost data; cost data access requires a separate built-in role such as Cost Management Reader.

Why this answer

The correct role for viewing cost data without managing resources is Cost Management Reader or Billing Reader, neither of which is listed among the options. The Reader role does not include cost data permissions.

Exam trap

Candidates often assume that the Reader role includes cost data access, but in Azure, cost data requires a separate built-in role such as Cost Management Reader.

Why the other options are wrong

A

The Owner role grants full access to all resources, including the ability to create and modify resources, which violates the requirement that the user should not be able to create or modify resources.

B

The Contributor role allows creating and modifying resources, which violates the requirement that the user cannot create or modify resources.

D

The User Access Administrator role grants permissions to manage user access to Azure resources, including the ability to assign roles, which allows creating or modifying resource permissions, not just viewing cost data.

90
Multi-Selecthard

A scheduled script runs on several Azure VMs. The VMs are rebuilt often, and the script must always use the same Azure identity across every rebuild without storing secrets on disk. Which two steps should the administrator take? Select two.

Select 2 answers
A.Create a user-assigned managed identity.
B.Assign that user-assigned identity to each VM that runs the script.
C.Use a system-assigned managed identity on one VM and clone it.
D.Store a service principal secret in the script configuration.
E.Use a shared access signature to authenticate to Azure Resource Manager.
AnswersA, B

A user-assigned managed identity is created as a standalone Azure resource in Azure AD, making it independent of any specific VM. Because it is not tied to a VM's lifecycle, it persists even after VMs are deleted or rebuilt, and the same identity can be reassigned to replacement VMs. This provides a stable, distributed identity for the scheduled script, and Azure automatically rotates its backing credentials, eliminating the need to store any secrets on the VMs.

Why this answer

A user-assigned managed identity is the correct choice because it is an Azure identity that exists independently of any VM and can be assigned to multiple VMs. When a VM is rebuilt, you simply assign the same user-assigned identity to the new VM, and the script can authenticate using the identity's client ID without storing any secrets on disk. This ensures the script always uses the same identity across rebuilds, as the identity's credentials are managed entirely by Azure and rotated automatically.

Exam trap

The trap here is that candidates often confuse system-assigned managed identities with user-assigned ones, mistakenly thinking a system-assigned identity can be reused across VM rebuilds, when in fact it is deleted when the VM is deleted and cannot be transferred.

Why the other options are wrong

C

System-assigned managed identities are tied to a specific VM instance and cannot be cloned or reused across rebuilt VMs; each new VM would get a new identity, breaking the requirement for a consistent identity.

D

Storing a service principal secret in the script configuration violates the requirement of not storing secrets on disk. Managed identities eliminate the need for secrets entirely.

E

Shared access signatures (SAS) are used for delegated access to Azure Storage resources, not for authenticating to Azure Resource Manager or providing an identity for Azure VMs. They cannot serve as a consistent identity across VM rebuilds.

91
MCQeasy

An application team needs Contributor access only for the resources in rg-app. They must not manage any other resources in the subscription. At what scope should you assign the role?

A.Management group scope
B.Subscription scope
C.Resource group scope
D.Resource scope
AnswerC

Assigning the Contributor role at the resource group scope grants the application team full management permissions exclusively over the resources contained within that specific resource group (e.g., rg-app). This scope is the correct boundary because it isolates access to only the resources that make up the application while preventing the team from modifying unrelated resource groups, subscription-wide settings, or resources in other scopes.

Why this answer

The Contributor role assigned at the resource group scope grants the application team full management access to all resources within rg-app, but no access to resources in other resource groups or at the subscription level. This meets the requirement of restricting permissions to only that specific resource group.

Exam trap

The trap here is that candidates often confuse 'resource group scope' with 'subscription scope' and assume Contributor at the subscription level is required for managing a group of resources, not realizing that resource group scope provides the exact isolation needed.

Why the other options are wrong

A

Management group scope applies permissions to all subscriptions within that group, which would grant the team Contributor access to resources beyond rg-app, violating the requirement to restrict access to only that resource group.

B

Subscription scope grants Contributor access to all resources in the subscription, not just those in rg-app, violating the requirement to restrict access to only that resource group.

D

Resource scope would grant Contributor access only to a specific resource, not to all resources in rg-app. The requirement is to manage all resources in the resource group, so resource scope is too narrow.

92
MCQmedium

A support team must be able to start, stop, and restart virtual machines in one application resource group, but they must not create or delete VMs, modify disks, or manage networking. What is the best access approach?

A.Assign Contributor at the subscription scope so the team can manage all resources.
B.Create a custom RBAC role with only the required VM power actions and assign it at the resource group scope.
C.Assign Reader at the resource group scope and use Azure Policy to permit VM restarts.
D.Apply a resource lock to the resource group so the team can only make approved changes.
AnswerB

A custom role is appropriate when the built-in roles are broader than the actual task. By granting only the VM start, stop, and restart actions needed for that resource group, the administrator keeps permissions tightly limited. Assigning the role at the resource group scope also ensures the team cannot affect resources outside that application boundary.

Why this answer

Azure RBAC allows you to create a custom role with specific actions like Microsoft.Compute/virtualMachines/start/action, Microsoft.Compute/virtualMachines/restart/action, and Microsoft.Compute/virtualMachines/deallocate/action, and assign it at the resource group scope. This grants the support team exactly the permissions needed to start, stop, and restart VMs without allowing VM creation, deletion, disk modification, or networking changes, adhering to the principle of least privilege.

Exam trap

The trap here is that candidates often confuse Azure Policy or resource locks with RBAC, thinking they can grant or restrict permissions, when in fact they are separate governance tools—Policy enforces rules, locks prevent changes, and only RBAC roles control who can perform actions.

Why the other options are wrong

A

Assigning Contributor at the subscription scope grants far too many permissions, including the ability to create, delete, and modify VMs, disks, and networking, which violates the requirement to restrict those actions.

C

Reader role does not allow any write actions, including VM start/stop/restart, and Azure Policy cannot grant permissions—it only enforces compliance. Thus, this combination cannot provide the required power management capabilities.

D

A resource lock prevents deletion or modification of resources but does not grant permissions to start, stop, or restart VMs; it only blocks changes, so the team would have no ability to perform the required actions.

93
MCQmedium

Security wants one assignment that enforces all of these controls across several subscriptions: allowed Azure regions, required tags, and disabling public network access on specific resources. Which Azure feature should you use?

A.A single Azure Policy definition with one rule for all three controls
B.An Azure Policy initiative that contains multiple related policy definitions
C.A management group lock applied to the subscriptions
D.A custom RBAC role assigned at the management group
AnswerB

An initiative lets you group multiple policies into one assignment, which is ideal for enforcing a broader security baseline.

Why this answer

An Azure Policy initiative (also called a policy set) is the correct choice because it groups multiple independent policy definitions into a single assignable unit. This allows you to enforce all three distinct controls—allowed regions, required tags, and disabling public network access—across several subscriptions in one assignment, while keeping each rule as a separate policy definition for easier management and granular effect.

Exam trap

The trap here is that candidates often think a single policy definition can contain multiple rules (like a JSON array of conditions), but Azure Policy requires each definition to have exactly one policyRule, so an initiative is the only way to bundle separate controls into one assignment.

Why the other options are wrong

A

A single Azure Policy definition can only enforce one rule (e.g., allowed regions, required tags, or disabling public network access), not all three controls simultaneously. The question requires multiple controls, which necessitates an initiative (a collection of definitions).

C

A management group lock prevents accidental deletion or modification of resources, but it cannot enforce allowed regions, required tags, or disable public network access. Locks do not apply policy controls.

D

Custom RBAC roles control permissions (who can do what), not enforcement of resource configurations like allowed regions, tags, or network settings. The question asks for enforcing controls, not granting permissions.

94
MCQmedium

Based on the exhibit, an administrator wants to prevent new Azure resources from being deployed in any region except East US and West US across the entire Corp hierarchy. What should the administrator configure?

A.Assign a built-in RBAC role that denies deployments in unsupported regions.
B.Create and assign an Azure Policy at the Corp management group using the allowed locations rule.
C.Apply a CanNotDelete lock to the subscriptions.
D.Use a resource tag named RegionApproved and require teams to set it manually.
AnswerB

Azure Policy is the correct tool for enforcing location compliance. Assigning the policy at the Corp management group ensures the restriction applies to all current and future child subscriptions, and a deny effect blocks noncompliant region deployments at creation time.

Why this answer

Azure Policy is the correct tool to enforce governance rules across management groups. The 'allowed locations' built-in policy definition restricts resource deployment to specified regions. By assigning this policy at the Corp management group, the rule applies to all child subscriptions and resources, preventing deployment in any region except East US and West US.

Exam trap

The trap here is confusing Azure Policy (which enforces rules on resource properties) with RBAC (which controls access) or resource locks (which prevent deletion), leading candidates to choose an option that addresses permissions rather than configuration compliance.

Why the other options are wrong

A

RBAC roles control access to Azure resources (who can do what), not which regions are allowed for deployment. A built-in RBAC role cannot enforce region restrictions; Azure Policy is required for such governance.

C

A CanNotDelete lock prevents deletion of resources but does not restrict deployment regions; it cannot block resource creation in non-allowed regions.

D

Resource tags are not enforced; they rely on manual compliance and do not prevent deployment in unapproved regions. Azure Policy is required to enforce allowed locations across the management group hierarchy.

95
MCQmedium

Based on the exhibit, a support lead must manage role assignments for RG-Apps so the team can grant or revoke access for others. The support lead must not be able to change resource configurations. Which role should you assign?

A.Owner at RG-Apps
B.Contributor at RG-Apps
C.User Access Administrator at RG-Apps
D.Reader at RG-Apps
AnswerC

User Access Administrator is designed specifically for managing Azure RBAC access without granting full resource configuration rights. Assigning it at the resource group scope lets the support lead create and remove role assignments for RG-Apps while avoiding unnecessary management permissions.

Why this answer

The User Access Administrator role at the RG-Apps scope allows the support lead to manage role assignments (grant or revoke access) for others without having permissions to modify resource configurations. This role is specifically designed for delegating access management while preventing changes to the resources themselves, which aligns with the requirement.

Exam trap

The trap here is that candidates often confuse the Contributor role (which can manage resources but not access) with the User Access Administrator role, or mistakenly think the Owner role is required for managing role assignments, overlooking the specific delegation capability of User Access Administrator.

Why the other options are wrong

A

The Owner role at RG-Apps includes full management access, including the ability to change resource configurations, which violates the requirement that the support lead must not be able to change resource configurations.

B

The Contributor role allows managing resources but cannot grant or revoke role assignments to others, which is the primary requirement for the support lead.

D

Reader role only allows read access to resources, not the ability to manage role assignments. The support lead needs to grant or revoke access for others, which requires role assignment permissions.

96
Multi-Selectmedium

A platform team wants to prevent engineers from creating VM sizes that are not approved, but they also need the engineers to be able to restart their own VMs. Which two statements are correct? Select two.

Select 2 answers
A.Use Azure Policy to deny creation of nonapproved VM sizes.
B.Use Azure RBAC to grant the restart action on the VMs.
C.Use Azure Policy to grant restart permission when the VM is compliant.
D.Use a resource lock to approve only specific VM sizes.
E.Use tags to enforce the approved VM size list and restart action.
AnswersA, B

Azure Policy enforces admission control at deployment time: a policy definition with a Deny effect (commonly using the "Allowed virtual machine SKUs" built-in or a custom policy) blocks any Azure Resource Manager (ARM) request that tries to create a VM with a size not present in the allowed list. Because policy evaluation happens before resource creation, even attempts from Terraform, Bicep, or the portal will be rejected, making this the precise mechanism to prevent engineers from deploying unapproved VM sizes.

Why this answer

Azure Policy can enforce organizational standards by denying the creation of non-approved VM sizes through built-in policies like 'Allowed virtual machine SKUs'. This prevents engineers from provisioning unapproved VM sizes at the time of creation, ensuring compliance without blocking other actions. Option B is correct because Azure RBAC allows granular permission assignment, such as granting the 'Microsoft.Compute/virtualMachines/restart/action' to engineers, enabling them to restart their own VMs without granting broader management rights.

Exam trap

The trap here is confusing Azure Policy (which enforces compliance on resource creation) with Azure RBAC (which controls permissions on existing resources), leading candidates to incorrectly assign policy to grant permissions or RBAC to deny creation.

Why the other options are wrong

C

Azure Policy cannot grant permissions; it only enforces compliance rules. Granting restart permission is an RBAC function, not a Policy capability.

D

Resource locks prevent deletion or modification of resources but cannot restrict VM sizes to approved types; they operate at a resource level, not on configuration properties like SKU.

E

Tags are metadata labels, not security enforcement mechanisms. They cannot enforce approved VM sizes or grant restart permissions; Azure Policy and RBAC are required for those actions.

97
MCQmedium

A policy that requires secure transfer for storage accounts has been assigned to a subscription with the DeployIfNotExists effect. Several existing storage accounts are still noncompliant and have not changed. What should you do next to update those existing resources automatically?

A.Assign a CanNotDelete lock to the storage accounts
B.Create and run a remediation task for the policy assignment
C.Move the storage accounts into a new resource group
D.Grant the administrators a higher RBAC role on the subscription
AnswerB

Azure Policy with a deployIfNotExists or modify effect can apply corrective configuration to existing resources when a remediation task is triggered. Running a remediation task evaluates current non-compliant storage accounts and automatically enables the secure transfer setting, bringing them into compliance without manual intervention. This is the direct way to fix policy noncompliance that existed before the assignment.

Why this answer

The DeployIfNotExists effect on a policy assignment automatically deploys a template to remediate noncompliant resources, but only for new or updated resources. Existing noncompliant resources require a manual remediation task to trigger the deployment of the template. Creating and running a remediation task for the policy assignment applies the required secure transfer configuration to all existing storage accounts, bringing them into compliance.

Exam trap

The trap here is that candidates assume DeployIfNotExists automatically remediates all existing resources, but it only applies to new or updated resources, requiring a separate remediation task for existing noncompliant resources.

Why the other options are wrong

A

A CanNotDelete lock prevents deletion but does not enforce secure transfer settings; it cannot remediate policy noncompliance.

C

Moving storage accounts to a new resource group does not trigger the DeployIfNotExists policy to remediate noncompliant resources; it only changes their location without applying the required policy effect.

D

Granting administrators a higher RBAC role does not trigger policy remediation; it only changes permissions. The DeployIfNotExists policy requires a remediation task to update noncompliant resources.

98
MCQhard

Based on the exhibit, which change should the administrator make so the application identity remains stable across VM redeployments without reapplying RBAC assignments?

A.Keep the system-assigned identity and reapply the same RBAC roles after each rebuild.
B.Create a user-assigned managed identity and attach it to the VM template.
C.Store a local administrator password in Key Vault and use it for Azure resource access.
D.Replace the identity with a shared access signature so the VM can authenticate to Azure services.
AnswerB

A user-assigned managed identity is an Azure AD identity that exists as a standalone Azure resource, independent of any VM's lifecycle. Because the identity object ID remains stable across VM deletion and redeployment, you can assign RBAC roles to it once and attach the same identity to the VM template, ensuring the rebuilt VM automatically inherits the same Azure permissions. This is the correct approach for a workload that must be repeatedly rebuilt without manual RBAC reconfiguration.

Why this answer

A user-assigned managed identity is decoupled from the VM lifecycle, so it persists independently of VM redeployments. By attaching the same user-assigned identity to the new VM instance, the application retains its Azure AD object ID and all existing RBAC role assignments remain valid without requiring reapplication.

Exam trap

The trap here is that candidates often confuse system-assigned and user-assigned managed identities, assuming both persist across VM redeployments, but only user-assigned identities survive VM deletion because they are separate Azure resources.

Why the other options are wrong

A

System-assigned identity is tied to the VM lifecycle; redeploying the VM creates a new identity, requiring RBAC reassignment. This does not keep the identity stable.

D

A shared access signature (SAS) is used for delegated access to specific Azure storage resources, not for VM identity. It cannot provide a stable application identity across VM redeployments and does not support RBAC assignments.

99
MCQmedium

An enterprise wants to enforce three governance controls for all subscriptions under a management group: allowed locations, required tags, and permitted VM sizes. The team wants a single place to assign and track compliance for all three controls. What should the administrator use?

A.Three separate policy assignments at each subscription
B.One policy initiative assigned at the management group
C.A custom RBAC role assigned to each subscription
D.A resource lock on each subscription
AnswerB

An Azure Policy initiative bundles multiple related policies into a single package; assigning the initiative at the management group scope applies it to every child subscription and resource group beneath it. This approach centralizes governance enforcement, ensures consistent compliance across all subscriptions, and simplifies reporting because all policies are evaluated together under one assignment.

Why this answer

A policy initiative (also known as a policy set) allows you to group multiple policy definitions (e.g., allowed locations, required tags, permitted VM sizes) into a single, reusable package. Assigning this initiative at the management group level enforces all three governance controls across every subscription under that management group, providing a single place to assign and track compliance via Azure Policy's compliance dashboard.

Exam trap

The trap here is confusing Azure Policy (which enforces rules on resource properties) with RBAC (which controls access permissions) or resource locks (which prevent deletion), leading candidates to pick a solution that addresses a different concern than governance compliance.

Why the other options are wrong

A

Three separate policy assignments at each subscription would require managing each subscription individually, violating the requirement for a single place to assign and track compliance across all subscriptions under the management group.

C

Custom RBAC roles control permissions to Azure resources, not governance policies like allowed locations, required tags, or permitted VM sizes. These controls require Azure Policy, not role-based access control.

D

Resource locks prevent accidental deletion or modification of resources but do not enforce governance controls like allowed locations, required tags, or permitted VM sizes. They cannot track compliance across multiple policies.

100
MCQeasy

You need one assignment that requires a cost-center tag and also allows only approved locations. What should you use?

A.A policy initiative
B.A role assignment
C.A resource lock
D.A management group
AnswerA

A policy initiative is a collection of one or more Azure policy definitions (such as "require a cost center tag" and "only allow approved locations") grouped as a single unit for assignment. Assigning an initiative at a management group, subscription, or resource group scope allows Azure Policy to evaluate both requirements together and remediate noncompliant resources. This directly fulfills the need for one assignment that enforces both tagging and location constraints.

Why this answer

A policy initiative is the correct choice because it allows you to group multiple Azure Policy definitions (such as 'Require a cost-center tag' and 'Allowed locations') into a single, reusable assignment. This ensures both conditions are enforced simultaneously at a scope like a subscription or resource group, meeting the requirement for a cost-center tag and location restriction.

Exam trap

The trap here is that candidates often confuse a policy initiative with a management group, thinking the management group itself enforces rules, but a management group is only a hierarchy container—you must assign a policy or initiative to it to enforce compliance.

Why the other options are wrong

B

A role assignment grants permissions to users or groups, but does not enforce resource configuration requirements like tags or location restrictions. It cannot enforce compliance policies.

C

A resource lock prevents deletion or modification of resources but cannot enforce tagging or location restrictions. The question requires both a cost-center tag and approved locations, which are policy-based controls, not lock-based.

D

A management group is a container for organizing subscriptions and applying governance, but it cannot directly enforce tags or location restrictions. Policy assignments (via initiatives) are needed to enforce such rules.

101
MCQeasy

A finance analyst needs read-only access to one storage account named stprod01. The analyst must not see other resources in the subscription. Where should you assign the Reader role?

A.At the management group scope that contains the subscription
B.At the subscription scope that contains the storage account
C.At the resource group that contains the storage account
D.At the storage account resource scope
AnswerD

Assigning Reader at the storage account scope is the narrowest option that still provides read-only access to that single resource. Azure RBAC permissions inherit downward, so a resource-level assignment affects only that storage account and nothing else in the subscription. This matches the requirement to limit visibility and access as tightly as possible.

Why this answer

Assigning the Reader role at the storage account resource scope (stprod01) grants read-only access exclusively to that specific storage account. This meets the requirement of restricting the analyst from seeing any other resources in the subscription, as role assignments at a higher scope (e.g., resource group, subscription, management group) would inherit permissions to all resources under that scope.

Exam trap

The trap here is that candidates often assume assigning the Reader role at the resource group scope is sufficient, but this would grant access to all resources in that resource group, not just the single storage account, violating the 'must not see other resources' constraint.

Why the other options are wrong

A

Assigning the Reader role at the management group scope grants read access to all resources in all subscriptions under that management group, including the storage account, but also exposes other resources, violating the requirement that the analyst must not see other resources.

B

Assigning the Reader role at the subscription scope grants read access to all resources in the subscription, including other storage accounts and resources, which violates the requirement that the analyst must not see other resources.

C

Assigning the Reader role at the resource group scope grants read access to all resources within that resource group, including other storage accounts, virtual networks, or VMs, which violates the requirement that the analyst must not see other resources.

102
MCQmedium

A scheduled script runs on several Azure virtual machines that are created and replaced over time. The script must use the same Azure identity on every VM, and the identity should continue to exist even if one VM is deleted and recreated. What should the administrator use?

A.A system-assigned managed identity on each VM.
B.A user-assigned managed identity attached to the VMs.
C.A service principal with a client secret stored in each VM.
D.A shared access signature stored in the VM registry.
AnswerB

A user-assigned managed identity is created as a separate Azure resource and can be attached to multiple VMs. Because it is not tied to the lifecycle of a single VM, the same identity remains available even if one VM is deleted and rebuilt, which fits the requirement for shared, durable authentication.

Why this answer

A user-assigned managed identity is the correct choice because it is an Azure resource that exists independently of any VM, and it can be attached to multiple VMs. When a VM is deleted and recreated, the same user-assigned managed identity can be reattached, ensuring the script uses the same identity consistently. This decouples the identity lifecycle from the VM lifecycle, meeting the requirement for persistence across VM replacements.

Exam trap

The trap here is that candidates often confuse system-assigned managed identities (which are tied to a single resource's lifecycle) with user-assigned managed identities (which are independent and reusable), leading them to incorrectly choose option A for persistence across VM deletions.

Why the other options are wrong

A

A system-assigned managed identity is tied to the lifecycle of the VM; if the VM is deleted, the identity is also deleted, so it cannot persist across VM recreations.

C

A service principal with a client secret stored in each VM requires manual secret management and rotation, and the secret would be lost if the VM is deleted, failing the requirement for a persistent identity across VM replacements.

103
MCQeasy

Three Azure virtual machines in different resource groups must all use the same Azure identity to access a storage account. The identity should keep working even if one VM is rebuilt. What should you use?

A.A system-assigned managed identity on each VM
B.A user-assigned managed identity
C.A shared VM administrator password
D.A storage account SAS token
AnswerB

A user-assigned managed identity is a standalone Azure resource that can be attached to multiple VMs. Because it is not tied to one VM’s lifecycle, it continues to exist even if a VM is rebuilt or replaced. This makes it the best choice when several compute resources need to share the same identity for Azure access. It also simplifies permission management because you grant access once to the shared identity.

Why this answer

A user-assigned managed identity is created as a standalone Azure resource and can be assigned to multiple VMs, even across resource groups. It persists independently of any VM lifecycle, so rebuilding a VM does not affect the identity's availability or its permissions to access the storage account.

Exam trap

The trap here is that candidates confuse system-assigned managed identities (which are tied to a single VM's lifecycle) with user-assigned managed identities (which are independent resources), leading them to choose option A because they think 'each VM needs its own identity' rather than a shared, persistent one.

Why the other options are wrong

A

A system-assigned managed identity is tied to the lifecycle of each VM; if a VM is rebuilt, its identity is recreated and loses the previous role assignment, so it cannot be shared across VMs.

C

A shared VM administrator password provides access to the VM itself, not to Azure resources like a storage account, and does not persist across VM rebuilds because the password would need to be reconfigured.

D

A SAS token provides time-limited, delegated access to a specific storage account or resource, but it is not tied to an Azure identity and would need to be securely distributed and rotated. If a VM is rebuilt, the SAS token would still work if stored externally, but the requirement is for all VMs to use the same Azure identity, which a SAS token does not provide.

104
MCQmedium

You need to ensure that a contractor can manage virtual machines only in the RG-Test resource group and cannot access any other resource groups in the subscription. What is the best way to achieve this?

A.Assign the Virtual Machine Contributor role at the subscription scope
B.Assign the Virtual Machine Contributor role at the RG-Test scope
C.Assign the Reader role at the RG-Test scope
D.Assign the Owner role at the RG-Test scope
AnswerB

Assigning the Virtual Machine Contributor role at the RG-Test scope is the correct choice because this built-in role includes exactly the actions needed to manage VMs (create, start, stop, restart, delete) while excluding the ability to read or write other resource types. Scoping the assignment to RG-Test limits the contractor's effective permissions to only that resource group, so they cannot affect VMs in other resource groups. This adheres to least privilege by granting only the management capabilities relevant to the contractor's job without exposing unrelated resources.

Why this answer

Assigning the Virtual Machine Contributor role at the RG-Test scope grants the contractor permissions to manage virtual machines within that specific resource group only, adhering to the principle of least privilege. This role includes actions like creating, starting, stopping, and deleting VMs, but does not allow access to other resource groups in the subscription because the role assignment is scoped to RG-Test.

Exam trap

The trap here is that candidates often confuse the Virtual Machine Contributor role with broader roles like Contributor or Owner, or incorrectly assume that a subscription-scoped assignment can be restricted by resource group, when in fact Azure RBAC permissions are cumulative and inherited from higher scopes.

Why the other options are wrong

A

Assigning the Virtual Machine Contributor role at the subscription scope grants the contractor access to all virtual machines in the subscription, including those outside RG-Test, violating the requirement to restrict access to only RG-Test.

C

The Reader role only allows read access, not the ability to manage virtual machines (e.g., create, delete, or modify VMs). The contractor needs to manage VMs, which requires a contributor-level role.

D

The Owner role grants full access to all resources in the scope, including the ability to manage access and delete resources, which exceeds the requirement to only manage virtual machines and violates the principle of least privilege.

105
Multi-Selectmedium

An external consultant must access a resource group in your tenant using the consultant's existing work account. You want to avoid creating a separate username and password pair. Which two actions should the administrator take? Select two.

Select 2 answers
A.Invite the consultant as a guest user in Microsoft Entra ID.
B.Create a new member user account with an internal password.
C.Assign the required RBAC role on the target resource group to the guest account.
D.Add the consultant to the Global Administrator role.
E.Share the subscription ID and tenant ID only.
AnswersA, C

Inviting the consultant as a guest user in Microsoft Entra ID (B2B collaboration) creates a user object that references their external identity, so they can authenticate with their existing corporate credentials and benefit from federated SSO. This approach keeps the identity lifecycle in the consultant's home tenant, avoids creating a separate password, and is the mandatory first step for granting any Azure access. Beyond authentication, however, this invitation alone does not grant any permissions.

Why this answer

Inviting the consultant as a guest user in Microsoft Entra ID (formerly Azure AD) allows the consultant to use their existing work account (external identity) without creating a new username/password. This leverages B2B collaboration, which uses the consultant's home directory for authentication, and the guest user object is created in your tenant to represent them.

Exam trap

The trap here is that candidates often confuse inviting a guest user (which uses external authentication) with creating a new user account (which requires a separate password), or they incorrectly think that sharing tenant/subscription IDs alone provides access without an identity and role assignment.

Why the other options are wrong

B

Creating a new member user account with an internal password contradicts the requirement to avoid creating a separate username and password pair. The consultant should use their existing work account via B2B collaboration.

D

Adding the consultant to the Global Administrator role grants tenant-wide administrative privileges, which is excessive and violates the principle of least privilege. The question requires only access to a specific resource group, not full tenant control.

E

Sharing only the subscription ID and tenant ID does not grant the consultant any access; they need an identity in the tenant and an RBAC role assignment to access resources.

106
MCQeasy

Based on the exhibit, a script running on an Azure VM must create resources in another subscription without using passwords or client secrets. Which command should the administrator use first?

A.az login --identity
B.az login --service-principal
C.az account set --subscription <subscriptionId>
D.Connect-AzAccount -UseDeviceAuthentication
AnswerA

This command signs in the Azure CLI by using the VM's managed identity instead of a stored username or secret. It is the correct first step when a script on an Azure VM needs to access Azure resources securely without embedded credentials.

Why this answer

The script must authenticate without passwords or client secrets, and Azure VMs can use a managed identity for this purpose. The `az login --identity` command authenticates the Azure CLI using the VM's managed identity, which is a passwordless, secretless authentication method. This allows the script to obtain tokens for accessing resources in another subscription, provided the managed identity has appropriate RBAC permissions.

Exam trap

The trap here is that candidates often confuse setting the subscription context (`az account set`) with authentication, forgetting that authentication must occur first before any subscription-level operations can be performed.

Why the other options are wrong

B

The question requires creating resources without passwords or client secrets, which is achieved via managed identity. Option B uses a service principal, which requires a password or certificate, violating the constraint.

C

The command 'az account set --subscription' only changes the active subscription context; it does not authenticate the user or VM. Since the script must authenticate without passwords or secrets, this command cannot establish the required identity.

D

The question requires a non-interactive, passwordless method for an Azure VM script. Connect-AzAccount -UseDeviceAuthentication uses device authentication, which requires user interaction and a browser, making it unsuitable for an automated script.

107
MCQeasy

Based on the exhibit, the governance team wants to assign three related policy definitions together: allowed regions, required tags, and approved VM SKUs. What should the administrator create first?

A.A policy initiative that groups the three policy definitions into one object.
B.A resource lock so the policies cannot be changed after assignment.
C.A custom RBAC role that grants permission to edit policy assignments.
D.A management group exemption so all three rules apply automatically.
AnswerA

An initiative is designed to bundle multiple policy definitions into a single reusable unit. This lets the administrator assign and report on the controls together at the management group scope. It is the correct choice when several related governance rules should be managed as one baseline.

Why this answer

A policy initiative (also known as a policy set) is the correct answer because it allows you to group multiple related policy definitions into a single assignable object. This is the intended Azure governance pattern for bundling policies like allowed regions, required tags, and approved VM SKUs, ensuring they are applied together consistently across management groups or subscriptions.

Exam trap

The trap here is that candidates often confuse a policy initiative with a resource lock or RBAC role, thinking that administrative controls are needed to enforce the grouping, when in fact the initiative itself is the native Azure construct for bundling policy definitions.

Why the other options are wrong

B

The question asks what to create first to group three policy definitions together. A resource lock prevents accidental deletion or modification of resources but does not group policies; it is unrelated to the requirement.

C

Creating a custom RBAC role that grants permission to edit policy assignments does not group policy definitions together; it only controls who can modify assignments. The question asks for grouping three policy definitions, which is achieved by a policy initiative, not by managing permissions.

D

An exemption is used to exclude specific scopes from policy enforcement, not to group policies together. The question asks for grouping three policy definitions, which requires an initiative, not an exemption.

108
MCQeasy

Based on the exhibit, an auditor needs to view all resources in RG-Finance but must not be able to make any changes. The auditor also should not have access to other resource groups. Which RBAC assignment best meets the requirement?

A.Reader at the subscription scope, because it is read-only and easy to manage.
B.Reader at RG-Finance scope, because it allows viewing without granting write permissions.
C.Contributor at RG-Finance scope, because the auditor needs to read tags and configuration.
D.Reader at the management group scope, because all finance resources are grouped there.
AnswerB

Reader at the resource group scope gives the auditor visibility into the resources in RG-Finance without permitting changes. This is the narrowest built-in role and scope combination that satisfies the requirement to view the group only and avoid access to other resource groups.

Why this answer

The Reader role at the RG-Finance scope grants read-only access to all resources within that specific resource group, preventing any modifications. This meets the auditor's requirement to view resources in RG-Finance without write permissions and without access to other resource groups, as the scope is limited to RG-Finance.

Exam trap

The trap here is that candidates often choose Reader at the subscription scope (Option A) thinking it is simpler and still read-only, but they overlook the requirement to restrict access to only one resource group, which subscription-level access violates due to inheritance.

Why the other options are wrong

A

Reader at subscription scope grants read access to all resource groups in the subscription, including those outside RG-Finance, violating the requirement that the auditor should not have access to other resource groups.

C

Contributor role grants write permissions (e.g., create, delete, modify resources), which violates the auditor's requirement to not make any changes. The auditor only needs read access.

D

Reader at the management group scope grants read access to all resource groups under that management group, including those outside RG-Finance, violating the requirement that the auditor should not have access to other resource groups.

109
Multi-Selecthard

A user had a direct Reader assignment on a virtual machine, but that assignment was removed. The user can still open the VM blade and view its properties. Which two sources could still be granting access? Select two.

Select 2 answers
A.A Reader assignment at the parent resource group, subscription, or management group scope can still be inherited by the VM.
B.Membership in an Entra security group that has Reader at an inherited scope can still provide visibility to the VM.
C.A CanNotDelete lock on the VM is granting the user permission to view it.
D.An Azure Policy assignment that audits the VM is granting read access through compliance evaluation.
E.A private endpoint connected to the VM subnet is providing inherited read permission through networking.
AnswersA, B

RBAC inheritance flows downward from management group to subscription to resource group to resource. A broader-scope Reader assignment would still allow the user to view the VM even after the direct VM-level assignment was removed. This is the most common reason access appears to persist.

Why this answer

Azure RBAC permissions are inherited from higher scopes. Even if a direct Reader assignment on the VM is removed, a Reader role assigned at the parent resource group, subscription, or management group scope will still grant the user read access to the VM through inheritance. This is a fundamental behavior of Azure RBAC, where permissions flow down the hierarchy.

Exam trap

The trap here is that candidates often confuse resource locks (like CanNotDelete) with RBAC permissions, or think that Azure Policy or networking constructs (like private endpoints) can grant access, when in fact only role assignments (direct or inherited) control access to Azure resources.

Why the other options are wrong

C

A CanNotDelete lock prevents deletion but does not grant any read permissions; RBAC roles control access, not locks.

D

Azure Policy assignments do not grant RBAC permissions; they enforce compliance rules. Auditing a VM does not provide read access to the resource.

E

A private endpoint provides network connectivity to a VM via a private IP, but it does not grant any Azure RBAC permissions. Read access is controlled by role assignments, not by networking components.

110
Multi-Selectmedium

A compliance team wants to identify all resources in a department that are missing an Environment tag, but they do not want to stop users from creating or changing resources. Which two choices should the administrator make? Select two.

Select 2 answers
A.Use an Azure Policy assignment with the Audit effect.
B.Assign the policy at the management group scope that contains the department subscriptions.
C.Use the Deny effect.
D.Grant Reader on the subscription to the compliance team.
E.Apply a ReadOnly lock to all resource groups.
AnswersA, B

The Audit effect evaluates resources for compliance without blocking the request. Each non-compliant resource (e.g., missing a required tag) appears in the policy compliance report with its status, while the deployment or update proceeds normally. This makes Audit the ideal choice for a compliance team that only needs to identify gaps and report them, not enforce controls yet.

Why this answer

The Audit effect in Azure Policy allows the compliance team to identify resources missing an Environment tag without blocking resource creation or modification. This effect logs non-compliant resources to the activity log, enabling visibility without enforcement. Option B is correct because assigning the policy at the management group scope ensures it applies to all subscriptions within that department, covering all resources under a single governance boundary.

Exam trap

The trap here is that candidates often confuse the Audit effect with the Deny effect, thinking they need to block non-compliant resources to identify them, or they mistakenly believe granting Reader access is sufficient for automated tag discovery, when in fact Azure Policy is the correct tool for compliance evaluation without enforcement.

Why the other options are wrong

C

The Deny effect prevents resource creation or modification if the tag is missing, which contradicts the requirement to not stop users from creating or changing resources.

D

Granting Reader permission to the compliance team allows them to view resources but does not identify missing tags or enforce compliance; it only provides read access, not the ability to audit or report on tag requirements.

E

A ReadOnly lock prevents any changes to resources, but the compliance team only needs to identify missing tags, not block modifications. The question explicitly states they do not want to stop users from creating or changing resources.

111
MCQmedium

Two Azure virtual machines run the same automation script and both need access to Key Vault and Storage. The script must keep working if one VM is redeployed, and the team wants the same identity to be usable by both VMs. What should the administrator use?

A.A system-assigned managed identity on each VM
B.A user-assigned managed identity attached to both VMs
C.A service principal stored in a configuration file on the VMs
D.A storage account access key stored in the script
AnswerB

A user-assigned managed identity is created as an independent Azure AD identity and can be assigned to multiple Azure resources, including both virtual machines. Because its lifecycle is decoupled from the VMs, it survives VM deletion or redeployment, and both VMs can share the same identity to authenticate to Azure Key Vault without storing credentials. This allows the automation script to use the same identity for role-based access control, making it the correct and most secure choice.

Why this answer

A user-assigned managed identity is the correct choice because it is created as a standalone Azure resource and can be assigned to multiple VMs. This ensures both VMs share the same identity for accessing Key Vault and Storage, and the identity persists independently of any single VM's lifecycle, so redeploying one VM does not break access for the other.

Exam trap

The trap here is that candidates often assume a system-assigned managed identity can be shared across VMs because it is 'managed,' but they overlook that it is inherently tied to a single resource's lifecycle and cannot be assigned to multiple resources.

Why the other options are wrong

A

A system-assigned managed identity is tied to a single VM and cannot be shared across VMs. If one VM is redeployed, its identity is lost, and the script on the other VM cannot use the same identity.

C

A service principal stored in a configuration file on the VMs does not provide automatic credential rotation and would break if the file is lost or the VM is redeployed, failing the requirement for a consistent identity across redeployments.

D

A storage account access key stored in the script is not an identity; it's a static credential that doesn't support the requirement for a single identity usable by both VMs. If one VM is redeployed, the key remains valid, but it doesn't provide a unified identity and poses security risks if exposed in scripts.

112
MCQhard

Your company uses Microsoft Entra ID. A new engineer must be able to create virtual machines in RG-Dev but must not be able to assign roles to other users. Which built-in role should you assign at the RG-Dev scope?

A.Owner
B.Virtual Machine Contributor
C.User Access Administrator
D.Reader
AnswerB

Virtual Machine Contributor is the correct built-in role because it grants the engineer full management rights over virtual machines within the resource group scope—including creating, starting, stopping, and deleting VMs—while explicitly not allowing them to manage role assignments or grant access to others. The role also does not provide data plane access, such as RDP or SSH into the VM, which aligns with the requirement of managing the VM infrastructure without broader security control.

Why this answer

The Virtual Machine Contributor role provides the exact permissions needed: it allows creating and managing virtual machines within the specified scope (RG-Dev), but explicitly does not include the ability to assign roles to other users. This role grants write access to compute resources while preserving the principle of least privilege.

Exam trap

The trap here is that candidates often confuse the Virtual Machine Contributor role with the Owner role, mistakenly thinking that any contributor-level role includes role assignment capabilities, when in fact only Owner and User Access Administrator have that permission.

Why the other options are wrong

A

The Owner role grants full access to all resources, including the ability to assign roles to other users, which violates the requirement that the engineer must not be able to assign roles.

C

The User Access Administrator role allows assigning roles to other users, which violates the requirement that the engineer must not be able to assign roles.

D

The Reader role only allows read-only access to resources; it does not permit creating virtual machines, which is a requirement in the question.

113
MCQmedium

You need to ensure that junior administrators can view all resources in the Prod-Sub subscription but cannot create, modify, or delete any resources. Which Azure RBAC role should you assign?

A.Owner
B.Contributor
C.Reader
D.Monitoring Reader
AnswerC

The Reader role is a built-in Azure RBAC role that grants read-only access to all management-plane resource information across the assigned scope, including properties, configuration, and status. It cannot create, modify, or delete resources, nor assign permissions, making it the correct least-privilege choice for junior administrators who only need to view resources. This role satisfies the requirement without introducing any write or action capabilities.

Why this answer

The Reader role is the correct choice because it grants read-only access to all resources in a subscription, including their properties and status, but does not allow any create, modify, or delete operations. This aligns perfectly with the requirement for junior administrators to view resources without making changes.

Exam trap

The trap here is that candidates often confuse the Monitoring Reader role with the Reader role, mistakenly thinking it provides full read access, but it only covers monitoring data, not all resource types.

Why the other options are wrong

A

The Owner role grants full access to all resources, including the ability to delegate access to others, which violates the requirement that junior administrators cannot create, modify, or delete resources.

B

The Contributor role allows creating, modifying, and deleting resources, which violates the requirement that junior administrators cannot perform these actions.

D

Monitoring Reader provides read-only access to monitoring data (e.g., metrics, logs) but does not grant permission to view all resources in the subscription, such as virtual machines or storage accounts.

114
MCQmedium

A company has three business units. Each business unit needs its own subscription for billing and admin delegation. Corporate security wants one policy assignment to cover all current and future subscriptions in each business unit. What structure should you implement?

A.Place all resources in one subscription and separate them only by resource group
B.Create a management group for each business unit and place that unit's subscriptions underneath it
C.Assign the policy at each resource group because policies cannot target subscriptions
D.Create one resource group per business unit inside a shared subscription
AnswerB

Management groups sit above subscriptions in the Azure hierarchy and can contain multiple subscriptions, allowing you to apply Azure Policy (including policy initiatives) and role assignments at the management-group scope, which is inherited by all child subscriptions and their resource groups. Placing each business unit's subscriptions under its own management group gives each unit a consistent governance boundary, supports grouping multiple subscriptions, and still leaves each subscription as its own billing and administrative boundary.

Why this answer

Management groups allow you to aggregate multiple subscriptions under a single hierarchy, enabling policy assignment at the management group level that applies to all current and future subscriptions within that group. This meets the requirement for per-business-unit billing isolation (via separate subscriptions) and centralized policy enforcement across all subscriptions in each unit.

Exam trap

The trap here is that candidates may think resource groups are sufficient for isolation and policy enforcement, overlooking that management groups provide subscription-level aggregation and inheritance that resource groups cannot achieve across multiple subscriptions.

Why the other options are wrong

A

This option does not meet the requirement for separate subscriptions per business unit, as it uses a single subscription. It also fails to provide a single policy assignment covering all current and future subscriptions because there is only one subscription.

D

This option fails because it does not provide separate subscriptions per business unit for billing and admin delegation, and a single subscription cannot have separate policy assignments for each business unit's resources.

115
Multi-Selecthard

A ReadOnly lock is applied to RG-App. Which two requested changes will fail because of the lock? Select two.

Select 2 answers
A.Resize a virtual machine to a larger SKU.
B.List the resources currently in the resource group.
C.Delete an unused public IP address.
D.Read the current tag values on the resource group.
E.View the VM power state in the portal.
AnswersA, C

Resizing a virtual machine to a larger SKU is a management-plane update that issues a PUT/PATCH to the Microsoft.Compute/virtualMachines resource, changing the vmSize property. The ReadOnly lock denies any change to resource configuration, so even if the machine remains online, the resize call fails with a conflict or forbidden error. This shows that the lock blocks write operations on the VM itself, not just destructive deletions.

Why this answer

A ReadOnly lock on a resource group prevents any operations that modify existing resources or create/delete resources within that group. Resizing a VM to a larger SKU requires a write operation to the VM resource (specifically, updating the hardware profile), which is blocked by the lock. Deleting an unused public IP address is also a write operation (delete), which is blocked.

Read operations, such as listing resources or viewing tags, are allowed.

Exam trap

The trap here is that candidates often confuse a ReadOnly lock with a 'read-only' permission on the resource group itself, forgetting that read operations like listing resources or viewing tags are still allowed, while any write operation (including resize or delete) is blocked.

Why the other options are wrong

B

A ReadOnly lock allows read operations but prevents modifications. Listing resources is a read operation, so it is not blocked by the lock.

D

A ReadOnly lock only prevents modifications, not read operations. Reading tag values is a read operation, so it is not blocked by the lock.

E

A ReadOnly lock prevents any modification or deletion of resources, but viewing the VM power state in the portal is a read operation and is not blocked by the lock.

116
MCQeasy

Based on the exhibit, which identity should the administrator enable to remove the secret from app settings and have the identity disappear automatically when the app is deleted?

A.User-assigned managed identity
B.Service principal with a client secret
C.System-assigned managed identity
D.Shared access signature
AnswerC

A system-assigned managed identity is tied directly to the Azure resource, so it is created with the app and removed when the app is deleted. It is the best fit when you want to eliminate stored secrets and keep the identity lifecycle aligned to one resource.

Why this answer

The system-assigned managed identity is tied directly to the lifecycle of the Azure resource (e.g., an App Service). When you enable it, Azure automatically creates a service principal in Azure AD for that resource, and you can use the identity to access Azure Key Vault without storing secrets in app settings. When the resource is deleted, the system-assigned managed identity and its corresponding service principal are automatically removed, eliminating the need for manual cleanup.

Exam trap

The trap here is that candidates often confuse user-assigned managed identities with system-assigned ones, assuming both are automatically deleted with the resource, but only the system-assigned identity is tied to the resource's lifecycle.

Why the other options are wrong

A

User-assigned managed identities are not automatically deleted when the associated app is deleted; they persist independently until explicitly removed. The question requires an identity that disappears automatically with the app, which is a property of system-assigned managed identities.

B

A service principal with a client secret is not automatically deleted when the app is deleted; it must be manually removed. It also requires storing a secret in app settings, which contradicts the requirement to remove the secret.

D

A shared access signature (SAS) is a token granting limited access to Azure Storage resources, not an identity for an app. It cannot be used to remove secrets from app settings or automatically disappear when the app is deleted.

117
Multi-Selectmedium

You are designing a governance strategy for an Azure environment that includes multiple subscriptions. You need to ensure that all resources deployed in the production subscription adhere to specific regulatory compliance requirements, such as encryption at rest and denying public network access. Which three of the following should you implement? (Choose three.)

Select 3 answers
.Create a custom Azure Policy definition that enforces encryption at rest and denies public network access.
.Assign the built-in Azure Policy initiative 'ISO 27001:2013' to the production subscription.
.Assign a custom Azure Policy definition at the management group that contains the production subscription.
.Create an Azure role-based access control (RBAC) role to enforce encryption and network restrictions.
.Configure Azure Blueprints to include the custom policy assignment and assign the blueprint to the production subscription.
.Use Azure Resource Graph to audit resources that do not meet compliance requirements.

Why this answer

Creating a custom Azure Policy definition allows you to enforce specific regulatory requirements like encryption at rest and denying public network access. Assigning this custom policy at the management group that contains the production subscription ensures the policy is inherited by the subscription and all its resources. Configuring Azure Blueprints to include the custom policy assignment and assigning the blueprint to the production subscription provides a repeatable, versioned deployment of the policy along with other artifacts, ensuring consistent governance.

Exam trap

The trap here is confusing Azure Policy (which enforces resource configuration rules) with Azure RBAC (which controls user permissions), leading candidates to incorrectly select RBAC as a method to enforce encryption and network restrictions.

118
MCQhard

The platform team wants to block deployment of virtual machines that use any size except a small approved list. Operators already have Contributor access and should keep that access for other tasks. Which Azure control should the administrator use to enforce the size restriction?

A.Assign an Azure Policy with an allowed virtual machine size rule and the Deny effect at the subscription scope.
B.Create a custom RBAC role that excludes unsupported VM sizes from the Contributor role.
C.Apply a CanNotDelete lock to the resource group that contains the virtual machines.
D.Assign Reader permissions to the operators and rely on Azure portal validation.
AnswerA

Azure Policy is designed to enforce configuration rules such as allowed regions or allowed VM sizes. The Deny effect blocks noncompliant deployments even when the user has Contributor permissions, because policy enforcement is separate from RBAC authorization.

Why this answer

Azure Policy with the 'allowed virtual machine sizes' built-in policy and the Deny effect is the correct control because it enforces a deny action at the resource creation or update level, preventing any VM deployment that does not match the approved size list. This works independently of RBAC permissions, so operators retain their Contributor role for other tasks while the policy blocks non-compliant VM sizes. The policy is assigned at the subscription scope to cover all resource groups, ensuring consistent enforcement across the environment.

Exam trap

The trap here is that candidates confuse Azure Policy (which controls resource properties) with RBAC (which controls who can perform actions), leading them to incorrectly choose a custom RBAC role when the requirement is to restrict a specific configuration, not the action itself.

Why the other options are wrong

B

RBAC roles control permissions to perform actions, not resource configurations. A custom role cannot restrict specific VM sizes because RBAC does not evaluate resource properties like size; it only grants or denies actions such as 'Microsoft.Compute/virtualMachines/write'.

C

A CanNotDelete lock prevents deletion of resources but does not restrict which VM sizes can be deployed. The question requires blocking deployment of non-approved VM sizes, which is a configuration enforcement, not a deletion prevention.

D

Reader permissions prevent operators from deploying any resources, and Azure portal validation only warns but does not block unsupported VM sizes. This does not enforce the restriction.

119
MCQhard

An enterprise has 30 Azure subscriptions. Production subscriptions need a common baseline of allowed regions, required tags, and approved SKU rules, and any new production subscription must inherit those rules automatically. Sandbox subscriptions should follow a separate, lighter baseline. Which Azure construct should the team use to organize this governance model?

A.A separate resource group for each business unit inside every subscription.
B.A management group hierarchy with separate production and sandbox branches.
C.A set of resource locks applied directly to critical resources in each subscription.
D.A single policy exemption applied at the tenant root.
AnswerB

A management group hierarchy with separate production and sandbox branches is the correct approach because management groups are Azure's native containers for organizing multiple subscriptions under one governance boundary. Assigning Azure Policy and role-based access control at the management-group level automatically inherits down to every subscription and resource group in that branch, so production can have strict policies such as deny public endpoints while sandbox is allowed more flexibility. This creates a common, maintainable structure for all 30 subscriptions without configuring each one individually.

Why this answer

Management groups allow you to build a hierarchy of Azure subscriptions and apply Azure Policy at the management group scope. By creating separate management group branches for production and sandbox, you can assign distinct policy sets (allowed regions, required tags, approved SKUs) to each branch, and any new subscription placed under the production branch will automatically inherit those baseline rules.

Exam trap

The trap here is that candidates confuse resource groups or resource locks with policy-based governance, failing to recognize that only management groups combined with Azure Policy can enforce a common baseline across multiple subscriptions and automatically apply to new subscriptions placed in the hierarchy.

Why the other options are wrong

A

Resource groups organize resources within a single subscription but cannot enforce policies or rules across multiple subscriptions or automatically apply baselines to new subscriptions.

C

Resource locks prevent accidental deletion or modification but cannot enforce a common baseline of allowed regions, required tags, or approved SKU rules across multiple subscriptions, nor can they automatically inherit rules to new subscriptions.

D

A single policy exemption at the tenant root would exempt all subscriptions from a policy, not enforce a baseline. The question requires enforcing rules on production subscriptions, not exempting them.

120
Multi-Selectmedium

A DevOps engineer must run an Azure CLI script from a Windows VM to create resources in a specific resource group in another subscription. The script must not use a client secret or password, and access should be limited to only that resource group. Which three actions should the administrator take? Select three.

Select 3 answers
A.Enable a system-assigned managed identity on the source VM so the script can authenticate without stored credentials.
B.Assign Contributor on the target resource group to the VM identity so the script can create the required resources.
C.Use az login --identity in the script before running the Azure CLI deployment commands.
D.Create a service principal and store its client secret in a file on the VM for the script to read.
E.Grant Reader on the resource group because Reader permissions are sufficient for Azure CLI resource creation.
AnswersA, B, C

A system-assigned managed identity is tied directly to the VM and removes the need to store secrets on disk. It is the simplest credential-free option when a script runs inside a single virtual machine and must access Azure resources programmatically.

Why this answer

Enabling a system-assigned managed identity on the source VM allows the Azure CLI script to authenticate to Azure without storing any client secret or password. The managed identity is automatically managed by Azure AD and tied to the VM lifecycle, eliminating the need for credential management.

Exam trap

The trap here is that candidates may confuse Reader with Contributor, thinking Reader is sufficient for CLI commands, or they may default to creating a service principal with a secret, missing the managed identity approach that avoids stored credentials.

Why the other options are wrong

D

The question explicitly prohibits using a client secret or password, and option D requires storing a client secret in a file, which violates that constraint.

E

Reader permissions allow viewing resources but not creating or modifying them, so the script would fail to create resources in the target resource group.

121
Multi-Selectmedium

A production resource group contains web and data resources. Administrators must be able to update, scale, and restart resources, but they must not delete the resource group or any resource inside it during maintenance windows. Which two actions should the administrator take? Select two.

Select 2 answers
A.Apply a CanNotDelete lock to the resource group.
B.Apply a ReadOnly lock to the resource group.
C.Apply a CanNotDelete lock only to the individual virtual machines.
D.Apply the lock at the resource group scope so it covers child resources.
E.Use tags to mark the resources as production and prevent deletion.
AnswersA, D

A CanNotDelete lock applied at the resource group scope prevents the resource group and every child resource from being deleted, while still allowing read and write operations such as changing configurations, scaling instances, and deploying updates. This is the correct choice for a production environment that needs to remain fully manageable during maintenance windows but must be safeguarded against accidental removal. The lock is inherited by all current and future resources in the group, providing comprehensive protection with a single action.

Why this answer

Applying a CanNotDelete lock to the resource group prevents the deletion of the resource group and all resources within it, while still allowing administrators to update, scale, and restart resources. This lock type blocks delete operations but permits read and update operations, which aligns with the requirement to perform maintenance actions without risking deletion. The lock is inherited by all child resources in the resource group, ensuring comprehensive protection.

Exam trap

The trap here is that candidates often confuse the CanNotDelete lock with the ReadOnly lock, mistakenly thinking a ReadOnly lock still allows updates and scaling, or they assume tags can enforce deletion prevention, when in reality tags are purely organizational and have no security or governance enforcement capabilities.

Why the other options are wrong

B

A ReadOnly lock prevents all write operations, including update, scale, and restart actions, which are explicitly required in the question.

C

Applying a CanNotDelete lock only to individual virtual machines leaves other resources in the resource group (e.g., databases, web apps) unprotected from deletion, failing to meet the requirement that administrators must not delete any resource inside the group.

E

Tags do not enforce access control or prevent deletion; they are metadata only. The question requires a mechanism to block deletion, which tags cannot provide.

122
MCQmedium

A team in RG-Apps must be able to start, stop, and deallocate virtual machines and read their properties. Built-in roles available to the team are broader than necessary. What should the administrator do?

A.Assign Virtual Machine Contributor at the subscription scope.
B.Create a custom role with only the required VM actions and assign it at RG-Apps scope.
C.Assign Reader and Virtual Machine Contributor together at the resource group scope.
D.Assign Owner at the resource group scope to avoid troubleshooting access issues.
AnswerB

A custom role can include only the required actions, such as VM start, deallocate, and read, without granting unnecessary permissions. Assigning the role at RG-Apps scope keeps the permissions limited to the target resource group and is the cleanest least-privilege design.

Why this answer

The team needs specific actions (start, stop, deallocate, read properties) that are a subset of the Virtual Machine Contributor role's permissions. Creating a custom role with only the required actions (Microsoft.Compute/virtualMachines/start/action, Microsoft.Compute/virtualMachines/deallocate/action, Microsoft.Compute/virtualMachines/read, etc.) and assigning it at the RG-Apps scope provides least-privilege access without granting broader capabilities like creating or deleting VMs.

Exam trap

The trap here is that candidates often choose Virtual Machine Contributor (Option A or C) thinking it covers start/stop/deallocate, but they overlook that it also includes broader VM management actions like create, delete, and modify, which violates the least-privilege requirement stated in the question.

Why the other options are wrong

A

Virtual Machine Contributor at subscription scope grants broader permissions than needed, including the ability to manage VMs beyond the RG-Apps resource group, violating the principle of least privilege.

C

Assigning Reader and Virtual Machine Contributor together at the resource group scope grants more permissions than needed, including the ability to create and manage VMs, which exceeds the required start, stop, deallocate, and read properties actions.

D

Assigning Owner at the resource group scope grants full control over all resources, including permissions management, which is far broader than the required start, stop, deallocate, and read properties actions.

123
MCQmedium

A platform team wants every current and future subscription under the company's Azure hierarchy to inherit Reader access for a central audit group. The team does not want to create separate assignments for each subscription. Where should the role be assigned?

A.At the management group that contains the subscriptions.
B.At one subscription and rely on inheritance to reach the others.
C.At a resource group in a single subscription.
D.At an individual resource that the audit team will inspect.
AnswerA

Management group scope is designed for governance that must apply across multiple subscriptions, including subscriptions added later under the same hierarchy. A role assignment at that level is inherited by child subscriptions and their resources, which is ideal for broad read-only audit access.

Why this answer

Assigning the Reader role at the management group level ensures that all current and future subscriptions within that management group inherit the assignment via Azure RBAC inheritance. This meets the requirement without needing separate assignments per subscription, as role assignments flow down the hierarchy from management group to subscription to resource group to resource.

Exam trap

The trap here is that candidates may think assigning the role at one subscription will propagate to others via inheritance, but Azure RBAC inheritance is strictly hierarchical and does not apply across sibling subscriptions—only downward from a management group or parent scope.

Why the other options are wrong

B

Role assignments at a single subscription do not inherit to other subscriptions. The question requires a single assignment to cover all current and future subscriptions, which is only possible at the management group level.

C

Assigning at a resource group only grants access to resources within that group, not to all subscriptions under the management group hierarchy. The requirement is for every current and future subscription to inherit Reader access, which requires assignment at a higher scope like a management group.

D

Assigning at an individual resource only grants Reader access to that specific resource, not to the entire subscription or management group hierarchy. The question requires inheritance to all current and future subscriptions, which cannot be achieved at the resource level.

124
Multi-Selecteasy

A VM-hosted application must read blobs from Azure Storage without storing any keys or passwords. Which two identity types can the VM use to authenticate to Azure Storage? Select two.

Select 2 answers
A.System-assigned managed identity, because it is tied to one VM and can request tokens without stored secrets.
B.User-assigned managed identity, because it can be reused by multiple resources without embedding credentials.
C.Storage account shared key, because it is the preferred credential when you want to avoid passwords.
D.Basic authentication with a storage account name and password, because Azure Storage supports that model directly.
E.Anonymous public access, because it lets the VM read blobs without any authentication at all.
AnswersA, B

System-assigned managed identity is an Azure AD service principal that is automatically created when the VM is provisioned and deleted when the VM is deleted. The application obtains a token by calling the Azure Instance Metadata Service (IMDS) endpoint at 169.254.169.254, so no connection strings or keys are ever stored in code or configuration. You assign RBAC, such as Storage Blob Data Reader, to that identity for the storage account, and Azure automatically rotates the underlying credentials.

Why this answer

System-assigned managed identity is correct because it is directly tied to a single VM and can request tokens from Azure AD without storing any secrets or keys. The VM uses its managed identity to authenticate to Azure Storage by obtaining an OAuth 2.0 token, which is then passed to the storage service via the Authorization header. This eliminates the need for any stored credentials, meeting the requirement of not storing keys or passwords.

Exam trap

The trap here is that candidates often confuse managed identities with shared access signatures (SAS) or shared keys, thinking that any identity-based method requires storing a secret, or they incorrectly assume that anonymous access is a valid identity type for application authentication.

Why the other options are wrong

C

The question requires the VM to authenticate without storing keys or passwords, but a storage account shared key is a secret that must be stored on the VM, violating the requirement.

D

Azure Storage does not support basic authentication with a storage account name and password; it uses shared keys or tokens. The question requires avoiding stored secrets, and basic authentication would still require embedding a password.

125
MCQhard

Your organization wants all subscriptions under the Corp-MG management group to inherit a policy that blocks deployment of resource types not on an approved list. Which Azure feature should you use?

A.Azure Policy assigned at the management group scope
B.A custom RBAC role assigned at the tenant root
C.A ReadOnly lock on each subscription
D.A budget alert for each subscription
AnswerA

Azure Policy's 'Allowed Resource Types' definition, when assigned to the Corp management group, is inherited by every subscription and applies a Deny effect to deployment requests for any resource type not on the approved list. This gives centralized enforcement that travels down the hierarchy, and with policy effects such as Deny or Audit, you can prohibit or flag non-compliant deployments before they are created. Child scopes can be excluded if needed, preserving flexibility.

Why this answer

Azure Policy assigned at the management group scope is the correct choice because it allows you to enforce governance rules across all subscriptions within a management group hierarchy. By creating a policy definition that blocks deployment of resource types not on an approved list and assigning it to the Corp-MG management group, the policy will be inherited by all child subscriptions, ensuring consistent compliance without manual configuration per subscription.

Exam trap

The trap here is confusing Azure Policy (which enforces rules on resource properties and types) with Azure RBAC (which controls user permissions), leading candidates to incorrectly choose a custom RBAC role when the question explicitly asks about blocking resource types.

Why the other options are wrong

B

Custom RBAC roles control access permissions, not resource deployment restrictions. They cannot block resource types; Azure Policy is required for that.

C

A ReadOnly lock prevents modifications to resources but does not block deployment of unapproved resource types; it only prevents deletion or modification of existing resources.

D

Budget alerts monitor spending and trigger notifications, but they cannot block resource deployments or enforce allowed resource type lists. They are a cost management tool, not a policy enforcement mechanism.

126
MCQmedium

You need to ensure that administrators cannot accidentally delete a production virtual network, but they must still be able to update subnet settings. Which Azure feature should you apply?

A.A CanNotDelete lock
B.A ReadOnly lock
C.An Azure Policy deny assignment
D.A budget alert
AnswerA

A CanNotDelete lock is the correct solution because it specifically blocks delete operations on the subnet while leaving all read and update operations untouched. Administrators can continue to modify address ranges or linked resources, but any attempt to delete the subnet fails until the lock is removed. The lock is enforced at the control plane and requires an explicit unlock action, making accidental deletion extremely unlikely.

Why this answer

A CanNotDelete lock (Azure resource lock) prevents accidental deletion of the virtual network while allowing all other operations, including updates to subnet settings. This lock type blocks DELETE requests at the Azure Resource Manager level, but permits PUT and PATCH operations, so administrators can still modify subnet configurations.

Exam trap

The trap here is that candidates often confuse Azure Policy (which enforces rules on resource properties) with resource locks (which control deletion or modification permissions), leading them to select a deny assignment instead of the simpler CanNotDelete lock.

Why the other options are wrong

B

A ReadOnly lock prevents all write operations, including updating subnet settings, which contradicts the requirement that administrators must still be able to update subnet settings.

C

An Azure Policy deny assignment prevents any updates to the resource, including subnet settings, which contradicts the requirement that administrators must be able to update subnet settings.

D

A budget alert only notifies about spending thresholds; it does not prevent deletion or allow subnet updates, so it fails to meet the requirement of preventing accidental deletion while permitting subnet configuration.

127
MCQmedium

An organization has one Azure subscription with separate resource groups for Development and Operations. A contractor must start, stop, and read the properties of virtual machines only in RG-Operations. The contractor must not have access to virtual machines in RG-Development. Where should the role assignment be created?

A.At the subscription scope
B.At the RG-Operations resource group scope
C.At the management group scope
D.At an individual virtual machine scope
AnswerB

Assigning the required role at the RG-Operations resource group scope is the narrowest level that still includes every relevant virtual machine and its supporting resources (like network interfaces and disks) as a single logical unit. Since RBAC assignments are inherited by all resources within the scope, this grants the contractor exactly the access needed for that group, without leaking permissions to other resource groups in the subscription. This adheres to the principle of least privilege because the assignment is limited to the organizational boundary where the contractor actually works.

Why this answer

Role assignments in Azure are inherited from higher scopes (management group, subscription, resource group) down to lower scopes. To grant the contractor the Virtual Machine Contributor role (or a custom role with start/stop/read permissions) only on VMs in RG-Operations and explicitly deny access to RG-Development, the assignment must be scoped to the RG-Operations resource group. Assigning at a higher scope (subscription or management group) would grant access to all resource groups, including RG-Development, violating the requirement.

Exam trap

The trap here is that candidates often assume assigning a role at the subscription scope is simpler and still allows them to control access via resource group membership, but they forget that role assignments at higher scopes are inherited by all child scopes, granting unintended access to resources in other resource groups like RG-Development.

Why the other options are wrong

A

Assigning the role at the subscription scope would grant the contractor permissions to all resource groups, including RG-Development, violating the requirement to restrict access to RG-Operations only.

D

Assigning the role at an individual virtual machine scope would only grant access to that specific VM, not to all VMs in RG-Operations as required. The contractor needs to start, stop, and read properties of all VMs in the resource group, which requires a role assignment at the resource group scope.

128
MCQmedium

Based on the exhibit, what should you configure so the analysts can manage group membership without granting Azure resource permissions?

A.Assign the service desk analysts the User Administrator role in Microsoft Entra ID.
B.Add the service desk analysts as owners of the App-Support group.
C.Create separate local administrator accounts for each analyst.
D.Assign Contributor on the subscription to the service desk analysts.
AnswerB

Adding the analysts as owners of the App-Support group grants them the least-privilege delegation to manage that group's membership in Microsoft Entra ID. Owners can add or remove members, but they receive no Azure RBAC permissions to the resources the group might access, so this satisfies the requirement without exposing broader administrative scope.

Why this answer

Adding the service desk analysts as owners of the App-Support group grants them the ability to manage group membership directly within Microsoft Entra ID (formerly Azure AD) without assigning any Azure RBAC permissions on resources. Group owners can add or remove members from the group, but they do not inherit any permissions to manage Azure resources like VMs or storage accounts.

Exam trap

The trap here is that candidates often confuse Microsoft Entra ID administrative roles (like User Administrator) with the more granular group ownership delegation, assuming that managing group membership requires a broader directory role rather than simply being added as an owner of the specific group.

Why the other options are wrong

A

The User Administrator role grants broad permissions to manage all users and groups in Microsoft Entra ID, including resetting passwords and managing roles, which exceeds the requirement to only manage group membership without granting Azure resource permissions.

C

Creating separate local administrator accounts for each analyst grants local machine administrative privileges, not the ability to manage group membership in Microsoft Entra ID, and does not address the requirement of managing Azure AD groups without granting Azure resource permissions.

D

Assigning Contributor on the subscription grants full management access to all resources, including the ability to create, modify, and delete Azure resources, which goes beyond managing group membership and would grant Azure resource permissions.

129
MCQeasy

Based on the exhibit, help desk staff must restart virtual machines only in RG-App. What is the narrowest scope where you should assign the role?

A.Assign the role at the subscription scope for Sub-IT-01.
B.Assign the role at the management group scope above the subscription.
C.Assign the role at the RG-App resource group scope.
D.Assign the role at the individual VM scope only.
AnswerC

The RG-App resource group scope is the narrowest scope that still contains both VMs that the help desk staff must restart, while excluding the RG-Shared resource group. Assigning a role at this scope inherits permissions to all VMs within the resource group, so both target VMs receive the Virtual Machine Contributor (or similar) restart permission in a single assignment. This honors least privilege because no resources outside RG-App are affected. It is the most appropriate and efficient scope for this requirement.

Why this answer

The narrowest scope that grants the necessary permissions to restart VMs only in RG-App is the resource group scope. Assigning the Virtual Machine Contributor role at the RG-App resource group level ensures that help desk staff can restart VMs within that specific resource group without having permissions to any other resources in the subscription or management group. This follows the principle of least privilege, limiting access to only what is required.

Exam trap

The trap here is that candidates often choose the subscription scope (Option A) thinking it is simpler, but they overlook the requirement to restrict actions to only one resource group, violating the principle of least privilege.

Why the other options are wrong

A

The question requires the narrowest scope that covers only RG-App. Assigning at the subscription scope (Sub-IT-01) would grant permissions to all resource groups within that subscription, not just RG-App, violating the 'narrowest scope' requirement.

B

The management group scope is broader than the subscription, so assigning the role there would grant permissions to all subscriptions under that management group, not just Sub-IT-01 and specifically RG-App. The question requires the narrowest scope that covers only RG-App, which is the resource group scope.

D

The question requires that help desk staff restart VMs only in RG-App, but assigning the role at the individual VM scope would restrict them to only that specific VM, not all VMs in the resource group. The narrowest scope that covers all VMs in RG-App is the resource group scope.

130
MCQhard

Your organization requires all storage accounts to allow access only from selected networks. You need a governance solution that automatically corrects noncompliant new storage accounts when possible instead of only reporting them. What policy effect should you choose?

A.Audit
B.Disabled
C.DeployIfNotExists
D.Append
AnswerC

DeployIfNotExists is the correct effect because it actively deploys a required configuration—such as a network rule or Service Endpoint—when the policy engine detects that a storage account is noncompliant. This effect supports automatic remediation by triggering a deployment task that brings the resource into compliance without manual intervention, making it the only listed effect that both identifies and fixes the misconfiguration.

Why this answer

The DeployIfNotExists policy effect is correct because it can automatically remediate noncompliant storage accounts by deploying a network rules configuration that restricts access to selected networks. Unlike Audit, which only reports compliance status, DeployIfNotExists actively modifies the resource to meet the policy requirement when possible, aligning with the need for automatic correction.

Exam trap

The trap here is that candidates often choose Append thinking it can modify network rules, but Append only adds properties to the resource (like tags) and cannot change existing network access configurations, whereas DeployIfNotExists can deploy a full remediation template.

Why the other options are wrong

A

Audit only reports noncompliant resources without taking any automatic remediation action, but the requirement is to automatically correct noncompliant storage accounts.

B

Disabled policy effect means the policy is not evaluated, so it cannot automatically correct noncompliant storage accounts. The question requires automatic correction, not ignoring the policy.

D

Append adds configuration to existing resources but cannot deploy new resources like a storage account with network rules; it only modifies existing properties, so it cannot automatically correct noncompliant new storage accounts by deploying the required network rules.

131
MCQmedium

You need to ensure that a finance analyst can view all resources in the Finance-Sub subscription and also view spending details, but cannot create, modify, or delete any resources. Which built-in Azure RBAC role should you assign?

A.Owner
B.Contributor
C.Reader
D.Virtual Machine Contributor
AnswerC

The Reader role is a built-in Azure RBAC role that grants read-only access to all resources and resource groups, allowing the analyst to view everything they are assigned to without the ability to make any changes. It includes permissions like listing secrets but cannot read secret values for certain services like Key Vault (in older models). This role is ideal for auditing and visibility purposes, ensuring the finance analyst can monitor resources but not alter configurations.

Why this answer

The Reader role is the correct choice because it provides read-only access to all resources in a subscription, including the ability to view resource properties and deployment history, but it does not allow any create, modify, or delete operations. Additionally, the Reader role includes the 'Microsoft.CostManagement/views/read' permission, which enables viewing spending details (cost data) in the Azure portal. This aligns exactly with the requirement to view resources and spending without making changes.

Exam trap

The trap here is that candidates often confuse the Reader role with the Contributor role, assuming Contributor is needed for viewing spending details, but Contributor grants write permissions that violate the 'no create/modify/delete' constraint, while Reader alone provides the required read-only access including cost data.

Why the other options are wrong

A

The Owner role grants full access to all resources, including the ability to create, modify, and delete resources, which violates the requirement that the analyst cannot create, modify, or delete any resources.

B

The Contributor role allows creating, modifying, and deleting resources, which violates the requirement that the analyst cannot perform these actions.

D

Virtual Machine Contributor allows managing virtual machines but does not grant read access to all resources in the subscription, nor does it allow viewing spending details. It also permits creating, modifying, and deleting VMs, which violates the requirement to prevent resource changes.

132
Multi-Selectmedium

Finance, HR, and Engineering each use separate subscriptions. The compliance team wants a simple hierarchy that lets them apply governance to groups of subscriptions and produce resource ownership reports by department and environment. Which two features should the administrator use? Select two.

Select 2 answers
A.Management groups to organize the subscriptions into a hierarchy.
B.Tags on resources to record department and environment values.
C.Resource locks to group subscriptions by business unit.
D.Availability sets to group applications by department.
E.Private endpoints to separate Finance from HR.
AnswersA, B

Management groups are designed to organize subscriptions above the subscription level. They provide the hierarchy needed to apply governance consistently across sets of subscriptions.

Why this answer

Management groups (A) are correct because they allow you to organize multiple subscriptions into a hierarchical structure for applying governance policies and role-based access control at scale. This directly supports the compliance team's need to apply governance to groups of subscriptions and produce resource ownership reports by department and environment.

Exam trap

The trap here is that candidates often confuse resource locks with management groups for organizational control, or think availability sets or private endpoints can serve as grouping mechanisms for governance, when they are designed for entirely different purposes (high availability and network security, respectively).

Why the other options are wrong

C

Resource locks prevent accidental deletion or modification of resources but do not group subscriptions or support hierarchical governance; they operate at the resource or resource group level, not across subscriptions.

D

Availability sets are used to ensure high availability of virtual machines by distributing them across fault domains, not for grouping applications by department or for governance and reporting purposes.

E

Private endpoints are used to securely connect to Azure services over a private IP address, not to separate subscriptions or create governance hierarchies. They do not help organize subscriptions or produce resource ownership reports.

133
MCQmedium

A compliance report must show which department and environment owns each Azure resource, even when the resources are spread across many resource groups and subscriptions. Which feature should the administrator use?

A.Resource group names only.
B.Management groups.
C.Resource tags.
D.Resource locks.
AnswerC

Tags are the correct feature because they attach metadata like department and environment directly to resources. That metadata can then be queried, filtered, and reported across multiple resource groups and subscriptions. Tags are a common Azure governance tool when business ownership must be tracked independently of the resource hierarchy.

Why this answer

Resource tags are metadata key-value pairs that can be attached to Azure resources, resource groups, and subscriptions. They allow administrators to logically organize resources by department, environment, cost center, or any custom category, and this metadata is included in compliance reports. Unlike resource group names or management groups, tags are flexible and can be applied across multiple resource groups and subscriptions, making them the correct choice for this requirement.

Exam trap

The trap here is that candidates confuse management groups (which organize subscriptions for policy and RBAC) with resource tags (which provide per-resource metadata), leading them to select management groups even though they cannot express department or environment ownership at the individual resource level.

Why the other options are wrong

A

Resource group names alone cannot encode ownership metadata like department and environment across multiple subscriptions; they are just naming conventions without enforced queryability or reporting capability.

B

Management groups organize subscriptions for policy and access management but do not provide metadata about department or environment ownership for individual resources.

D

Resource locks prevent accidental deletion or modification of resources but do not provide metadata about ownership or environment. They cannot be used to report which department or environment owns a resource.

134
MCQhard

Your company wants every subscription under the Corp-MG management group to block the creation of resource groups unless the deployment includes the tags CostCenter and Environment. You need a centralized solution that is inherited by child subscriptions. What should you configure?

A.An Azure Policy assignment at the management group scope
B.A custom RBAC role at the tenant root
C.A CanNotDelete lock on each subscription
D.A subscription budget alert
AnswerA

Management group policy assignments are inherited and can enforce required tags centrally.

Why this answer

Azure Policy at the management group scope is the correct centralized solution because it enforces a policy (e.g., requiring tags) that is inherited by all child subscriptions and resource groups. This ensures that any deployment without the required tags is denied, meeting the requirement for a governance rule that applies across the entire Corp-MG hierarchy.

Exam trap

The trap here is confusing Azure Policy (which enforces rules on resource properties) with RBAC (which controls access) or locks (which prevent deletion), leading candidates to choose a permission-based or operational control instead of a governance policy.

Why the other options are wrong

B

A custom RBAC role at the tenant root controls permissions (who can do what), not resource creation rules. It cannot enforce tag requirements on resource group creation.

C

A CanNotDelete lock prevents deletion or modification of resources but does not enforce tagging requirements on new resource groups. It cannot block creation of resource groups based on missing tags.

D

A subscription budget alert only notifies when spending exceeds a threshold; it does not enforce tagging requirements or block resource group creation.

135
MCQmedium

A platform team must enforce three governance rules across every subscription in a management group: allowed Azure regions, required Environment tags, and approved VM sizes. They want one assignment that groups the rules together and gives a single compliance view. What should they use?

A.A single RBAC role assignment at the management group.
B.A management lock on each subscription.
C.An Azure Policy initiative assigned at the management group.
D.A private endpoint for Azure Resource Manager.
AnswerC

An initiative is the right tool when several related policies must be managed as one governance package. It lets the team assign the region, tagging, and VM size rules together, inherit them across all subscriptions under the management group, and review compliance in one place. This is simpler to operate than assigning each policy separately to each subscription.

Why this answer

An Azure Policy initiative (also known as a policy set) allows you to group multiple individual policy definitions—such as allowed regions, required tags, and approved VM sizes—into a single assignment. When assigned at the management group scope, the initiative enforces all three rules across every subscription within that group and provides a unified compliance view in the Azure Policy dashboard, meeting the team's requirement for consolidated governance.

Exam trap

The trap here is confusing Azure Policy (which enforces rules on resource configurations) with RBAC (which controls user permissions) or management locks (which prevent deletion/modification), leading candidates to select a control that addresses a different aspect of governance.

Why the other options are wrong

A

RBAC role assignments control permissions (who can do what), not governance rules like allowed regions or tags. They cannot enforce resource configurations or provide a compliance view for policies.

B

A management lock prevents deletion or modification of resources but cannot enforce governance rules like allowed regions, tags, or VM sizes. It does not provide a compliance view or group multiple policies together.

D

Private endpoints for Azure Resource Manager restrict network access to Azure Resource Manager endpoints, not enforce governance rules like allowed regions, tags, or VM sizes.

136
Multi-Selecthard

A contractor needs Contributor on only VM1 and VM2 in rg-prod. Other resources in rg-prod must remain untouched, and the contractor must not gain access to any other resource groups or subscriptions. Which two role-assignment scopes meet the requirement? Select two.

Select 2 answers
A.Assign the role at the VM1 resource scope.
B.Assign the role at the VM2 resource scope.
C.Assign the role at the rg-prod resource group scope.
D.Assign the role at the subscription scope.
E.Assign the role at the management group scope.
AnswersA, B

A resource-level assignment limits permissions to VM1 and does not extend to unrelated resources.

Why this answer

Assigning the Contributor role at the VM1 resource scope grants the contractor permissions exclusively to that virtual machine, leaving all other resources in rg-prod and other scopes untouched. This meets the requirement of limiting access to only VM1 and VM2 within rg-prod.

Exam trap

The trap here is that candidates often default to assigning roles at the resource group scope for simplicity, forgetting that this grants access to all resources in that group, not just the specified VMs.

Why the other options are wrong

C

Assigning Contributor at the rg-prod resource group scope would grant the contractor access to all resources in that group, including those that must remain untouched, violating the requirement to limit access to only VM1 and VM2.

D

Assigning Contributor at the subscription scope grants the contractor access to all resources in the subscription, including other resource groups and resources in rg-prod beyond VM1 and VM2, violating the requirement to restrict access to only VM1 and VM2.

137
MCQhard

An Azure subscription contains several resource groups. You need to ensure that users can create virtual machines only in regions approved by the security team. Existing noncompliant VMs can remain unchanged. What should you do?

A.Apply a ReadOnly lock to each resource group.
B.Assign a policy that denies resources in disallowed locations.
C.Create an action group in Azure Monitor.
D.Move all existing VMs to approved regions.
AnswerB

Azure Policy's built-in 'Allowed Locations' definition, applied at the subscription or resource group scope with a deny effect, intercepts deployment requests and rejects any resource whose 'location' property is not in the approved region list. Because enforcement happens during evaluation of new requests, existing VMs already deployed in noncompliant regions remain untouched and continue functioning without requiring migration, making this an elegant, targeted governance mechanism.

Why this answer

Azure Policy can enforce organizational standards by evaluating resources for compliance. The built-in 'Not allowed locations' policy denies the creation of resources in specified regions, ensuring users can only deploy VMs in approved regions. Since the requirement is to allow existing noncompliant VMs to remain unchanged, a deny effect policy (without a 'DeployIfNotExists' or 'Modify' effect) will only affect new deployments, leaving existing resources untouched.

Exam trap

The trap here is that candidates may confuse Azure Policy with Azure RBAC or locks, thinking that restricting permissions or locking resources will control where resources can be created, but only Azure Policy can enforce location-based restrictions at deployment time.

Why the other options are wrong

A

A ReadOnly lock prevents all modifications, including creating new VMs, but does not restrict creation to approved regions; it blocks all VM creation regardless of location.

C

An action group in Azure Monitor is used for sending notifications or executing automated actions based on alerts, not for restricting VM creation to approved regions.

D

Moving all existing VMs to approved regions does not prevent users from creating new VMs in disallowed regions, and the question explicitly states that existing noncompliant VMs can remain unchanged.

138
MCQmedium

A support engineer must start, stop, and restart only one virtual machine named vm-app01. The engineer should not gain permissions on any other virtual machine in the subscription. What is the best scope for the role assignment?

A.The entire subscription that contains vm-app01.
B.The resource group that contains vm-app01.
C.The vm-app01 virtual machine resource itself.
D.The management group that contains the subscription.
AnswerC

Assigning a role at the virtual machine resource scope restricts permissions to exactly the vm-app01 resource. The support engineer can only invoke Microsoft.Compute/virtualMachines/start/action, .../deallocate/action, and .../restart/action on that single VM, and cannot affect other VMs or resource group components. This follows the principle of least privilege, granting the minimal access necessary for the specific operational task.

Why this answer

Azure RBAC allows role assignments to be scoped to individual resources, such as a specific virtual machine. By assigning a role like 'Virtual Machine Contributor' at the vm-app01 resource scope, the support engineer will have permissions to start, stop, and restart only that VM, and no other resources in the subscription or resource group.

Exam trap

The trap here is that candidates often default to the resource group scope because it is the most common level for role assignments, but they overlook that the requirement explicitly restricts access to a single VM, which demands the resource-level scope.

Why the other options are wrong

A

Assigning the role at the subscription scope grants permissions to all virtual machines in the subscription, not just vm-app01, violating the requirement to restrict access to only that VM.

B

Assigning the role at the resource group scope would grant permissions to all virtual machines within that resource group, not just vm-app01, violating the requirement to limit permissions to a single VM.

139
Multi-Selecteasy

An operations team needs one Azure identity that can be attached to several VMs and kept even if a VM is deleted. Which two statements about a user-assigned managed identity are correct? Select two.

Select 2 answers
A.It is created as a separate Azure resource.
B.It can be assigned to more than one VM.
C.It is automatically deleted when the first VM is deleted.
D.It requires a storage account access key to work.
E.It can only be attached to one VM at a time.
AnswersA, B

A user-assigned managed identity is provisioned as a standalone Azure resource of type Microsoft.ManagedIdentity/userAssignedIdentities, living in its own resource group with its own object ID. It is created independently of any virtual machine and can be managed, tagged, and role-assigned on its own, before or after a VM uses it. This is what makes it a resource rather than a property of a VM.

Why this answer

A user-assigned managed identity is created as a separate Azure resource in its own right, independent of any VM. This means it has its own lifecycle and can be managed (created, deleted, assigned) independently from the VMs it is associated with.

Exam trap

The trap here is that candidates often confuse user-assigned managed identities with system-assigned managed identities, which are tied to the VM lifecycle and are automatically deleted when the VM is deleted, leading them to incorrectly select option C.

Why the other options are wrong

C

User-assigned managed identities are independent Azure resources; they persist independently of any VM lifecycle and are not automatically deleted when a VM is deleted.

D

User-assigned managed identities do not require a storage account access key; they authenticate via Azure AD using a service principal, not storage keys.

E

User-assigned managed identities are designed to be independent Azure resources that can be assigned to multiple VMs simultaneously; they are not limited to a single VM.

140
MCQhard

A build server in an on-premises datacenter must deploy ARM templates to Azure. The automation must not use a human account password, and Microsoft Entra conditional access for device sign-in is not available because the server is outside Azure. The security team allows a non-human credential but wants the strongest practical option for this scenario. What should the administrator configure?

A.A system-assigned managed identity on the build server.
B.A service principal authenticated with a certificate.
C.A user-assigned managed identity shared with the build server.
D.A resource lock on the target resource group to permit template deployment.
AnswerB

A certificate-based service principal is the correct choice for on-premises automation because it provides non-interactive authentication to Azure AD without storing a password in scripts or configuration files. The certificate is installed on the build server, and the service principal is assigned RBAC permissions (e.g., Contributor) on the target resource group, enabling ARM template deployments. This method is secure, supports automatic rotation, and is specifically designed for scenarios like a build server running outside Azure.

Why this answer

A service principal authenticated with a certificate provides a non-human credential that does not require a human password and is the strongest practical option for an on-premises build server that cannot use managed identities (which are Azure-resource-scoped) or device-based conditional access. Certificate-based authentication for service principals uses asymmetric cryptography (X.509 certificates) with a private key stored securely on the build server, offering higher security than a client secret and meeting the requirement to avoid human account passwords.

Exam trap

The trap here is that candidates often confuse managed identities (which are Azure-only) with service principals, assuming managed identities can be used for on-premises resources, but managed identities require an Azure resource context and cannot be assigned to non-Azure machines.

Why the other options are wrong

A

Managed identities are Azure-resident and cannot be assigned to an on-premises build server; they only work for Azure resources like VMs or App Services.

C

Managed identities cannot be assigned to on-premises servers; they are only available for Azure resources like VMs or App Services. The build server is outside Azure, so a managed identity cannot be used.

D

Resource locks prevent accidental deletion or modification of resources but do not provide any authentication or authorization mechanism for deploying ARM templates. They cannot replace a credential for automation.

141
MCQeasy

A web app running on an Azure VM must read files from Azure Blob Storage without storing any passwords, secrets, or access keys on the VM. The identity should be tied to that VM and removed automatically if the VM is deleted. What should you enable?

A.A system-assigned managed identity
B.A shared storage account key in the application settings
C.A user account with a local password on the VM
D.A service endpoint on the VM subnet
AnswerA

A system-assigned managed identity is created for one Azure resource, such as a VM, and its lifecycle is tied to that resource. The app can use Azure AD-based authentication to access Blob Storage without storing secrets on the VM. If the VM is deleted, the identity is also removed, which matches the requirement exactly. This is the preferred approach for credential-free access when only one VM needs the identity.

Why this answer

A system-assigned managed identity is the correct choice because it creates an identity in Azure AD that is tied directly to the lifecycle of the VM. When the VM is deleted, the identity is automatically removed. The VM can use this identity to authenticate to Azure Blob Storage via Azure AD without storing any credentials on the VM, using the Azure Instance Metadata Service (IMDS) to obtain tokens.

Exam trap

The trap here is that candidates often confuse service endpoints (which only provide network-level access control) with managed identities (which provide identity-based authentication), leading them to select option D thinking it enables secure access without credentials.

Why the other options are wrong

B

A shared storage account key is a static secret that must be stored on the VM, violating the requirement to avoid storing passwords or keys. It also persists beyond the VM's lifecycle, so it is not automatically removed when the VM is deleted.

C

A user account with a local password on the VM would require storing credentials on the VM, which violates the requirement to avoid storing passwords or secrets. Additionally, it is not automatically removed when the VM is deleted.

D

A service endpoint on the VM subnet secures traffic to Azure Storage but does not provide identity-based access; it still requires a shared key or SAS token for authentication, which violates the requirement to avoid storing secrets on the VM.

142
MCQeasy

A contractor team changes every few weeks. The administrator wants Azure access to stay the same when individual contractors leave or join, without editing role assignments for each person. What should be assigned the Azure role?

A.Each contractor user account individually
B.A Microsoft Entra ID security group
C.A device group
D.An Azure subscription
AnswerB

Assigning RBAC roles to a Microsoft Entra ID security group is a best practice because the group acts as a stable security principal. When contractors join or leave the team, you only update group membership—via manual, dynamic, or group-based assignment—while the role assignments remain unchanged. This decouples identity lifecycle from permission management, ensuring access stays accurate without editing role assignments each time.

Why this answer

Assigning the Azure role to a Microsoft Entra ID security group allows the administrator to manage access by adding or removing contractors from the group, rather than editing individual role assignments. This approach ensures that role assignments remain unchanged when contractors leave or join, as the group itself retains the role. It leverages Azure RBAC's support for group-based access control, which is the recommended method for dynamic teams.

Exam trap

The trap here is that candidates may think assigning roles to individual user accounts is simpler, but the question specifically requires a solution that avoids editing role assignments when contractors change, making group-based assignment the only correct answer.

Why the other options are wrong

A

Assigning roles to individual contractor accounts requires manual updates each time a contractor leaves or joins, which contradicts the requirement to maintain consistent access without editing role assignments.

C

Device groups are used for managing device compliance and configuration policies, not for assigning Azure role-based access control (RBAC) permissions to users. They cannot grant Azure resource access to contractors.

D

Assigning an Azure role to an Azure subscription would grant access to all resources in that subscription, not just the contractor team, and does not address the need to manage access for a dynamic group of contractors without editing role assignments.

143
MCQmedium

You need to allow a support engineer to restart virtual machines in the RG-App resource group, but the engineer must not be able to create, delete, or resize the virtual machines. What should you do?

A.Assign the Virtual Machine Contributor role at the RG-App scope
B.Create a custom role that includes restart permissions and assign it at the RG-App scope
C.Assign the Contributor role at the subscription scope
D.Assign the Reader role at the RG-App scope
AnswerB

A custom role is necessary because no built-in role provides only the Microsoft.Compute/virtualMachines/restart/action. Defining a role with just that action and assigning it at the RG-App scope limits the support engineer to restarting VMs in that specific resource group, following the principle of least privilege.

Why this answer

The Virtual Machine Contributor role includes permissions to restart VMs but also allows creating, deleting, and resizing VMs, which violates the requirement. A custom role with only the Microsoft.Compute/virtualMachines/restart/action permission assigned at the RG-App scope grants the exact restart capability without broader management rights.

Exam trap

The trap here is that candidates often assume the Virtual Machine Contributor role is restrictive enough for restart-only tasks, but it actually includes full VM management permissions, making a custom role necessary for precise access control.

Why the other options are wrong

A

The Virtual Machine Contributor role includes permissions to create, delete, and resize VMs, which violates the requirement to restrict those actions.

C

The Contributor role at the subscription scope grants full management access to all resources in the subscription, including the ability to create, delete, and resize virtual machines, which violates the requirement to restrict the engineer from performing those actions.

D

The Reader role only allows read-only access to resources, so it does not include permissions to restart virtual machines, which is a write operation.

144
MCQmedium

Based on the exhibit, which action should the administrator take so Contractor01 can manage the team membership without receiving Azure resource permissions?

A.Add Contractor01 as an owner of the AppOps-Admins group.
B.Add Contractor01 as a member of the AppOps-Admins group.
C.Assign Contractor01 the User Administrator role at the tenant scope.
D.Assign Contractor01 Contributor on the subscription.
AnswerA

Adding Contractor01 as an owner of the AppOps-Admins group grants them the Azure AD delegated permission to manage membership and ownership-related settings for that specific group. This allows the contractor to add or remove members without receiving any Azure RBAC rights to access subscription or resource group resources. It is the least-privilege solution that precisely matches the stated need.

Why this answer

Adding Contractor01 as an owner of the AppOps-Admins group grants them the ability to manage group membership (add/remove members) without inheriting any Azure resource permissions. Group ownership is an Azure AD role that controls group administration only, not access to Azure resources like VMs or storage. This meets the requirement of managing team membership without resource permissions.

Exam trap

The trap here is that candidates often confuse Azure AD group ownership with Azure RBAC roles, assuming that managing a group requires a high-privilege directory role like User Administrator, or they mistakenly think adding the user as a member of the group will suffice without understanding that membership inherits the group's resource permissions.

Why the other options are wrong

B

Adding Contractor01 as a member of AppOps-Admins grants them only group membership, not the ability to manage team membership. To manage membership, they need owner permissions on the group, not member permissions.

C

The User Administrator role at tenant scope grants permissions to manage user accounts and groups across the entire Azure AD tenant, which includes Azure resource permissions indirectly through group management. The question requires managing team membership without receiving Azure resource permissions, and this role provides broader administrative access than needed.

D

The Contributor role grants full management access to Azure resources, including permissions to create, modify, and delete resources, which contradicts the requirement to avoid giving Contractor01 Azure resource permissions.

145
MCQhard

A system-assigned managed identity is attached to an Azure VM to call Key Vault. The VM is frequently reimaged and sometimes redeployed to a different name during scale events, but the application must keep the same identity and secretless access. What should the administrator use instead?

A.A system-assigned managed identity on each newly deployed VM.
B.A user-assigned managed identity associated with the workload.
C.A shared storage account key placed in the VM custom script.
D.A policy exemption for the Key Vault access policy.
AnswerB

A user-assigned managed identity is a standalone Azure resource that exists independently of any single VM. It can be assigned to multiple VMs or scale sets and remains valid across reimages, redeployments, or replacement of underlying compute. This identity allows the workload to authenticate to Azure Active Directory and securely retrieve secrets from Key Vault without embedding credentials, making it the correct choice for a workload that needs a stable identity across infrastructure changes.

Why this answer

A user-assigned managed identity is decoupled from the VM lifecycle, so it persists independently when VMs are reimaged or redeployed with different names. This allows the application to retain the same identity and secretless access to Key Vault without requiring manual reconfiguration or credential rotation.

Exam trap

The trap here is that candidates assume system-assigned identities are reusable across VM redeployments, but they are instance-scoped and destroyed with the VM, whereas user-assigned identities are persistent and can be reassigned to any resource.

Why the other options are wrong

A

A system-assigned managed identity is tied to the lifecycle of a specific VM instance. When the VM is reimaged or redeployed with a different name, the identity is lost, and the new VM would get a new identity, breaking the application's access.

C

A shared storage account key placed in a custom script exposes a static secret that must be managed and rotated, violating the requirement for secretless access and not preserving identity across VM reimages or redeployments.

D

A policy exemption does not provide authentication; it only bypasses Azure Policy effects. The VM still needs a managed identity or other credential to authenticate to Key Vault, and a policy exemption does not grant access to secrets.

146
MCQmedium

A web API runs on a single Azure VM and must access Azure Key Vault without storing any credentials on the VM. The identity should be tied to that VM and removed when the VM is deleted. What should you enable?

A.A user-assigned managed identity
B.A system-assigned managed identity
C.A storage account shared access signature
D.A local administrator account with a strong password
AnswerB

A system-assigned managed identity is the correct choice because Azure automatically creates an Azure AD-backed identity for the VM and ties its lifecycle directly to that VM. No secrets or keys are ever stored in the application code or configuration; the VM obtains an access token through the Azure Instance Metadata Service (IMDS) endpoint. This identity can be granted the necessary permissions on Azure Key Vault, for example, by assigning the 'Key Vault Secrets User' role, enabling secure, credential-free access. When the VM is deleted, the identity is automatically removed, eliminating the risk of orphaned credentials.

Why this answer

A system-assigned managed identity is tied directly to the lifecycle of the Azure VM — it is created when the VM is provisioned and automatically deleted when the VM is deleted. This identity can be used to authenticate to Azure Key Vault without storing any credentials on the VM, using the Azure Instance Metadata Service (IMDS) endpoint to obtain tokens. This matches the requirement that the identity be removed when the VM is deleted.

Exam trap

The trap here is that candidates often confuse user-assigned managed identities with system-assigned ones, failing to recognize that only system-assigned identities are automatically deleted with the parent resource, while user-assigned identities persist independently.

Why the other options are wrong

A

A user-assigned managed identity is not automatically tied to the VM's lifecycle; it persists independently and must be manually deleted, whereas the question requires the identity to be removed when the VM is deleted.

C

A storage account shared access signature (SAS) is a token for delegated access to a storage account, not for accessing Key Vault. It does not provide an identity tied to a VM and would require storing the SAS token on the VM, violating the requirement to avoid credential storage.

D

A local administrator account with a strong password stores credentials on the VM, violating the requirement to avoid storing credentials. It also does not provide an identity tied to the VM that is automatically removed when the VM is deleted.

147
MCQeasy

A developer wants to give one Azure VM access to Azure Storage now, and that identity should be removed automatically if the VM is deleted. Which identity type should the administrator assign?

A.A user-assigned managed identity
B.A system-assigned managed identity
C.A storage account SAS token
D.An NSG service tag
AnswerB

A system-assigned managed identity is attached directly to one Azure resource, such as a VM, and Azure manages its lifecycle with that resource. If the VM is deleted, the identity is also removed automatically. This makes it the right choice when the identity should exist only for that VM.

Why this answer

A system-assigned managed identity is tied directly to the lifecycle of the Azure VM. When the VM is deleted, Azure automatically removes the identity from Azure AD and revokes any associated role assignments, fulfilling the developer's requirement for automatic cleanup. This identity is created and managed by Azure without any additional administrative overhead.

Exam trap

The trap here is that candidates confuse user-assigned managed identities with system-assigned ones, assuming both are automatically deleted, but only system-assigned identities are lifecycle-coupled to the resource.

Why the other options are wrong

A

A user-assigned managed identity persists independently of the VM lifecycle; it is not automatically deleted when the VM is deleted, failing the requirement for automatic removal.

C

A storage account SAS token provides time-limited access but is not tied to the VM's lifecycle; it does not automatically revoke access when the VM is deleted.

D

NSG service tags are used to define network access rules based on Azure services, not to provide identity for VM access to storage. They do not support automatic removal upon VM deletion.

148
MCQeasy

A developer already has permission to create resource groups. The company wants to allow deployments only in the East US and West US regions. Which service should enforce this rule?

A.Azure RBAC, because region selection is part of user permissions.
B.Azure Policy, because it can restrict which regions are allowed for deployments.
C.A network security group, because it can block unsupported regions.
D.A read-only lock, because it limits changes to approved regions.
AnswerB

This is correct because Azure Policy can enforce a list of allowed locations at deployment time. The developer may still have RBAC permission to create resources, but the policy can deny deployments outside East US and West US. That makes Policy the proper control for region compliance, while RBAC handles access rights separately.

Why this answer

Azure Policy is the correct service because it enforces organizational rules by evaluating resource configurations against policy definitions. In this scenario, a built-in or custom policy can restrict allowed regions for all resources, ensuring deployments only occur in East US and West US. Unlike RBAC, which controls who can perform actions, Azure Policy controls what resource configurations are permitted, making it the appropriate tool for region restriction.

Exam trap

The trap here is confusing Azure RBAC (who can act) with Azure Policy (what is allowed), leading candidates to mistakenly choose RBAC for region restrictions when RBAC cannot enforce resource configuration constraints.

Why the other options are wrong

A

Azure RBAC controls permissions to perform actions on resources, but it does not have the capability to restrict which Azure regions can be used for deployments. Region restriction is a governance requirement, not an access control one.

C

Network security groups (NSGs) filter traffic at the subnet or NIC level, not control which Azure regions can be used for resource deployments. They cannot restrict region selection during deployment.

D

A read-only lock prevents modifications to resources but does not restrict which Azure regions can be used for deployments; region restrictions require Azure Policy.

149
MCQmedium

A modify policy that appends a CostCenter tag was assigned to a management group. The policy shows as assigned, but older virtual machines still lack the tag. What must the administrator do to update those existing resources?

A.Reassign the policy at a lower scope so it applies more quickly.
B.Create a remediation task for the policy assignment.
C.Change the policy effect from modify to audit.
D.Add a CanNotDelete lock to the virtual machines.
AnswerB

Policy assignment alone evaluates future requests, but existing resources often need remediation before the policy effect is applied to them. A remediation task triggers the policy logic against already deployed resources and applies the configured correction when the managed identity has enough permissions. That is how missing tags on older VMs are brought into compliance.

Why this answer

The 'modify' policy effect appends the CostCenter tag to new or updated resources automatically, but it does not retroactively apply to existing resources. To update older virtual machines that lack the tag, the administrator must create a remediation task for the policy assignment. This task uses Azure Policy's 'deployIfNotExists' or 'modify' effect to trigger a deployment that evaluates and corrects non-compliant existing resources.

Exam trap

The trap here is that candidates assume a 'modify' policy effect automatically applies to all existing resources, but in reality, it only applies to new or updated resources unless a remediation task is explicitly created.

Why the other options are wrong

A

Reassigning the policy at a lower scope does not trigger remediation for existing resources; it only applies to new resources. The modify effect requires a remediation task to update existing non-compliant resources.

C

Changing the policy effect from modify to audit would only report compliance without automatically adding the tag; it does not update existing resources.

D

Adding a CanNotDelete lock prevents deletion but does not apply tags to existing resources. The question requires updating older VMs with a CostCenter tag, which is a policy remediation task, not a lock.

150
MCQmedium

You need to ensure that all users in the HelpdeskAdmins group can reset passwords for cloud-only users in Microsoft Entra ID but cannot modify group memberships or delete users. Which role should you assign?

A.Global Administrator
B.User Administrator
C.Helpdesk Administrator
D.Security Administrator
AnswerC

This is the least-privileged built-in directory role explicitly designed for password resets and service request handling. It can reset passwords for non-admin users and manage service health, but cannot modify role assignments or manage MFA for privileged accounts. This aligns with Azure AD's principle of granular delegated administration, giving helpdesk staff precisely the rights needed without broader user or security management.

Why this answer

The Helpdesk Administrator role is specifically designed to allow password resets for non-administrator users (including cloud-only users) while explicitly preventing modifications to group memberships or deletion of users. This aligns perfectly with the requirement to restrict the HelpdeskAdmins group to only password reset capabilities.

Exam trap

The trap here is that candidates often confuse User Administrator with Helpdesk Administrator, assuming both can reset passwords, but User Administrator also grants broader user management capabilities like modifying group memberships and deleting users, which the question explicitly forbids.

Why the other options are wrong

A

Global Administrator has full access to all Microsoft Entra ID features, including modifying group memberships and deleting users, which exceeds the required permissions for resetting passwords only.

B

User Administrator can reset passwords but also has permissions to modify group memberships and delete users, which exceeds the required scope of only resetting passwords for cloud-only users.

D

Security Administrator role manages security features like conditional access and identity protection, but does not include permissions to reset passwords for cloud-only users.

← PreviousPage 2 of 4 · 233 questions totalNext →

Ready to test yourself?

Try a timed practice session using only Manage Azure Identities and Governance questions.