Courseiva

CCNA Manage Azure Identities and Governance Questions

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

1
Multi-Selectmedium

Finance wants every resource created in one production resource group to receive the tag CostCenter=FINSVC automatically, but deployments should not be blocked if a template omits the tag. Existing resources should be updated when possible. Which two actions should the administrator take? Select two.

Select 2 answers
A.Assign a Modify policy that adds or updates the CostCenter tag.
B.Run a remediation task for noncompliant existing resources.
C.Apply a ReadOnly lock to the resource group to keep tags consistent.
D.Assign Reader to the resource group to ensure tag visibility.
E.Use only an Audit policy so teams can see missing tags.
AnswersA, B

The Modify effect can automatically add or update tags without blocking the deployment. That matches the requirement to keep deployments flowing while enforcing the tag.

Why this answer

A Modify effect policy definition can automatically add or update the CostCenter tag on resources during creation or update, without blocking deployments if the tag is missing. This satisfies the requirement that deployments should not be blocked, as the Modify effect only applies the tag rather than denying non-compliant requests.

Exam trap

The trap here is that candidates often confuse Audit and Modify effects, thinking Audit can automatically fix tags, or they mistakenly believe a ReadOnly lock is needed to enforce consistency, when in fact Modify with remediation is the correct approach for automatic tag application without blocking deployments.

Why the other options are wrong

C

Applying a ReadOnly lock prevents any modifications to resources, including adding or updating tags, which contradicts the requirement to automatically apply tags to new resources and update existing ones.

D

Assigning the Reader role to the resource group ensures tag visibility but does not automatically apply or enforce the CostCenter tag. The requirement is to automatically add the tag to new resources and update existing ones, which requires a policy with a Modify effect, not a role assignment.

E

An Audit policy only reports noncompliance but does not automatically add or update tags. The requirement is to automatically apply the CostCenter tag to new and existing resources, which requires a Modify policy with a remediation task, not just auditing.

2
MCQmedium

A production resource group contains several VMs and a storage account. The operations manager wants to prevent accidental deletion of the resource group and its resources, but still allow normal configuration changes during maintenance windows. Which lock should be applied to the resource group?

A.ReadOnly lock at the resource group scope.
B.CanNotDelete lock at the resource group scope.
C.Azure Policy assignment that denies all delete requests.
D.Apply the lock only to individual virtual machines.
AnswerB

CanNotDelete is the correct lock when the goal is to prevent accidental removal while still allowing updates. It blocks delete operations for the resource group and its resources, but it does not stop normal configuration changes such as resizing, tagging, or network updates. That makes it suitable for production protection without freezing administration.

Why this answer

A CanNotDelete lock at the resource group scope prevents the deletion of the resource group and all its resources, while still allowing configuration changes (e.g., modifying VM settings or updating storage account properties). This meets the operations manager's requirement to block accidental deletion but permit normal maintenance operations. ReadOnly locks would block all write operations, which is too restrictive for maintenance windows.

Exam trap

The trap here is that candidates often confuse ReadOnly locks with CanNotDelete locks, mistakenly thinking ReadOnly is safer, but ReadOnly blocks all write operations (including configuration changes), which is too restrictive for maintenance scenarios where updates are required.

Why the other options are wrong

A

A ReadOnly lock prevents all modifications, including configuration changes during maintenance windows, which violates the requirement to allow normal configuration changes.

C

Azure Policy assignments deny or audit actions based on rules, but they do not prevent deletion by default unless a specific deny effect is configured for delete operations. Even then, policy can be overridden by permissions, whereas locks provide a stronger, role-independent restriction.

D

Applying the lock only to individual VMs does not protect the storage account or other resources in the resource group from accidental deletion, failing to meet the requirement to prevent deletion of all resources.

3
MCQmedium

A deny policy blocks creation of storage accounts with public network access enabled. A legacy application in RG-Legacy must keep one existing storage account publicly reachable for 45 days while the rest of the subscription remains governed by the policy. What should the administrator configure?

A.A policy exemption at the RG-Legacy scope with an expiration date.
B.A new role assignment that grants Owner on RG-Legacy.
C.A management lock on the storage account.
D.A separate initiative assigned only to RG-Legacy with the deny setting disabled.
AnswerA

A policy exemption at the RG-Legacy scope with an expiration date temporarily waives the deny effect for new storage accounts created in that resource group while the original policy assignment remains active and enforced elsewhere. The expiration date forces a scheduled review, ensuring the exception does not persist indefinitely. This is the only construct that directly addresses the specific scope's non-compliance without altering the policy or permissions.

Why this answer

A policy exemption at the RG-Legacy scope with an expiration date is the correct solution because it allows the specific storage account to bypass the deny policy while keeping the policy enforced for all other resources. The exemption can be scoped to the resource group and set to expire in 45 days, ensuring the legacy application retains public access temporarily without permanently weakening the governance posture. This approach directly addresses the requirement to maintain compliance for the rest of the subscription.

Exam trap

The trap here is that candidates often confuse policy exemptions with role assignments or management locks, mistakenly thinking that granting Owner permissions or locking a resource can override a deny policy, when in fact only a policy exemption (or a policy exclusion at assignment scope) can bypass the deny effect.

Why the other options are wrong

B

A role assignment granting Owner on RG-Legacy does not override a deny policy; deny policies take precedence over role assignments. The storage account would still be blocked by the policy.

C

A management lock prevents accidental deletion or modification of the storage account, but it does not override a deny policy that blocks public network access. The lock cannot exempt the resource from policy enforcement.

D

A separate initiative assigned only to RG-Legacy with the deny setting disabled would remove the deny effect entirely for that resource group, but the question requires the deny policy to remain in effect for all other resources and only allow the existing storage account to be publicly reachable for 45 days. An initiative with the deny setting disabled would allow new storage accounts with public access to be created in RG-Legacy, which violates the policy intent.

4
MCQmedium

A policy assigned at the management group denies creation of storage accounts with public network access enabled. One legacy storage account in RG-Pilot must stay publicly reachable for 45 days while an application is migrated. What should the administrator configure?

A.Remove the policy assignment from the management group until the migration is finished.
B.Create a policy exemption for the specific storage account with an expiration date.
C.Apply a CanNotDelete lock to the storage account.
D.Assign a Contributor role to the migration team on the storage account.
AnswerB

A policy exemption allows one approved resource to temporarily bypass the deny effect while preserving the policy for everything else. Adding an expiration date ensures the exception is temporary and supports compliance tracking during the migration period.

Why this answer

A policy exemption is the correct tool when a specific resource must temporarily diverge from an enforced policy. The deny policy stays in place for the management group, but the exempted storage account is allowed to remain publicly reachable during the migration window. This keeps governance intact while documenting the exception and its expiration, which is much safer than removing the policy or trying to solve a compliance issue with RBAC.

Why others are wrong: Removing the policy assignment would disable governance for all resources under the management group, not just the one legacy storage account. A CanNotDelete lock protects against deletion only; it does not affect policy evaluation or network access settings. Granting Contributor does not help because Azure Policy is evaluated separately from RBAC, so more permission does not override a deny policy.

Why the other options are wrong

A

Removing the policy assignment from the management group would disable the policy for all subscriptions and resource groups under it, not just the legacy storage account, violating the requirement to deny public network access for other storage accounts.

D

Assigning a Contributor role grants permissions to manage resources but does not override a policy that denies public network access. The policy will still block any creation or update that enables public access, and the existing legacy account's public access is not affected by role assignments.

5
MCQeasy

Based on the exhibit, three VMs in different resource groups must use the same Azure identity, and the identity must continue working if one VM is deleted and recreated. What should you use?

A.A system-assigned managed identity on each VM.
B.A user-assigned managed identity attached to all three VMs.
C.A service principal stored in the VM image.
D.A shared access signature assigned to the resource group.
AnswerB

A user-assigned managed identity is correct because it is created independently from any single VM and can be attached to multiple resources. That makes it ideal when several VMs need the same identity and the identity must remain available even if one VM is deleted and recreated.

Why this answer

A user-assigned managed identity is an Azure resource that can be created independently and then assigned to multiple VMs. Because it persists as a separate resource in Azure, deleting and recreating a VM does not affect the identity; you simply reattach the same user-assigned identity to the new VM. This ensures the identity continues working across VM lifecycle changes, meeting the requirement for a shared, resilient identity.

Exam trap

The trap here is that candidates confuse system-assigned managed identities (which are tied to VM lifecycle) with user-assigned managed identities (which are independent resources), leading them to choose Option A despite the requirement for identity persistence across VM deletion and recreation.

Why the other options are wrong

A

A system-assigned managed identity is tied to the lifecycle of each VM; if a VM is deleted and recreated, it gets a new identity, breaking the requirement that the same identity must persist across deletion and recreation.

C

A service principal stored in the VM image would be tied to that specific image and would not persist if a VM is deleted and recreated, as the new VM would need to have the same image or the service principal manually re-configured. It also cannot be shared across multiple VMs in different resource groups without additional configuration.

D

A shared access signature (SAS) is used to delegate access to Azure Storage resources, not to provide an Azure identity for VMs. It cannot be assigned to a resource group and does not persist across VM deletion and recreation.

6
MCQeasy

Based on the exhibit, what is the best way to simplify access management for the project team?

A.Keep assigning RBAC roles directly to each user account.
B.Assign the RBAC role to an Entra ID group and manage membership there.
C.Create a resource lock on RG-App.
D.Create an Azure Policy assignment for RG-App.
AnswerB

Assigning the RBAC role to an Entra ID group and managing membership there centralizes access control: when a user is added to or removed from the group, their effective permissions on RG-App update automatically. This leverages Azure's inheritance model, reduces administrative overhead, and enables dynamic membership rules or access reviews to keep entitlements current. It is the best practice for simplifying access at scale.

Why this answer

The best practice is to assign the RBAC role to an Entra ID group instead of individual users. That way, access management is handled by adding or removing members from the group, which is much easier and less error-prone. The role assignment remains stable while team membership changes over time, which is exactly what the requirement describes.

Why others are wrong: A works initially but becomes difficult to maintain as team membership changes. C does not control access at all. D is a governance mechanism, not an authorization mechanism, so it cannot replace group-based RBAC.

Why the other options are wrong

D

Azure Policy is used to enforce organizational standards and assess compliance, not to simplify access management. It does not grant or manage permissions for users.

7
Multi-Selecthard

RG-Prod hosts line-of-business workloads. The business wants to prevent accidental deletion of the resource group during change freezes and also ensure every new resource carries a CostCenter tag for chargeback. Which two governance controls should be used? Select two.

Select 2 answers
A.Apply a CanNotDelete lock to RG-Prod.
B.Apply a ReadOnly lock to RG-Prod.
C.Use Azure Policy with a Modify effect to add the CostCenter tag to new resources.
D.Grant Reader to the finance team on the resource group.
E.Create a private endpoint for RG-Prod.
AnswersA, C

A CanNotDelete lock prevents deletion of the resource group and all child resources while leaving read and update operations fully functional. This lock is enforced at the Azure Resource Manager control plane, so ordinary updates, deployments, and configuration changes continue to work, which aligns with the need to host production workloads without disruption. It is the appropriate choice when the goal is to guard against accidental deletion without restricting administrative changes.

Why this answer

Applying a CanNotDelete lock to RG-Prod prevents the resource group from being deleted during change freezes, which directly meets the requirement to prevent accidental deletion. This lock type allows read and update operations but blocks delete operations, making it ideal for protecting critical resources without impacting ongoing workloads.

Exam trap

The trap here is that candidates often confuse a ReadOnly lock with a CanNotDelete lock, assuming any lock prevents deletion, but ReadOnly locks also block updates, which would break production workloads, while the correct choice is the less restrictive CanNotDelete lock for deletion prevention only.

Why the other options are wrong

B

A ReadOnly lock prevents any changes, including updates and deletions, but the requirement is only to prevent accidental deletion during change freezes, not to block all modifications. Additionally, it does not address the CostCenter tag requirement.

D

Granting Reader permission to the finance team allows them to view resources but does not enforce tagging or prevent deletion. The question requires preventing accidental deletion and ensuring a CostCenter tag on new resources, which Reader cannot achieve.

E

A private endpoint secures network connectivity to a PaaS service (e.g., Storage, SQL) by giving it a private IP in a VNet, not a resource group. It does not prevent deletion or enforce tagging.

8
MCQmedium

Your company has an Azure subscription named Prod-Sub. You create a custom role that allows users to restart virtual machines but not create, delete, or resize them. You need to ensure that members of the VMOperators group can use this custom role only for virtual machines in the RG-Prod resource group. What should you do?

A.Assign the custom role to VMOperators at the subscription scope.
B.Assign the custom role to VMOperators at the RG-Prod scope.
C.Assign the Virtual Machine Contributor role to VMOperators at the RG-Prod scope.
D.Assign the custom role to VMOperators at the management group scope.
AnswerB

Assigning the custom role at the RG-Prod resource group scope ensures the Microsoft.Compute/virtualMachines/restart/action permission applies only to VMs within that resource group. This follows the principle of least privilege because VMOperators receive exactly the restart capability and nothing else, with no ability to influence resources in other resource groups or subscriptions. The role assignment is scoped specifically to the resource group to support the business requirement for production VMs only.

Why this answer

Assigning the custom role at the RG-Prod scope restricts the role's permissions to only the virtual machines within that specific resource group. This meets the requirement that VMOperators can restart VMs but not create, delete, or resize them, and only within RG-Prod.

Exam trap

The trap here is that candidates often confuse the scope of role assignments, thinking a subscription-level assignment can be restricted by a condition, but Azure RBAC does not support conditions for built-in or custom roles without Azure Policy or attribute-based access control (ABAC), which is not mentioned in the question.

Why the other options are wrong

A

Assigning the custom role at the subscription scope would grant the restart permission to all virtual machines in the subscription, not just those in RG-Prod, violating the requirement to scope the role only to RG-Prod.

C

The Virtual Machine Contributor role allows creating, deleting, and resizing VMs, which exceeds the required permission to only restart VMs. Assigning it at RG-Prod scope would grant broader permissions than intended.

D

Assigning the custom role at the management group scope would apply the permission to all subscriptions and resource groups under that management group, not just RG-Prod, violating the requirement to restrict access to only that resource group.

9
MCQeasy

A company wants to prevent users from creating storage accounts unless the resources include a costCenter tag. Which Azure feature should be used?

A.Azure RBAC, because it controls whether users can create resources.
B.Azure Policy, because it can evaluate and enforce required resource properties.
C.A resource lock, because it can force resources to use tags.
D.A service endpoint, because it can filter which resources are allowed in a subscription.
AnswerB

This is correct because Azure Policy is designed to enforce standards and assess compliance. A policy can require a tag such as costCenter and deny or audit noncompliant resource creation. RBAC could still allow the user to create storage accounts, but Policy adds the configuration rule that controls whether the deployment is compliant.

Why this answer

Azure Policy is correct because it can enforce organizational standards by evaluating resource properties during creation and modification. By defining a policy that requires a 'costCenter' tag on all storage accounts, Azure Policy will deny creation of any storage account that does not include that tag, ensuring compliance without manual intervention.

Exam trap

The trap here is confusing Azure Policy (which enforces resource properties) with Azure RBAC (which controls permissions), as both are governance tools but serve fundamentally different purposes.

Why the other options are wrong

A

Azure RBAC controls permissions to create resources but cannot enforce that created resources include specific tags like costCenter; that requires Azure Policy's evaluation and enforcement capabilities.

C

Resource locks prevent deletion or modification of resources but cannot enforce tagging requirements or evaluate resource properties during creation.

D

Service endpoints restrict network access to Azure services, not enforce resource properties like tags. They cannot prevent storage account creation based on missing tags.

10
Multi-Selecteasy

A company wants to stop users from creating resources in regions that are not approved and also require a Department tag on new resources. Which two tasks are best handled by Azure Policy? Select two.

Select 2 answers
A.Restrict allowed deployment locations.
B.Require a Department tag on resources.
C.Give users Contributor access to the subscription.
D.Create Microsoft Entra ID users for contractors.
E.Place a CanNotDelete lock on every resource group.
AnswersA, B

Azure Policy is designed to enforce configuration standards such as allowed locations. It can block or audit deployments that do not match the approved region list, which is a compliance requirement rather than an access-control requirement.

Why this answer

Azure Policy can enforce organizational standards by evaluating resource properties against business rules. Option A is correct because the 'Allowed Locations' policy definition restricts users from deploying resources to any region not explicitly permitted, directly addressing the requirement to block unapproved regions. Option B is correct because the 'Require a tag and its value on resources' policy definition can enforce that a Department tag must exist on all new resources, ensuring compliance with tagging requirements.

Exam trap

The trap here is that candidates often confuse Azure Policy with Azure RBAC or resource locks, thinking that policy can manage user permissions or prevent deletion, when in fact policy is solely for enforcing rules on resource properties like location and tags.

Why the other options are wrong

C

Azure Policy does not manage role-based access control (RBAC) like granting Contributor access. RBAC is handled by Azure role-based access control, not Azure Policy.

D

Azure Policy does not manage user identities; creating Microsoft Entra ID users is an identity management task handled by Microsoft Entra ID, not Azure Policy.

E

Placing a CanNotDelete lock on every resource group does not address the requirement to restrict regions or enforce tagging; it prevents deletion of resource groups, which is unrelated to the stated goals.

11
MCQmedium

A VM-hosted automation tool must call Azure APIs without storing a password or certificate on disk. The identity should disappear automatically when the VM is deleted. Which identity should the administrator assign?

A.A user-assigned managed identity
B.A service principal with a client secret
C.A system-assigned managed identity
D.A storage account access key
AnswerC

A system-assigned managed identity is tied directly to the VM lifecycle, so it is created with the VM and removed when the VM is deleted. It allows the automation tool to authenticate to Azure services without storing passwords, secrets, or certificates on disk, which is the secure pattern requested.

Why this answer

A system-assigned managed identity is tied directly to the lifecycle of the Azure VM — when the VM is deleted, the identity is automatically removed. It allows the VM to authenticate to Azure APIs without storing any credentials (password or certificate) on disk, using Azure AD tokens obtained via the Azure Instance Metadata Service (IMDS) endpoint at 169.254.169.254.

Exam trap

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

Why the other options are wrong

A

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

B

A service principal with a client secret requires storing the secret on disk or in environment variables, which violates the requirement of not storing a password or certificate on disk. Additionally, it does not automatically disappear when the VM is deleted; the service principal persists independently.

D

A storage account access key is used for authenticating to Azure Storage, not for calling Azure APIs in general, and it does not provide an identity that disappears when the VM is deleted.

12
MCQmedium

Based on the exhibit, an Azure Policy with the Modify effect was assigned to add Environment=Prod to resources in RG-Prod. New resources get the tag, but existing virtual machines still do not have it. What should the administrator do next?

A.Create a remediation task for the policy assignment.
B.Move the policy assignment to the subscription scope.
C.Change the policy effect from Modify to Deny.
D.Add a CanNotDelete lock to RG-Prod.
AnswerA

Modify can add or update the tag for future deployments, but existing resources usually need remediation so the policy engine can apply the change to what is already deployed. A remediation task is the correct next step.

Why this answer

The Modify effect in Azure Policy automatically applies to new resources during creation or update, but it does not retroactively fix existing non-compliant resources. To apply the tag to existing virtual machines, the administrator must create a remediation task for the policy assignment, which triggers a deployment to modify those resources.

Exam trap

The trap here is that candidates often assume Azure Policy automatically remediates all resources at assignment time, but in reality, only new or updated resources are affected unless a remediation task is explicitly created.

Why the other options are wrong

B

The policy is already assigned at the resource group scope (RG-Prod), and moving it to the subscription scope would not trigger remediation for existing resources; it would only apply to new resources in the subscription. The issue is that existing VMs lack the tag, which requires a remediation task, not a scope change.

C

Changing the effect to Deny would block creation or modification of resources that lack the tag, but it does not apply the tag to existing resources. The question specifically asks how to fix existing VMs that are missing the tag, which requires a remediation task, not a policy change.

D

Adding a CanNotDelete lock to RG-Prod prevents deletion of resources but does not apply tags to existing virtual machines. The issue is that existing resources are not retroactively updated by the Modify effect, which requires a remediation task.

13
MCQmedium

A production storage account must remain available for updates, but administrators want to prevent accidental deletion during maintenance windows. Which lock should be applied to the storage account?

A.ReadOnly lock at the storage account scope.
B.CanNotDelete lock at the storage account scope.
C.CanNotDelete lock at the subscription scope.
D.Azure Policy deny assignment on all storage account operations.
AnswerB

CanNotDelete is the correct lock because it prevents deletion while still allowing typical configuration updates. That matches the requirement to protect the storage account from accidental removal without freezing all management operations. Applying it directly at the resource scope keeps the protection targeted to the specific storage account.

Why this answer

The CanNotDelete lock at the storage account scope prevents the storage account from being deleted while still allowing all read and update operations. This meets the requirement of keeping the storage account available for updates while preventing accidental deletion during maintenance windows.

Exam trap

The trap here is that candidates often confuse the ReadOnly lock with preventing deletion, but ReadOnly also blocks updates, which fails the requirement; they may also incorrectly assume a subscription-scoped lock is necessary for a single resource, ignoring the principle of least privilege.

Why the other options are wrong

A

A ReadOnly lock prevents any updates to the storage account, but the question requires the account to remain available for updates. Thus, it does not meet the requirement of allowing updates while preventing deletion.

C

A CanNotDelete lock at the subscription scope would prevent deletion of all resources in the subscription, not just the storage account, and is overly broad for the requirement of preventing accidental deletion of a specific storage account during maintenance.

D

Azure Policy deny assignments block operations based on policy rules, but they do not prevent accidental deletion specifically; they are for enforcing compliance across resources, not for protecting a single resource from deletion during maintenance.

14
MCQhard

A web app and a VM scale set both need the same Azure identity to read secrets from Key Vault. The identity must survive redeployment, and the team wants to remove it centrally without changing each resource individually. Which identity type should they use?

A.A system-assigned managed identity on each resource.
B.A user-assigned managed identity attached to both resources.
C.A service principal with a client secret stored in application settings.
D.A resource lock on the Key Vault to preserve the secret access path.
AnswerB

A user-assigned identity is reusable across resources and can be managed independently of any single workload.

Why this answer

A user-assigned managed identity (B) is the correct choice because it is created as a standalone Azure resource, can be attached to multiple Azure resources (e.g., a web app and a VM scale set), and persists independently of those resources. This allows the identity to survive redeployment of either resource and enables centralized removal (by deleting the user-assigned identity) without needing to modify each resource individually.

Exam trap

The trap here is that candidates often confuse system-assigned managed identities (which are simpler but resource-bound) with user-assigned managed identities, failing to recognize that only user-assigned identities can be shared across multiple resources and survive independent redeployment.

Why the other options are wrong

A

System-assigned managed identities are tied to each resource's lifecycle and cannot be shared across resources; they also cannot be centrally removed without updating each resource individually.

C

A service principal with a client secret stored in application settings does not survive redeployment because the secret must be manually rotated and stored, and it cannot be centrally removed without updating each resource's configuration.

D

A resource lock prevents accidental deletion or modification of the Key Vault, but it does not provide any identity for the web app and VM scale set to authenticate to Key Vault. The question asks for an identity type, not a protection mechanism.

15
Multi-Selecthard

An Azure application and an Azure Automation account need Azure access without any stored secrets. The same identity should be reusable and should not require manual secret rotation. Which two identity choices meet the requirement? Select two.

Select 2 answers
A.System-assigned managed identity attached to the resource that needs access.
B.User-assigned managed identity that can be attached to multiple Azure resources.
C.Service principal with a client secret stored in an app setting.
D.Shared administrator username and password stored in a Key Vault secret.
E.SAS token generated once and reused indefinitely by both resources.
AnswersA, B

A system-assigned managed identity is created directly with the Azure resource and has the same lifecycle, so when the resource is deleted, the identity is deleted too. It is automatically rotated and requires no secret management, making it the most straightforward way for a single resource like an application or an automation account to authenticate to Azure AD and access other Azure resources. This identity is bound exclusively to that one resource and cannot be shared.

Why this answer

System-assigned managed identity (Option A) is correct because it is automatically created and tied to a specific Azure resource, such as a virtual machine or App Service, and provides an Azure AD identity that can be used to authenticate to any service supporting Azure AD authentication without storing any secrets. The identity is managed by Azure, eliminating the need for manual secret rotation, and it is automatically deleted when the resource is deleted, ensuring no orphaned secrets.

Exam trap

The trap here is that candidates often confuse service principals with managed identities, thinking that storing a client secret in an app setting or Key Vault is acceptable, but the question explicitly requires 'no stored secrets' and 'no manual secret rotation,' which only managed identities satisfy.

Why the other options are wrong

C

Service principals with client secrets require manual secret rotation and storing the secret in an app setting still exposes it as a stored secret, violating the requirement of no stored secrets and no manual rotation.

D

Shared administrator username and password stored in a Key Vault secret require manual rotation and expose static credentials, violating the requirements of no stored secrets and no manual rotation.

E

A SAS token is a shared access signature that grants time-limited access to specific resources like storage accounts. It requires manual generation, cannot be reused indefinitely without exposing the account key, and does not provide a reusable identity without stored secrets, failing the requirement of no manual secret rotation.

16
MCQeasy

Help desk staff must start, stop, and restart virtual machines in one application resource group. They must not create or delete VMs or modify networking or disks. Which built-in role should you assign?

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

Virtual Machine Operator is the appropriate least-privilege choice for operational control of VMs. It allows actions such as starting, stopping, and restarting virtual machines without giving full management rights over creation, deletion, or related networking and disk resources. That makes it a better fit than broader contributor roles when the team only needs day-to-day operations.

Why this answer

The Virtual Machine Operator role allows starting, stopping, and restarting virtual machines, but explicitly denies creating, deleting, or modifying VMs, networking, or disks. This matches the help desk staff's required permissions exactly, making it the correct built-in role for this scenario.

Exam trap

The trap here is that candidates often choose Virtual Machine Contributor (Option B) because it sounds like it covers VM operations, but they overlook that it also includes create and delete permissions, which are explicitly prohibited in the question.

Why the other options are wrong

A

The Reader role allows read-only access to all resources, but does not permit starting, stopping, or restarting VMs, which require write-level permissions.

B

Virtual Machine Contributor allows creating and deleting VMs, which violates the requirement that help desk staff must not create or delete VMs.

D

The Contributor role allows creating and deleting VMs, as well as modifying networking and disks, which exceeds the required permissions of only starting, stopping, and restarting VMs.

17
MCQeasy

Based on the exhibit, a compliance dashboard shows that several storage accounts are marked noncompliant because they do not have the required tag. The policy itself is correct, but one business unit needs a temporary exception for a single resource group during a merger. What should the administrator configure?

A.A policy exemption at the rg-merger01 resource group scope.
B.Delete the policy assignment from corp-root and recreate it later.
C.Move rg-merger01 to a separate subscription so the policy no longer applies.
D.Change the policy effect to Audit so the resources can remain noncompliant.
AnswerA

A policy exemption lets the administrator document and scope a temporary exception without disabling the policy for the rest of the environment. Because the request applies to one resource group for a limited time, an exemption at that scope is the cleanest governance solution.

Why this answer

A policy exemption at the rg-merger01 resource group scope is the correct solution because it allows the administrator to temporarily exclude a specific resource group from the policy's enforcement or compliance evaluation without modifying or deleting the original policy assignment. This is designed for scenarios like mergers where a short-term exception is needed, and it maintains the policy's integrity for all other scopes.

Exam trap

The trap here is that candidates often confuse a policy exemption with modifying the policy effect or scope, not realizing that exemptions are the only built-in mechanism to grant a temporary, scoped exception without affecting the rest of the environment.

Why the other options are wrong

B

Deleting the policy assignment from corp-root would remove compliance enforcement for all resources, not just rg-merger01, and would require recreating it later, causing unnecessary disruption and administrative overhead.

D

Changing the policy effect to Audit would allow noncompliance but would not provide a temporary exception for a single resource group; it would affect all resources under the policy scope, violating the requirement for a targeted exception.

18
MCQeasy

Based on the exhibit, a contractor must be able to restart only one virtual machine named vm-pay-01 and read its properties. The contractor must not be able to manage any other VM in the resource group. Where should the role assignment be created?

A.At the subscription scope so the contractor inherits access everywhere in the subscription.
B.At the resource scope for vm-pay-01 so the contractor receives permissions only on that VM.
C.At the resource group scope because resource assignments cannot be applied to virtual machines.
D.At the management group scope so the same role can be reused for all payroll subscriptions.
AnswerB

Assigning the role at the specific virtual machine resource scope limits the contractor to that VM only. Because Azure RBAC permissions inherit downward, this is the narrowest scope that still allows restart and read operations on vm-pay-01 without exposing other resources in the resource group.

Why this answer

Azure RBAC allows role assignments at the resource scope, which in this case is the virtual machine vm-pay-01. By assigning a role (e.g., Virtual Machine Contributor or a custom role with restart and read permissions) directly to the VM resource, the contractor receives permissions only on that specific VM, fulfilling the requirement to restrict access to other VMs in the resource group.

Exam trap

The trap here is that candidates often assume role assignments must be at the resource group or subscription scope, forgetting that Azure RBAC supports direct assignments at the individual resource scope, which is the most precise way to grant permissions to a single VM.

Why the other options are wrong

A

Assigning the role at the subscription scope would grant the contractor permissions to restart and read properties for all VMs in the subscription, not just vm-pay-01, violating the requirement to restrict access to only that VM.

C

Role assignments can be applied directly to virtual machines at the resource scope, so the claim that 'resource assignments cannot be applied to virtual machines' is false. Azure RBAC supports assigning roles at the resource level, including individual VMs.

D

Assigning the role at the management group scope would grant the contractor permissions to all virtual machines across all subscriptions under that management group, not just vm-pay-01, violating the requirement to restrict access to only that VM.

19
MCQmedium

A cloud operations team in the Corp business unit needs to read all Azure resources in every current and future subscription under the Corp management group to prepare monthly governance reports. They must not gain access to subscriptions that belong to other business units. What scope should the administrator use when assigning the Reader role?

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

This allows the Reader role to be assigned at the management group level, which applies inherited permissions to all subscriptions that are currently children of the Corp management group and automatically to any new subscriptions added later. Because Azure RBAC permissions are inherited from higher-level scopes like management groups down to subscriptions, resource groups, and resources, this scope provides the broadest and most future-proof coverage for the entire business unit. It ensures that the operations team can read resources across multiple subscriptions without needing separate assignments on each subscription. This is the correct choice when the business unit wants to manage a set of subscriptions under a common governance boundary.

Why this answer

The Reader role assigned at the management group scope grants read-only access to all subscriptions within that management group, including future subscriptions, because Azure RBAC permissions are inherited by child resources. This meets the requirement to cover all current and future subscriptions under the Corp management group while excluding subscriptions in other business units.

Exam trap

The trap here is that candidates often choose subscription scope because they think each subscription needs a separate role assignment, failing to realize that management group scope provides inheritance to all current and future subscriptions under that management group.

Why the other options are wrong

A

Subscription scope would grant read access only to a single subscription, not to all current and future subscriptions under the Corp management group, failing the requirement for cross-subscription governance reporting.

B

Resource group scope limits access to a single resource group, not all resources across all subscriptions under a management group, so it fails to meet the requirement of reading all resources in current and future subscriptions under Corp.

D

Resource scope limits the role assignment to a single resource, which cannot cover all resources across multiple subscriptions under a management group, failing the requirement to read all resources in current and future subscriptions.

20
MCQeasy

A single Azure virtual machine must read blobs from a storage account without storing any passwords, keys, or connection strings. The identity should be removed automatically if the VM is deleted. Which option should you use?

A.Storage account access key, because it is the simplest authentication method.
B.System-assigned managed identity, because it is tied to that VM.
C.Shared access signature, because it always removes the need for identity management.
D.User-assigned managed identity, because it is deleted automatically with the VM.
AnswerB

A system-assigned managed identity creates an Azure AD service principal that is directly tied to the VM's lifecycle; when the VM is deleted, the identity is automatically removed as well. Because it is inherently bound to that specific VM, you can grant it the Storage Blob Data Reader role on the storage account without ever storing a secret on the VM. The VM authenticates via the Azure Instance Metadata Service and receives an Azure AD access token to read blobs securely, with credential rotation handled automatically by the platform.

Why this answer

System-assigned managed identity is tied directly to the lifecycle of the Azure VM. When the VM is deleted, the identity is automatically removed. It allows the VM to authenticate to Azure Storage without storing any credentials, using Azure AD tokens obtained via the Azure Instance Metadata Service (IMDS).

Exam trap

The trap here is that candidates often confuse user-assigned managed identities with system-assigned ones, assuming user-assigned identities are also automatically deleted with the VM, when in fact they are independent resources that must be manually cleaned up.

Why the other options are wrong

A

Using a storage account access key requires storing the key in code or configuration, violating the requirement to avoid storing passwords, keys, or connection strings. It also does not automatically remove the identity when the VM is deleted.

C

A shared access signature (SAS) requires storing a token (key) in the application or configuration, violating the requirement to avoid storing passwords, keys, or connection strings. Additionally, SAS tokens are not automatically removed when the VM is deleted.

D

A user-assigned managed identity is not automatically deleted when the VM is deleted; it persists independently until explicitly removed. The question requires automatic removal with the VM, which only a system-assigned managed identity provides.

21
MCQmedium

Based on the exhibit, which Azure Policy effect should be used so new resources without an Environment tag are blocked at deployment time?

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

The Deny effect evaluates the requested resource during deployment and, if the condition (e.g., missing required tag) is not satisfied, returns an error that stops the entire deployment from succeeding. Unlike Audit, it does not simply report; it actively blocks creation of any noncompliant resources, which is the precise behavior needed to enforce a mandatory tag. This is the strongest enforcement effect in Azure Policy and is the correct choice here.

Why this answer

The Deny effect (Option C) is the correct choice because it actively blocks any deployment that does not meet the policy rule—in this case, resources lacking an Environment tag. When a policy with Deny is assigned, Azure Resource Manager evaluates the request during deployment and rejects it with a 403 (Forbidden) status if the condition is not satisfied, preventing the resource from being created entirely.

Exam trap

The trap here is that candidates often confuse 'Audit' with 'Deny' because both can report non-compliance, but only Deny actively prevents the deployment, whereas Audit merely logs the violation without blocking it.

Why the other options are wrong

A

Audit logs non-compliant resources but does not block deployment; the question requires blocking new resources at deployment time, which only Deny can do.

B

Append adds a tag or value to a resource but does not block deployment; it modifies the resource after creation, so it cannot prevent untagged resources from being deployed.

D

The 'Disabled' effect turns off the policy definition, meaning it does not evaluate or enforce any rule. It would not block resources missing the Environment tag at deployment time.

22
MCQmedium

An operations team must apply three related policies to all subscriptions in a department: require a cost-center tag, allow only approved locations, and block certain VM SKUs. They want to assign and track these rules as one unit. What should they create?

A.A single Azure Policy definition containing all three rules.
B.An Azure Policy initiative.
C.A management group with no policy assignments.
D.An RBAC custom role with deny permissions.
AnswerB

An initiative groups multiple policy definitions so they can be assigned, monitored, and managed together. This is ideal when several compliance rules must be applied consistently across multiple subscriptions. It also simplifies reporting because the team can evaluate one assignment instead of several separate ones.

Why this answer

An Azure Policy initiative is a collection of policy definitions designed to group related policies together for assignment and tracking as a single unit. By creating an initiative, the operations team can assign all three rules (cost-center tag, allowed locations, blocked VM SKUs) to all subscriptions in a department and track compliance at the initiative level, simplifying management and reporting.

Exam trap

The trap here is that candidates may think a single policy definition can contain multiple rules (Option A), but Azure Policy requires each definition to enforce one specific condition or effect, and grouping multiple rules requires an initiative.

Why the other options are wrong

A

A single Azure Policy definition can only enforce one rule, not three related rules as a unit. The question requires grouping multiple rules, which is the purpose of an initiative.

C

A management group with no policy assignments does not enforce any rules; it merely organizes subscriptions. The question requires applying and tracking three rules as one unit, which demands policy assignments, not just a container.

D

An RBAC custom role with deny permissions can block actions but cannot enforce resource properties like tags, locations, or VM SKUs; Azure Policy is required for such compliance rules.

23
MCQeasy

Based on the exhibit, an Azure VM must read secrets from Azure Key Vault during startup. No passwords, certificates, or client secrets may be stored on the VM. What should you configure?

A.Assign a user-assigned managed identity to the VM so it can be shared later.
B.Enable a system-assigned managed identity on the VM.
C.Create a service principal and store its client secret in the VM configuration.
D.Use a shared access signature in the startup script to authenticate to Key Vault.
AnswerB

A system-assigned managed identity is the best fit because it gives the VM an Azure identity without storing secrets on the machine. It is tied directly to that VM, so it is easy to create, use, and automatically remove when the VM is deleted. This matches the requirement for startup access to Key Vault and avoids any embedded credentials.

Why this answer

A system-assigned managed identity is the correct choice because it is tied directly to the VM's lifecycle, requires no credential storage, and can authenticate to Azure Key Vault without any secrets stored on the VM. When enabled, Azure automatically creates a service principal in Azure AD for the VM, and the VM can request an access token from the Azure Instance Metadata Service (IMDS) endpoint (169.254.169.254) to access Key Vault secrets. This satisfies the requirement of no passwords, certificates, or client secrets on the VM.

Exam trap

The trap here is that candidates often confuse managed identities with service principals or shared access signatures, mistakenly thinking that a client secret or SAS token is needed for authentication, when in fact managed identities eliminate the need for any stored credentials.

Why the other options are wrong

A

The question requires that no secrets be stored on the VM, and a user-assigned managed identity does not inherently prevent secret storage; however, the key constraint is that the identity must be available during startup without manual configuration. A system-assigned identity is automatically created and tied to the VM's lifecycle, making it the simplest choice for a single VM that needs to access Key Vault at startup without managing secrets.

C

Storing a client secret in the VM configuration violates the requirement that no passwords, certificates, or client secrets may be stored on the VM. Managed identities eliminate the need for secrets entirely.

D

A shared access signature (SAS) is used for delegated access to Azure Storage, not for authenticating to Key Vault. Key Vault does not support SAS tokens for authentication.

24
MCQmedium

A security team needs to grant and remove RBAC access for a set of operators on resources in one resource group, but those operators must not create, modify, or delete the resources themselves. Which built-in role should be assigned?

A.Reader, because it is the most restrictive role available.
B.Contributor, because it can manage resources and role assignments together.
C.User Access Administrator at the resource group scope.
D.Tag Contributor, because role management and tagging are both governance tasks.
AnswerC

User Access Administrator is the built-in role designed for managing access permissions without granting broad resource management rights. At the resource group scope, it lets the security team add and remove RBAC assignments for that group while avoiding direct control over the workload resources themselves. This matches least privilege much better than Owner or Contributor.

Why this answer

The User Access Administrator role at the resource group scope grants the ability to manage RBAC role assignments for other users on resources within that resource group, but it does not grant permissions to create, modify, or delete the resources themselves. This meets the security team's requirement to grant and remove access without allowing resource management.

Exam trap

The trap here is that candidates often confuse the Contributor role (which can manage resources but not role assignments) with the User Access Administrator role, or mistakenly think the Reader role is sufficient for managing access, when in fact only roles with Microsoft.Authorization/roleAssignments/write can grant or remove RBAC assignments.

Why the other options are wrong

A

The Reader role only allows read access to resources, not the ability to grant or remove RBAC roles, which is required by the question.

B

The Contributor role allows operators to create, modify, and delete resources, which violates the requirement that operators must not perform these actions. It also does not grant permission to manage role assignments.

D

The Tag Contributor role allows managing tags on resources but does not include the 'Microsoft.Authorization/roleAssignments/write' permission needed to grant or remove RBAC role assignments, which is the core requirement.

25
MCQmedium

Based on the exhibit, the Prod management group contains three subscriptions that host application workloads. An operations group must be able to read all current and future resources in those Prod subscriptions, but it must not have access to Sandbox. Where should you assign the Reader role?

A.Assign Reader to OpsGroup at the Corp management group.
B.Assign Reader to OpsGroup at the Prod management group.
C.Assign Reader to OpsGroup at one application resource group in AppSub1.
D.Assign Reader to OpsGroup at each subscription individually.
AnswerB

Assigning at the Prod management group gives inherited read access to every subscription, resource group, and resource under Prod. It also automatically applies to future subscriptions added under Prod, while keeping Sandbox out of scope.

Why this answer

Assigning the Reader role at the Prod management group scope ensures that OpsGroup inherits read permissions to all current and future subscriptions and resources within that management group, while excluding the Sandbox subscription which is outside the Prod hierarchy. This leverages Azure RBAC inheritance, where roles assigned at a management group propagate to all child subscriptions and resource groups, meeting the requirement for a single assignment that covers all Prod workloads without granting access to Sandbox.

Exam trap

The trap here is that candidates often choose subscription-level assignments (Option D) because they think it's more precise, but they miss the requirement for future resources and the efficiency of a single management group assignment that automatically covers new subscriptions.

Why the other options are wrong

A

Assigning Reader at the Corp management group would grant read access to all subscriptions under Corp, including Sandbox, which violates the requirement that OpsGroup must not have access to Sandbox.

C

Assigning Reader at a single resource group in AppSub1 would only grant read access to that specific resource group, not to all current and future resources across all three Prod subscriptions as required.

D

Assigning Reader at each subscription individually would grant access to the three Prod subscriptions, but it would not cover future subscriptions added to the Prod management group, violating the requirement for future resources.

26
MCQmedium

A company wants development and production workloads for the same application to have separate budgets, separate subscription administrators, and different access controls. The central IT team still wants to apply the same security policies to both environments. What is the best design?

A.Use one subscription and separate the environments with tags only
B.Use one management group and two resource groups, one for dev and one for prod
C.Create a separate subscription for dev and prod, then place both subscriptions under the same management group
D.Put production in a management group and development in a resource group
AnswerC

Separate subscriptions create independent billing scopes, quota limits, and RBAC administration boundaries, so production and development can each have their own Owner, budget, and outage isolation. Placing both subscriptions under the same management group lets you inherit Azure Policy, Azure RBAC, and tag governance centrally, ensuring consistent compliance and tagging without merging the dev and prod administrative or cost boundaries. This reflects the Azure best practice of using subscriptions as isolation boundaries and management groups as policy and governance containers.

Why this answer

It uses separate subscriptions for development and production, which provides independent budget tracking, subscription-level role assignments, and separate administrators. Placing both subscriptions under the same management group allows the central IT team to apply consistent Azure Policy and RBAC security policies across both environments via the management group hierarchy, ensuring governance without compromising isolation.

Exam trap

The trap here is that candidates often confuse resource groups with management groups, thinking that resource groups can provide the same policy inheritance and administrative isolation as subscriptions, but resource groups lack subscription-level billing separation and independent RBAC administration.

Why the other options are wrong

A

Tags alone cannot enforce separate budgets, subscription administrators, or access controls; they are metadata only and do not provide administrative isolation or separate billing.

B

Resource groups cannot enforce separate budgets, subscription administrators, or access controls; they share the same subscription-level policies and RBAC. Management groups provide policy inheritance, but this option lacks separate subscriptions for independent administration.

D

Putting production in a management group and development in a resource group is invalid because management groups and resource groups are hierarchical containers at different levels; you cannot place a resource group inside a management group in this manner, and it does not provide separate subscription-level administration or budgets.

27
MCQmedium

An organization wants to enforce two governance controls on all subscriptions under a management group: only approved Azure regions can be used, and every resource must have a costCenter tag. Central IT wants one assignment that can grow as more controls are added later. What should they use?

A.A single Azure Policy assignment that contains both requirements as separate policy rules.
B.An initiative assigned at the management group scope.
C.A role assignment at the management group scope.
D.A resource lock applied to each subscription.
AnswerB

An initiative assigned at the management group scope is the correct approach because an initiative groups multiple policy definitions under a single assignment, enabling reusable governance baselines. Assigning it at the management group scope applies both controls to every subscription beneath that management group, and because the subscription is in the scope, the policy definitions inherit down the hierarchy. This structure centralizes compliance enforcement, allows parameterization, and simplifies reporting across the entire enterprise without needing per-subscription assignments.

Why this answer

An initiative (policy set) allows grouping multiple policy definitions into a single assignment, which can be assigned at the management group scope to enforce both the allowed regions and costCenter tag requirements. This approach supports future growth by simply adding new policy definitions to the initiative without creating separate assignments. Assigning at the management group scope ensures the controls cascade to all child subscriptions.

Exam trap

The trap here is confusing a single policy assignment with an initiative assignment, as candidates often think multiple rules can be added to one policy definition, but Azure Policy requires an initiative to combine separate policy definitions.

Why the other options are wrong

A

A single policy assignment with separate rules cannot be easily extended with new controls; initiatives (policy sets) are designed to group multiple policies for scalable governance.

C

Role assignments grant permissions to users or services, not enforce governance controls like allowed regions or required tags. They cannot enforce resource configuration or compliance.

D

Resource locks prevent accidental deletion or modification but cannot enforce allowed regions or required tags. They are not a governance control for compliance rules.

28
MCQmedium

A contractor needs read-only access to resources in one application resource group. The access must be removed immediately when the contractor is removed from the contractor team. What is the best access strategy?

A.Assign Reader directly to the contractor's user account at the subscription scope.
B.Assign Reader to the Entra ID contractor group at the resource group scope.
C.Assign Contributor to the contractor group at the resource group scope.
D.Assign Reader to the contractor group at the management group scope.
AnswerB

This is the best practice because Azure RBAC supports group-based assignments, and scope should be as narrow as possible. Assigning Reader to the contractor group at the resource group gives the team exactly the access needed and ensures removal from the group immediately revokes access through group membership changes. It is easier to audit and manage than assigning permissions to individual contractor accounts.

Why this answer

Assigning the Reader role to the Entra ID contractor group at the resource group scope ensures that all members of the group inherit read-only access to resources within that specific resource group. When a contractor is removed from the Entra ID group, their access is immediately revoked because Azure RBAC evaluates group membership dynamically at authentication time. This approach follows the principle of least privilege and enables centralized access management via group-based assignments.

Exam trap

The trap here is that candidates often choose a broader scope (subscription or management group) thinking it simplifies management, but they overlook the requirement to restrict access to only one resource group, which is a classic Azure RBAC scope misunderstanding.

Why the other options are wrong

A

Assigning Reader at the subscription scope grants read-only access to all resource groups in the subscription, which violates the requirement of limiting access to only one application resource group. Additionally, assigning directly to the user account does not leverage group-based access, making immediate removal upon contractor departure less efficient.

C

Contributor provides write/delete permissions, exceeding the required read-only access. The question explicitly requires read-only access, making Contributor inappropriate.

D

Assigning Reader at the management group scope grants read-only access to all subscriptions and resource groups under that management group, which is broader than the required single application resource group. It also does not ensure immediate removal when the contractor is removed from the contractor team, as the assignment is at the management group level, not tied to the group.

29
MCQeasy

Based on the exhibit, a compliance team must read all current and future resources in every subscription under the Corp management group. Where should you assign the Reader role?

A.Assign Reader at the RG-Finance resource group scope.
B.Assign Reader at the Corp management group scope.
C.Assign Reader separately at each subscription scope.
D.Assign Reader only at the individual resource scope.
AnswerB

This scope covers all subscriptions currently under Corp and any subscriptions added later beneath that management group.

Why this answer

Assigning the Reader role at the Corp management group scope applies the role to all current and future subscriptions and resource groups within that management group hierarchy. This is because Azure RBAC roles assigned at a management group scope are inherited by all child management groups, subscriptions, and resources, ensuring the compliance team can read all resources across the entire Corp hierarchy without needing separate assignments.

Exam trap

The trap here is that candidates often think they must assign roles at the subscription or resource group level for granularity, overlooking that management group scope provides automatic inheritance to all child scopes, which is the most efficient way to grant permissions across an entire hierarchy.

Why the other options are wrong

A

Assigning Reader at the RG-Finance resource group scope would only grant read access to resources within that specific resource group, not to all current and future resources in every subscription under the Corp management group. The requirement is for all subscriptions under Corp, which is a broader scope.

C

Assigning Reader separately at each subscription scope would not cover future subscriptions added under the Corp management group, violating the requirement to read all current and future resources.

D

Assigning Reader at the individual resource scope would require manual assignment for every resource, failing to cover future resources and violating the requirement to read all current and future resources across all subscriptions under Corp.

30
MCQeasy

Based on the exhibit, the team must prevent accidental deletion of a resource group, but administrators still need to update settings on resources inside it. Which lock should you apply?

A.Apply no lock and rely on RBAC alone.
B.Apply a ReadOnly lock to RG-Prod.
C.Apply a CanNotDelete lock to RG-Prod.
D.Apply a Contributor role assignment to RG-Prod.
AnswerC

CanNotDelete prevents accidental deletion while still allowing normal update operations on existing resources in the scope.

Why this answer

Applying a CanNotDelete lock to RG-Prod prevents the resource group from being deleted while still allowing administrators to update settings on resources inside it. This lock type blocks delete operations but permits read and update operations, which aligns with the requirement to prevent accidental deletion without restricting management changes.

Exam trap

The trap here is that candidates often confuse CanNotDelete with ReadOnly, mistakenly thinking that preventing deletion requires blocking all write operations, but CanNotDelete specifically targets delete operations while allowing updates.

Why the other options are wrong

A

Relying solely on RBAC does not prevent accidental deletion of the resource group; a user with delete permissions (e.g., Contributor) could still delete it. The question requires a lock to block deletion.

B

A ReadOnly lock prevents any changes to resources, including updates to settings, which contradicts the requirement that administrators still need to update settings on resources inside the resource group.

D

A Contributor role assignment allows users to manage resources, including deletion, which does not prevent accidental deletion of the resource group.

31
MCQeasy

Based on the exhibit, which Azure construct should the administrator create to group these related policy rules into one assignment?

A.Azure Policy initiative
B.Resource lock
C.Azure RBAC custom role
D.Policy exemption
AnswerA

An initiative groups multiple policy definitions into one assignment, which is ideal when the organization wants a single governance package at management group scope. This makes deployment and compliance tracking simpler than assigning each policy separately.

Why this answer

An Azure Policy initiative is a collection of policy definitions designed to group related policies into a single assignable unit. This allows the administrator to apply multiple policy rules together for consistent governance across resources, which is exactly what the question describes.

Exam trap

The trap here is confusing a policy initiative with a policy exemption, as both involve policy grouping, but only an initiative groups rules for assignment, while an exemption removes resources from evaluation.

Why the other options are wrong

B

Resource locks prevent accidental deletion or modification of resources, but they do not group policy rules into an assignment. The question asks for grouping related policy rules, which is the purpose of an Azure Policy initiative.

C

Azure RBAC custom roles define permissions for access control (who can do what), not grouping policy rules. The question asks for grouping policy rules into one assignment, which is the purpose of an Azure Policy initiative, not a custom role.

D

A policy exemption is used to exclude a specific resource or scope from an existing policy assignment, not to group multiple policy rules into a single assignment.

32
Multi-Selecthard

A policy initiative is assigned at the Corp management group to enforce allowed locations and required tags. A new subscription is added under Corp later. Which two statements are true? Select two.

Select 2 answers
A.The new subscription is automatically in scope because the assignment is at the management group.
B.The initiative must be copied to every resource group in the new subscription before it takes effect.
C.Existing noncompliant resources appear in Azure Policy compliance, but they are not changed until remediation runs.
D.The initiative changes RBAC so users lose read access to the subscription.
E.Compliance results are only visible in Activity Log, not in Azure Policy.
AnswersA, C

Because the initiative is assigned to the corp management group, the assignment applies to that management group and all of its descendant scopes (child management groups, subscriptions, resource groups, and resources). When a new subscription is created under corp, it immediately falls within the assignment's scope, so the policy definitions are enforced and evaluated without any extra step. This inheritance is a fundamental characteristic of Azure Policy and is applied continuously as subscriptions are added or moved.

Why this answer

Azure Policy assignments at a management group scope are inherited by all child subscriptions, including new ones added later. When the Corp management group has the initiative assigned, any subscription under Corp automatically falls within the policy's evaluation scope without requiring manual re-assignment.

Exam trap

The trap here is that candidates often assume new subscriptions or resources are not automatically covered by a management group policy assignment, or they confuse policy enforcement with RBAC changes, leading them to select options B or D.

Why the other options are wrong

B

Policy assignments at the management group scope automatically apply to all child subscriptions and resource groups; there is no need to copy the initiative to each resource group.

D

Azure Policy initiatives do not modify Azure RBAC permissions. They evaluate and enforce compliance rules but never change role assignments or access rights.

E

Compliance results are visible in Azure Policy's Compliance blade, not only in Activity Log. Activity Log records policy events, but the main compliance view is in Azure Policy.

33
MCQmedium

Based on the exhibit, which identity approach should be used so all three virtual machines can reuse the same Azure access without sharing secrets?

A.Assign a system-assigned managed identity to each VM.
B.Use a user-assigned managed identity and attach it to all three VMs.
C.Create a storage account access key and place it in each VM's application settings.
D.Create a separate SAS token for each VM and rotate it manually.
AnswerB

A user-assigned managed identity is the right fit when multiple resources need the same Azure identity. It is created as a standalone resource and can be attached to all three VMs, so the access model remains consistent even if a VM is reimaged or replaced. This also avoids storing storage keys, passwords, or connection strings in the application or operating system.

Why this answer

A user-assigned managed identity is a standalone Azure resource that can be assigned to multiple Azure VMs, allowing all three VMs to authenticate to Azure services (e.g., Azure Storage, Key Vault) using the same identity without sharing any secrets. This approach eliminates the need to manage or rotate credentials, as the identity is managed entirely by Azure AD and tokens are obtained via the Azure Instance Metadata Service (IMDS) endpoint.

Exam trap

The trap here is that candidates often confuse system-assigned and user-assigned managed identities, incorrectly assuming that system-assigned identities can be shared across multiple VMs, when in fact only user-assigned identities support multi-VM assignment.

Why the other options are wrong

A

System-assigned managed identities are tied to a single VM and cannot be shared across multiple VMs. The question requires a single identity reused by all three VMs, which user-assigned managed identities support.

C

Storage account access keys provide full control over the storage account and must be shared or stored in each VM's application settings, violating the requirement to avoid sharing secrets. They also do not support granular, identity-based access for individual VMs.

D

SAS tokens must be stored and rotated manually, which violates the requirement to 'reuse the same Azure access without sharing secrets.' They are per-resource tokens that cannot be shared across VMs without exposing secrets.

34
Multi-Selecteasy

An operations team wants to label resources by Department and Environment so they can search and report on ownership across many resource groups. Which two statements are correct? Select two.

Select 2 answers
A.Tags are key-value pairs that can be applied to resources and resource groups.
B.Tags help organize and filter resources, but they do not grant access.
C.A ReadOnly lock is the best way to record department ownership.
D.Tags automatically encrypt the data in a resource.
E.Tags replace Azure Policy when compliance must be enforced.
AnswersA, B

Tags are key-value pairs that can be applied to resources and resource groups. This is the fundamental definition: each tag consists of a name and a value, and you can attach them to any Azure resource or resource group at creation or after. They are stored as plain metadata alongside the resource and are commonly used for cost allocation, environment identification, and organizational grouping, which makes them the appropriate tool for labeling resources by department.

Why this answer

Azure tags are indeed key-value pairs that can be applied to resources and resource groups. This allows the operations team to label resources with metadata like Department and Environment, enabling efficient searching, filtering, and reporting across multiple resource groups without affecting resource functionality.

Exam trap

The trap here is that candidates often confuse Azure tags with access control or compliance enforcement, mistakenly thinking tags can replace Azure Policy or locks, when in fact tags are purely for organization and metadata.

Why the other options are wrong

C

A ReadOnly lock prevents modifications to a resource but does not record ownership; tags are used for metadata like department and environment.

D

Tags do not encrypt data; they are metadata key-value pairs used for organizing resources. Encryption is handled by Azure Storage Service Encryption, Azure Disk Encryption, or other dedicated services.

E

Tags are metadata labels, not enforcement mechanisms; Azure Policy is used for compliance enforcement, not tags.

35
MCQmedium

An administrator assigns Contributor at the RG-Apps resource group scope and Reader at the subscription scope. A developer opens a VM inside RG-Apps and can change its settings, but a different VM in RG-Shared is read-only. Which statement best explains this behavior?

A.The VM in RG-Apps has a direct Contributor assignment that does not apply elsewhere.
B.The VM in RG-Apps inherited Contributor from the resource group, while RG-Shared only inherits Reader.
C.Reader always overrides Contributor when both roles exist in the same subscription.
D.Azure Policy is granting write access only inside RG-Apps because the subscription has no policy.
AnswerB

RBAC permissions are inherited from higher scopes to lower scopes. When Contributor is assigned to the RG-Apps resource group, all resources within, including the VM, inherit that role at that scope. RG-Shared, being outside that scope, only gets the subscription-level Reader assignment, so its resources don't receive Contributor. This additive inheritance explains why the VM has Contributor effective access.

Why this answer

Role assignments in Azure are inherited from higher scopes (subscription, management group) down to lower scopes (resource group, resource). The developer has Reader at the subscription scope, which is inherited by all resource groups, including RG-Shared. However, the Contributor assignment at the RG-Apps resource group scope overrides the inherited Reader for that specific resource group, granting write access to VMs within RG-Apps.

RG-Shared has no direct role assignment, so it only inherits the subscription-level Reader, making its VMs read-only.

Exam trap

The trap here is that candidates often confuse inheritance with direct assignments, thinking that a role at a higher scope (subscription) always overrides a role at a lower scope (resource group), when in fact RBAC combines permissions additively and the most permissive role at the most specific scope wins.

Why the other options are wrong

A

The VM in RG-Apps does not have a direct Contributor assignment; it inherits Contributor from the resource group scope. The behavior is explained by inheritance, not direct assignment.

C

In Azure RBAC, roles are additive and inherited; Reader at subscription scope does not override Contributor at resource group scope. The VM in RG-Shared is read-only because it only inherits Reader from the subscription, not because Reader overrides Contributor.

D

Azure Policy does not grant write access; it enforces rules (e.g., tagging, locations). The developer's ability to change settings in RG-Apps is due to RBAC role inheritance, not policy.

36
MCQmedium

Three application VMs in different resource groups must use the same Azure identity to read blobs from a storage account. The identity must continue to work if the VMs are redeployed. What should you use?

A.A system-assigned managed identity on each VM
B.A user-assigned managed identity
C.A shared access signature stored in a configuration file
D.The local Administrator account on each VM
AnswerB

A user-assigned managed identity can be attached to multiple VMs and survives VM redeployment.

Why this answer

A user-assigned managed identity is the correct choice because it is a standalone Azure resource that can be assigned to multiple VMs across different resource groups. It persists independently of the VM lifecycle, so it continues to work even if the VMs are redeployed, and it can be used to authenticate to Azure Storage for blob read operations via Azure AD.

Exam trap

The trap here is that candidates often choose a system-assigned managed identity (Option A) because they assume it can be shared, but it is per-resource and cannot be assigned to multiple VMs across resource groups.

Why the other options are wrong

A

System-assigned managed identities are tied to each VM's lifecycle and cannot be shared across multiple VMs in different resource groups. If the VMs are redeployed, each VM would get a new identity, breaking the shared access requirement.

C

A shared access signature (SAS) stored in a configuration file does not persist across VM redeployments because the file is lost when the VM is deallocated, and it cannot be shared across multiple VMs in different resource groups without manual management.

D

The local Administrator account is a static credential tied to each VM, not an Azure identity. It cannot be used to authenticate to Azure Storage across multiple VMs, and it does not persist across redeployments if the VM is reimaged or recreated.

37
MCQmedium

You need to ensure that all newly created resource groups in a subscription automatically inherit the CostCenter tag with a fixed value, even if the creator forgets to add it. Which Azure Policy effect should you use?

A.Audit
B.Deny
C.Modify
D.Disabled
AnswerC

The Modify effect is the correct choice because it actively corrects non-compliant resources by automatically adding or updating the required tag on any new resource group during deployment. It uses a managed identity and remediation tasks to apply the tag idempotently, ensuring all future resource groups are compliant without blocking their creation. Unlike Deny, it doesn't impede operations, and unlike Audit, it doesn't merely report noncompliance.

Why this answer

The Modify effect is correct because it allows Azure Policy to automatically add or alter tags on resources or resource groups during creation or update, ensuring the CostCenter tag with a fixed value is applied even if the creator omits it. Unlike Audit or Deny, Modify actively remediates non-compliant resources by appending the required tag, making it ideal for enforcing mandatory inheritance without blocking deployment.

Exam trap

The trap here is that candidates often choose Deny thinking it enforces compliance by blocking non-tagged resources, but they overlook that the question requires automatic inheritance, not rejection, making Modify the only effect that actively adds the missing tag.

Why the other options are wrong

A

Audit only logs non-compliance but does not automatically add the missing tag, so newly created resource groups would not inherit the CostCenter tag.

B

Deny prevents creation of resources that don't meet a condition, but it cannot automatically add a missing tag; it would block the resource group creation entirely if the tag is missing, which is not the requirement.

D

The 'Disabled' effect turns off the policy and does not enforce any behavior, so it cannot ensure that the CostCenter tag is automatically inherited on new resource groups.

38
Multi-Selecthard

A management group named Corp contains subscription Sales. RG-App is in Sales and contains several virtual machines. The Auditors group must read every resource in Sales, including resources in future resource groups created under that subscription. The ServerOps group must be able to start, stop, and restart only the virtual machines in RG-App. Which two role assignments should the administrator configure? Select two.

Select 2 answers
A.Assign Reader to Auditors at the Sales subscription scope.
B.Assign Reader to Auditors at the RG-App resource group scope.
C.Assign Virtual Machine Contributor to ServerOps at the RG-App resource group scope.
D.Assign Virtual Machine Contributor to ServerOps at the Sales subscription scope.
E.Assign Owner to ServerOps at the RG-App resource group scope.
AnswersA, C

The Reader role at the subscription scope grants read-only access to all resource groups and resources within the Sales subscription, including current and future resources. Since auditors require visibility across the entire subscription, this scope satisfies the requirement without granting write permissions. It also covers any other resource groups that may exist alongside RG-App.

Why this answer

Assigning the Reader role to the Auditors group at the Sales subscription scope grants read access to all resources within that subscription, including any future resource groups and resources created under it. This meets the requirement that Auditors must read every resource in Sales, including those in future resource groups.

Exam trap

The trap here is that candidates often assign roles at too broad a scope (e.g., subscription) for ServerOps, thinking it simplifies management, or assign too permissive a role like Owner, not realizing that Virtual Machine Contributor is the precise built-in role for VM start/stop/restart operations.

Why the other options are wrong

B

Assigning Reader at RG-App scope would not grant read access to resources in future resource groups under the Sales subscription, as required by the question.

D

Assigning Virtual Machine Contributor at the Sales subscription scope grants ServerOps start, stop, and restart permissions on all VMs in the subscription, not just those in RG-App, violating the requirement to limit permissions to RG-App.

E

Owner grants full control, including permission to assign roles and delete resources, which exceeds the requirement to only start, stop, and restart virtual machines. This violates the principle of least privilege.

39
Multi-Selectmedium

Three application VMs in separate resource groups must use the same identity to read a configuration endpoint. The identity must keep working if any one VM is deleted and later recreated. Which three actions should the administrator take? Select three.

Select 3 answers
A.Create a user-assigned managed identity that can exist independently of any single VM.
B.Attach the same user-assigned managed identity to each of the three VMs.
C.Grant the user-assigned identity the minimum required RBAC role on the target configuration endpoint.
D.Use a system-assigned managed identity on only one VM and copy its access token to the other two VMs.
E.Store one application password locally on each VM and use it instead of Azure-managed identities.
AnswersA, B, C

A user-assigned managed identity has its own lifecycle and is not deleted when a VM is removed. That makes it the correct choice when multiple VMs need the same identity and the identity must survive VM recreation.

Why this answer

A user-assigned managed identity is an Azure resource that exists independently of any VM, unlike a system-assigned identity which is tied to the VM lifecycle. This independence ensures the identity persists even when a VM is deleted and recreated, maintaining continuous access to the configuration endpoint. By creating a user-assigned managed identity, the administrator decouples the identity from any single VM, satisfying the requirement that the identity must keep working after VM deletion and recreation.

Exam trap

The trap here is that candidates often confuse user-assigned and system-assigned managed identities, incorrectly assuming that a system-assigned identity can be shared across VMs or that its access token can be copied, when in fact system-assigned identities are per-resource and cannot survive resource deletion.

Why the other options are wrong

D

System-assigned managed identities are tied to a single VM's lifecycle; deleting and recreating the VM would break the identity, and copying access tokens is insecure and not supported for cross-VM use.

E

Storing an application password locally on each VM violates the requirement for the identity to keep working if a VM is deleted and recreated, as the password would be lost or require manual reconfiguration. It also introduces security risks and does not use Azure-managed identities.

40
MCQmedium

Based on the exhibit, the help desk team must be able to restart virtual machines in RG-App, but they must not be able to create, delete, or resize VMs. What is the best action?

A.Assign Virtual Machine Contributor to HelpDeskGroup at the subscription scope.
B.Assign Contributor to HelpDeskGroup at RG-App.
C.Create a custom RBAC role that allows VM start, restart, and deallocate actions, then assign it at RG-App.
D.Assign Owner to HelpDeskGroup at RG-App and use Azure Policy to block unwanted changes.
AnswerC

A custom role is the best fit when no built-in role is narrow enough. Assigning it at the resource group scope limits the permission to RG-App, while the role itself can be restricted to only the VM operational actions that the help desk needs.

Why this answer

The help desk team needs only specific actions (start, restart, deallocate) without the ability to create, delete, or resize VMs. The built-in Virtual Machine Contributor role includes write permissions that allow creating and deleting VMs, so a custom RBAC role that explicitly grants only the required actions (Microsoft.Compute/virtualMachines/start/action, restart/action, deallocate/action) and is assigned at the RG-App scope meets the requirement precisely.

Exam trap

The trap here is that candidates often assume the built-in Virtual Machine Contributor role is the correct choice because it sounds restrictive, but it actually includes write permissions that allow VM creation and deletion, making a custom role necessary for the exact set of actions required.

Why the other options are wrong

A

Assigning Virtual Machine Contributor at subscription scope grants permission to create, delete, and resize VMs across all resource groups, which exceeds the required restriction of preventing these actions.

B

The Contributor role at RG-App includes write and delete permissions on all resources, which would allow the help desk team to create, delete, or resize VMs, violating the requirement.

D

Assigning Owner at RG-App grants full control, including the ability to create, delete, and resize VMs, which violates the requirement to prevent those actions. Azure Policy can block some changes but does not restrict RBAC permissions, so the help desk would still have excessive rights.

41
Multi-Selectmedium

An operations team must be able to restart virtual machines in one resource group. They must not create, delete, resize, or change disks or networking. Which two actions should the administrator take? Select two.

Select 2 answers
A.Create a custom RBAC role that includes only read and restart actions for virtual machines.
B.Assign the Virtual Machine Contributor role to the operations group.
C.Assign the custom role to the operations group at the resource group scope.
D.Create an Azure Policy assignment that denies VM creation in the resource group.
E.Apply a ReadOnly lock to the resource group.
AnswersA, C

A custom RBAC role can be defined with precisely the needed permissions. The role definition JSON includes the actions Microsoft.Compute/virtualMachines/read and Microsoft.Compute/virtualMachines/restart/action, which together allow the team to view and restart VMs without any other management capabilities such as creating, deleting, or modifying them. Because no built-in role offers only these two actions, creating a custom role is necessary to achieve least privilege.

Why this answer

A custom RBAC role can be defined to include only the 'Microsoft.Compute/virtualMachines/read' and 'Microsoft.Compute/virtualMachines/restart/action' permissions, which precisely limits the operations team to reading and restarting VMs without allowing create, delete, resize, or disk/network changes. This aligns with the principle of least privilege.

Exam trap

The trap here is that candidates often confuse Azure Policy (which enforces compliance rules) with RBAC (which controls permissions), or mistakenly think a ReadOnly lock still allows restart actions, not realizing that restart is a write operation in the Azure Resource Manager.

Why the other options are wrong

B

The Virtual Machine Contributor role allows creating, deleting, and resizing VMs, as well as modifying disks and networking, which exceeds the required permissions of only restarting VMs.

D

Azure Policy assignments deny or audit resource creation based on rules, but they do not grant or restrict actions for existing resources like restarting VMs. The question requires a role-based solution to allow restarting VMs, not a policy to deny creation.

E

A ReadOnly lock prevents any changes to resources, including restarting VMs, which requires write access. The operations team needs to restart VMs, so this lock would block their required action.

42
MCQmedium

You need to prevent accidental deletion of a production resource group while still allowing administrators to update resources inside it. What should you apply to the resource group?

A.A ReadOnly lock
B.A CanNotDelete lock
C.A deny assignment
D.A budget alert
AnswerB

A CanNotDelete lock is an Azure Resource Manager lock at the resource group level that denies any delete operation against the resource group or its child resources, while still allowing read and update operations. This means administrators can modify configuration or deploy updates, but the lock prevents accidental deletion by any user, including Owners, unless the lock itself is explicitly removed first.

Why this answer

A CanNotDelete lock (B) prevents the resource group from being deleted while still allowing all operations (including updates) on resources within it. This is the correct choice because the requirement is to block accidental deletion of the entire resource group, not to restrict modifications to its resources.

Exam trap

The trap here is that candidates often confuse a ReadOnly lock with a CanNotDelete lock, assuming that preventing deletion requires a more restrictive lock, but the correct lock is the one that specifically targets deletion only.

Why the other options are wrong

A

A ReadOnly lock prevents all modifications, including updates to resources inside the resource group, which contradicts the requirement to allow administrators to update resources.

C

A deny assignment blocks all actions that are not explicitly allowed, which would prevent administrators from updating resources inside the resource group. The question requires allowing updates while only preventing deletion, so a CanNotDelete lock is appropriate.

D

A budget alert only sends notifications when spending exceeds thresholds; it does not prevent deletion of the resource group or its resources.

43
MCQhard

A shared resource group contains a VM and a storage account used by payroll. Administrators still need to modify configuration and apply patches, but accidental deletion of either resource must be prevented. What should the administrator apply?

A.A ReadOnly lock on the entire resource group.
B.A CanNotDelete lock on each resource.
C.A policy assignment that denies delete operations on the resource group.
D.A management group with a deny assignment.
AnswerB

A CanNotDelete lock on each resource blocks Azure Resource Manager delete calls for the VM and the storage account while still permitting read and update operations, such as resizing the VM or modifying storage configuration. Per-resource locks are narrower than a resource-group-wide lock, limiting the protection to exactly the two assets that need it and avoiding unintended restrictions on other resources in the shared group. This directly satisfies the requirement because it prevents accidental deletion without freezing normal management-plane activities.

Why this answer

A CanNotDelete lock prevents the deletion of a resource while still allowing all other operations, including configuration modifications and patching. This meets the requirement of protecting the VM and storage account from accidental deletion while preserving administrative access for updates.

Exam trap

The trap here is that candidates often confuse resource locks with Azure Policy or RBAC, mistakenly thinking a policy or role assignment at the resource group scope will protect individual resources, when in fact locks must be applied directly to each resource to prevent its deletion.

Why the other options are wrong

A

A ReadOnly lock prevents all modifications, including patching and configuration changes, which are still required by administrators. The question explicitly states that administrators need to modify configuration and apply patches, so a ReadOnly lock is too restrictive.

C

A policy assignment that denies delete operations on the resource group does not prevent deletion of individual resources within the group; it only prevents deletion of the resource group itself. The question requires preventing deletion of the VM and storage account, not the group.

D

A management group with a deny assignment would apply to multiple subscriptions, not just the single resource group. It is overly broad and does not target the specific resources (VM and storage account) within that resource group.

44
MCQeasy

You need to assign the same RBAC role to 15 administrators so they can manage backups for several virtual machines. You want to minimize ongoing administrative effort when membership changes. What should you use?

A.A Microsoft Entra group and a single role assignment to the group.
B.A separate custom role assignment for each administrator.
C.A resource lock on every virtual machine.
D.A policy exemption for the administrators.
AnswerA

A Microsoft Entra group gives you a single identity object that can be scoped to a management group, subscription, or resource group. Assigning the RBAC role once to that group means all 15 administrators inherit the same permissions automatically, and future access changes are made by editing group membership rather than adding or removing individual role assignments. This supports least privilege and simplifies audits because the role assignment, role definition, and scope are all explicit.

Why this answer

Assigning a single RBAC role to a Microsoft Entra group allows you to manage permissions centrally. When membership changes, you only need to add or remove users from the group, and the role assignment automatically applies to the new members. This minimizes ongoing administrative effort compared to managing individual role assignments.

Exam trap

The trap here is confusing resource locks (which prevent changes) with RBAC role assignments (which grant permissions), leading candidates to incorrectly select option C as a way to control access.

Why the other options are wrong

B

Creating a separate custom role assignment for each administrator increases administrative effort because each membership change requires updating individual assignments, contradicting the goal of minimizing ongoing effort.

C

Resource locks prevent accidental deletion or modification of resources but do not grant permissions to manage backups. They are not a mechanism for assigning RBAC roles.

D

A policy exemption is used to exclude resources from Azure Policy evaluation, not to assign RBAC roles. It does not grant permissions to manage backups.

45
MCQmedium

Based on the exhibit, the production resource group must not be deleted during a change freeze, but administrators still need to update VM sizes and tag values. Which lock should you apply?

A.Apply a ReadOnly lock to RG-Prod.
B.Apply a CanNotDelete lock to RG-Prod.
C.Apply a lock to the subscription instead of the resource group.
D.Use Azure Policy with a deny effect to block deletes.
AnswerB

A CanNotDelete lock is the ideal choice because it specifically blocks deletion of the resource group and all contained resources while permitting every read and write operation, such as resizing VMs and updating tags. This directly satisfies the freeze mandate to prevent accidental removal without hindering routine management activities. The lock is also scoped and can only be removed by users with sufficient permissions, providing a strong, secure safeguard.

Why this answer

A CanNotDelete lock (B) prevents deletion of the resource group while allowing all other operations, including updating VM sizes and modifying tag values. This meets the requirement of blocking deletion during a change freeze without restricting administrative updates.

Exam trap

The trap here is that candidates often confuse ReadOnly locks with CanNotDelete locks, assuming that any lock will prevent updates, when in fact ReadOnly locks block all write operations while CanNotDelete locks only block deletion.

Why the other options are wrong

A

A ReadOnly lock prevents all write operations, including updating VM sizes and tag values, which the question requires administrators to be able to do.

C

Applying a lock to the subscription would prevent deletion of all resource groups in the subscription, including non-production ones, which is too restrictive and not required by the scenario that only targets the production resource group.

D

Azure Policy with a deny effect can block delete operations, but it is not a lock and does not prevent deletion of the resource group itself; it only enforces rules on resources within the group. The question specifically requires a lock that prevents deletion while allowing updates to VM sizes and tags, which is exactly what a CanNotDelete lock does.

46
MCQhard

A compliance team wants to bundle three policy definitions—allowed locations, required cost center tags, and approved VM sizes—so they can assign them together to a management group and review compliance in one place. Later they want to exempt one pilot subscription from the entire set for 60 days. What should they use?

A.A policy initiative at the management group scope.
B.A custom RBAC role with resource permissions for policy management.
C.A resource lock on the pilot subscription.
D.A separate management group for each of the three policy definitions.
AnswerA

A policy initiative is specifically designed to group multiple policy definitions into a single assignable unit at any scope, including a management group. By assigning the initiative at the management group scope, all descendant subscriptions and resource groups automatically inherit the bundled policies, and Azure Policy aggregates compliance results across every definition in the initiative. This gives the compliance team one consolidated view of whether all three definitions are being met, enabling centralized enforcement and reporting without needing to assign each policy definition separately.

Why this answer

A policy initiative (also called a policy set) allows you to group multiple policy definitions into a single, reusable bundle. By assigning the initiative at the management group scope, all three policies apply together to every subscription under that group. When the pilot subscription needs an exemption, you can create an exemption resource on that subscription for the entire initiative, specifying a 60-day expiration, which temporarily excludes it from all bundled policies while keeping compliance reporting unified.

Exam trap

The trap here is that candidates often confuse policy exemptions with resource locks or RBAC roles, thinking that locking a subscription or assigning permissions can bypass policy evaluation, when in fact only a policy exemption (or an explicit deny assignment override) can exclude a scope from compliance enforcement for a defined period.

Why the other options are wrong

B

A custom RBAC role with resource permissions for policy management does not bundle policy definitions or allow assigning them together to a management group; RBAC controls access to resources, not policy assignment.

C

A resource lock prevents deletion or modification of a subscription, but it does not bundle or assign policy definitions, nor does it allow exempting a subscription from policies for a specific duration.

D

Creating separate management groups for each policy definition does not bundle them into a single assignable unit; the compliance team needs to assign all three together, which requires an initiative (policy set), not separate management groups.

47
MCQmedium

During a change freeze, an administrator applies a lock to a resource group. Users can still read resource details, but attempts to update tags, resize a VM, or change an NSG fail. Which lock was applied?

A.CanNotDelete lock, because it blocks all updates but allows reading.
B.ReadOnly lock, because it blocks write operations while allowing read access.
C.Reader role assignment, because it removes edit permissions from the group.
D.Azure Policy audit assignment, because it reports changes without blocking them.
AnswerB

ReadOnly is the lock that allows users to view resources but prevents writes, including changes to tags, VM sizes, network rules, and many other configuration actions. This exactly matches the symptom described during a change freeze. It is a strong protection and should be used only when the organization truly wants to halt modifications.

Why this answer

The ReadOnly lock (option B) is correct because it explicitly blocks all write operations (including updates to tags, resizing a VM, or modifying an NSG) while allowing read operations. This matches the scenario where users can still read resource details but cannot perform any modifications.

Exam trap

The trap here is that candidates often confuse the CanNotDelete lock with blocking updates, when in fact it only prevents deletion, while the ReadOnly lock is the one that blocks all write operations including updates and modifications.

Why the other options are wrong

A

CanNotDelete lock blocks deletion but allows all other write operations, including updating tags, resizing VMs, and changing NSGs. The question states these updates fail, so a ReadOnly lock is required.

C

A Reader role assignment removes edit permissions but also blocks read access to resource details, which contradicts the scenario where users can still read resource details.

D

Azure Policy audit assignment only reports compliance of existing resources without blocking any actions, so it would not prevent updates to tags, VM resizing, or NSG changes.

48
Multi-Selecthard

A service desk must grant and revoke access to an internal application for a changing group of employees. The service desk must not receive any Azure subscription or resource permissions. Which two actions should you take? Select two.

Select 2 answers
A.Use a Microsoft Entra security group to represent application access.
B.Add the service desk as an owner of that security group.
C.Assign the service desk the Contributor role on the application resource group.
D.Assign the service desk the User Administrator directory role to manage the application users.
E.Create individual user assignments for every employee instead of using group-based access.
AnswersA, B

A Microsoft Entra security group acts as a logical container for application access: once the group is assigned to an enterprise application's Users and groups tab, every member automatically receives the application role, and membership changes take effect at the next provisioning cycle or token refresh. This approach centralizes access policy and lets you use both static and dynamic membership rules, making revocation as simple as removing a user from the group rather than editing application assignments individually.

Why this answer

Using a Microsoft Entra security group creates a stable access boundary for the application, and making the service desk an owner lets them add or remove members without touching Azure RBAC. That is the least-privilege way to delegate access administration. It keeps resource permissions out of the model, avoids tenant-wide admin roles, and supports frequent employee changes cleanly through group membership updates.

Why others are wrong: Contributor on a resource group gives Azure resource control, not just membership administration. User Administrator is a directory-wide role and is too broad for one application group. Individual user assignments defeat the goal of delegated membership management and create ongoing maintenance. The correct pattern is group-based access with delegated ownership.

Why the other options are wrong

C

Assigning the Contributor role on the application resource group grants the service desk permissions to manage Azure resources, violating the requirement that they must not receive any Azure subscription or resource permissions.

D

The User Administrator role grants permissions to manage all users in the directory, including resetting passwords and managing licenses, which exceeds the requirement that the service desk must not receive any Azure subscription or resource permissions. The question specifically asks for granting/revoking access to an internal application, not managing user accounts.

E

Creating individual user assignments for every employee is inefficient for a changing group; it requires manual updates for each user addition or removal, contradicting the need for a scalable, group-based approach.

49
MCQmedium

A web application is made up of several Azure resources that are deployed, updated, and retired together. The team wants one container for applying access control, tags, and deletion protection consistently to the whole application. What should they use?

A.A subscription dedicated to the application.
B.A resource group.
C.A management group.
D.A tag value that names the application.
AnswerB

A resource group is the standard lifecycle container for related Azure resources that are managed together. It lets administrators apply RBAC, tags, and locks to the application as a unit while keeping the workload separate from other applications. This is the most practical way to organize resources that are deployed and retired together.

Why this answer

A resource group is the correct container because it is a logical grouping of Azure resources that share the same lifecycle, allowing you to apply access control (RBAC), tags, and deletion protection (resource locks) consistently to all resources within the group. This aligns with the requirement to deploy, update, and retire resources together as a single unit.

Exam trap

The trap here is that candidates often confuse tags as a grouping mechanism for access control or deletion protection, but tags are purely metadata and cannot enforce RBAC or resource locks, whereas a resource group provides a true security and lifecycle boundary.

Why the other options are wrong

A

A subscription is a billing and management boundary, not a container for applying access control, tags, and deletion protection to a group of resources that are deployed together. Resource groups are designed for that purpose.

C

A management group is used to manage multiple subscriptions, not to group resources within a single subscription for access control, tagging, and deletion protection.

D

A tag value alone cannot enforce access control, apply deletion protection, or serve as a container for resources; tags are metadata labels, not management boundaries.

50
MCQmedium

An external consultant from another company needs read-only access to a resource group and must sign in with their own work account. What should be created in Microsoft Entra ID?

A.A member user account in the company tenant
B.A guest user account
C.A Microsoft 365 group
D.A service principal
AnswerB

A guest user account is the correct identity type for an external consultant because it enables Azure AD B2B collaboration: the consultant authenticates against their own home tenant (their company's IdP) and receives a guest identity in your tenant with a UserType of 'Guest'. This allows you to assign read-only access via role assignments like Reader at a specific scope, without creating separate credentials or requiring the consultant to become a member of your organization. Guest user accounts retain their external origin, support conditional access policies that respect the home tenant's MFA, and can be managed through Entra ID, making them the standard, least-privilege mechanism for cross-company collaboration.

Why this answer

B is correct because a guest user account in Microsoft Entra ID (formerly Azure AD) allows an external user from another organization to sign in using their own work account (via B2B collaboration) and be granted read-only access to a specific resource group. This leverages the existing identity provider of the external consultant, eliminating the need to create a separate identity in the company tenant.

Exam trap

The trap here is that candidates often confuse a guest user with a member user, thinking a new identity must be created in the tenant, but the key requirement is that the external consultant signs in with their own work account, which only a guest user (B2B collaboration) supports.

Why the other options are wrong

A

A member user account is for users within the company's own tenant, not for external consultants who need to sign in with their own work account. Guest user accounts (B2B collaboration) are designed for external users.

C

A Microsoft 365 group is used for collaboration and granting permissions to multiple users, not for providing external individual access. It cannot be used to give a specific external consultant read-only access to a resource group.

D

A service principal is an identity for applications or automated tools, not for individual users. The question requires a user account for an external consultant to sign in with their own work account, which is a B2B collaboration scenario, not an application identity.

51
MCQeasy

Based on the exhibit, an automation account must restart virtual machines and read network interface settings in RG-App. Built-in roles are too broad because they also allow actions the team does not want. What should the administrator do?

A.Assign the Reader role at RG-App, because reading permissions automatically include restart actions.
B.Create a custom role with only the required read and restart actions, then assign it at RG-App.
C.Assign Virtual Machine Contributor at the subscription scope so the automation account can reach all resources.
D.Create a management group and move RG-App into it so only the needed actions are exposed.
AnswerB

A custom role is the correct solution when built-in roles are broader than needed. By defining only the required VM restart action and read permissions for the VM and network interface, the administrator can keep permissions tightly limited to RG-App and avoid unnecessary capabilities such as deletion or network changes.

Why this answer

Built-in roles like Virtual Machine Contributor include actions beyond the required scope (e.g., write/delete operations), which the team wants to avoid. A custom role allows precise definition of only the needed actions: 'Microsoft.Compute/virtualMachines/restart/action' and 'Microsoft.Network/networkInterfaces/read'. Assigning this custom role at the RG-App scope ensures least privilege without exposing broader permissions.

Exam trap

The trap here is that candidates assume built-in roles like Reader or Virtual Machine Contributor are 'close enough' and overlook the need for custom roles to exclude unwanted write/delete actions, or they confuse management groups with a mechanism for fine-grained action filtering.

Why the other options are wrong

A

The Reader role provides read-only access and does not include restart actions, so assigning it at RG-App would not allow the automation account to restart VMs.

C

Assigning Virtual Machine Contributor at the subscription scope grants broader permissions than needed, including actions like creating and deleting VMs, which violates the requirement to restrict actions to only restart and read network interfaces.

D

Creating a management group and moving RG-App into it does not restrict permissions; management groups are containers for organizing subscriptions and applying governance, not for scoping custom actions. The automation account still needs a role assignment with specific actions, which management groups do not provide.

52
MCQmedium

Based on the exhibit, which identity should be granted the Contributor role so access can be managed centrally as team members change?

A.Assign Contributor to each user account individually.
B.Assign Contributor to a Microsoft Entra security group that contains the team members.
C.Assign Contributor to a managed identity.
D.Assign Contributor to the management group that contains rg-app.
AnswerB

Assigning the Contributor role to a Microsoft Entra security group creates a single role assignment that covers all current and future team members. When you add or remove users from the group, their access to rg-app updates automatically because the group itself is the principal bound to the role. This avoids the administrative burden of editing multiple individual role assignments and follows the least privilege principle because the role is scoped exactly to the application's resource group.

Why this answer

Assigning the Contributor role to a Microsoft Entra security group that contains the team members allows access to be managed centrally. As team members join or leave, you simply add or remove them from the group, and their permissions update automatically without needing to modify role assignments for each individual user. This aligns with Azure RBAC best practices for centralized identity governance.

Exam trap

The trap here is that candidates often think assigning roles to individual users (Option A) is simpler or more direct, overlooking the centralized management and scalability benefits of using a security group, or they confuse managed identities (Option C) with user identities, not realizing managed identities are for Azure resources, not human users.

Why the other options are wrong

A

Assigning Contributor to each user individually does not allow centralized management of access as team members change; each new member would require a separate assignment, and removals would need manual updates.

C

A managed identity is an Azure AD identity used by Azure resources to authenticate to services without storing credentials, not for assigning roles to human team members. It cannot be used for central access management as team members change.

D

Assigning Contributor to the management group that contains rg-app would grant the role to all subscriptions and resource groups under that management group, not just to the specific team members. The question requires central management as team members change, which is best achieved via a security group, not a management group.

53
MCQmedium

Central IT wants to apply three related policy definitions—allowed Azure regions, required owner tag, and approved VM sizes—to all subscriptions in the Corp management group and report compliance as one package. What should the administrator create?

A.An initiative
B.A resource lock
C.A role assignment
D.A managed identity
AnswerA

An initiative groups multiple policy definitions into a single assignment and provides one compliance view for the set. That matches the requirement to apply several related governance controls together across the management group without managing each policy separately.

Why this answer

An initiative (also known as a policy set) in Azure Policy allows you to group multiple related policy definitions into a single package. By assigning the initiative to the Corp management group, all subscriptions under that management group inherit the three policies (allowed regions, required owner tag, approved VM sizes) as a bundle, and compliance is reported collectively for the entire initiative.

Exam trap

The trap here is that candidates may confuse a single policy definition with a policy initiative, or think that a resource lock or role assignment can enforce governance rules, when only an initiative can group multiple policies and report compliance as one package.

Why the other options are wrong

B

A resource lock prevents deletion or modification of resources but cannot group and assign multiple policy definitions across subscriptions for compliance reporting.

C

A role assignment grants permissions to an identity, not a collection of policy definitions. The question requires grouping policies into a single compliance package, which is achieved by an initiative, not a role assignment.

D

A managed identity is an Azure Active Directory identity for authenticating to Azure services, not for grouping policy definitions. It cannot bundle multiple policies into a single compliance package.

54
Multi-Selectmedium

A platform team must enforce two governance rules across every current and future subscription under a management group: only East US and West US deployments are allowed, and every resource must include an Environment tag. Which three actions should the administrator take? Select three.

Select 3 answers
A.Create a policy initiative that groups the governance requirements.
B.Assign the initiative at the management group scope.
C.Include both the allowed locations policy and the required Environment tag policy in the initiative.
D.Assign the policies separately to each existing subscription only.
E.Use an RBAC Contributor role to enforce region and tag compliance.
AnswersA, B, C

An Azure Policy initiative (policy set definition) is the correct container when multiple policy definitions must be deployed and evaluated together for a common governance goal. Rather than managing each definition as a separate assignment, an initiative holds a curated list of definitions that can be assigned at any scope, preserving a single compliance rollup and a shared parameter set. This avoids the fragmentation and maintenance overhead of tracking independent assignments that can drift out of sync.

Why this answer

A policy initiative (also known as a policy set) allows you to group multiple individual Azure Policy definitions into a single, reusable governance package. This simplifies assignment and ensures both the allowed locations and required tag policies are enforced together consistently across all subscriptions under the management group.

Exam trap

The trap here is that candidates often confuse RBAC with Azure Policy, mistakenly thinking a Contributor role can enforce compliance rules, when in fact RBAC controls who can act, while Azure Policy controls what is allowed.

Why the other options are wrong

D

Assigning policies separately to each existing subscription only fails to cover future subscriptions and does not enforce governance at the management group scope, which is required by the question.

E

RBAC roles control access permissions, not governance rules like allowed locations or required tags. To enforce such rules, Azure Policy is required, not RBAC.

55
MCQeasy

The finance team wants every resource created in one resource group to carry the same CostCenter tag automatically. They want to reduce manual entry and keep the tag value consistent. What should you configure?

A.Ask users to add the tag manually to every resource
B.Assign a Reader role to the finance team
C.Apply a CanNotDelete lock to the resource group
D.Use Azure Policy to inherit the CostCenter tag from the resource group
AnswerD

Azure Policy can enforce consistent tagging by inheriting a tag value from the resource group to child resources. This reduces manual work and helps ensure that new resources receive the same CostCenter value automatically. It is a governance control, so it is the right feature when the goal is standardization rather than access control.

Why this answer

Azure Policy can enforce tag inheritance from a resource group to all resources within it using the 'Inherit a tag from the resource group' built-in policy effect. This ensures the CostCenter tag is automatically applied to every new or existing resource without manual entry, maintaining consistency and reducing administrative overhead.

Exam trap

The trap here is confusing Azure Policy's tag inheritance with Azure RBAC roles or resource locks, as candidates often mistakenly think a Reader role or a lock can enforce tag consistency, when only Policy can automatically apply tags at scale.

Why the other options are wrong

A

Manual tagging does not reduce manual entry or ensure consistency; it relies on users to remember and correctly apply the tag every time, which contradicts the requirement for automation and consistency.

B

Assigning a Reader role to the finance team allows them to view resources but does not automatically apply or enforce tags on resources. It does not reduce manual entry or ensure tag consistency.

C

Applying a CanNotDelete lock prevents deletion of the resource group or its resources but does not automatically apply or enforce tags, so it does not meet the requirement to inherit the CostCenter tag.

56
Drag & Dropmedium

Order the steps to set up Azure Site Recovery for on-premises to Azure.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

The correct sequence for setting up Azure Site Recovery for on-premises to Azure is: create a Recovery Services vault, configure source and target settings, install the Mobility service agent on on-premises machines, enable replication, and then test failover. This order ensures prerequisites are met and replication is active before testing.

57
MCQhard

Your company wants to enforce a standard list of allowed Azure regions for all new resource deployments across several subscriptions. You need a centralized governance solution that can be assigned once and inherited by the child subscriptions. What should you use?

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

A management group policy assignment is inherited by child subscriptions and can restrict allowed locations centrally.

Why this answer

Azure Policy assigned at the management group scope is the correct centralized governance solution because it enforces a standard list of allowed Azure regions across all subscriptions under that management group. Policies at the management group level are inherited by all child subscriptions, ensuring consistent compliance without requiring individual assignment per subscription.

Exam trap

The trap here is confusing Azure Policy (which enforces rules on resource properties) with RBAC (which controls access permissions), leading candidates to incorrectly choose a custom RBAC role thinking it can restrict regions.

Why the other options are wrong

B

A custom RBAC role assigned at each subscription cannot enforce a list of allowed Azure regions because RBAC controls access to resources, not the configuration or compliance of resource deployments. It would require assigning the role to every subscription individually, lacking centralized inheritance.

C

A CanNotDelete lock prevents resource deletion but does not restrict which Azure regions can be used for new deployments. It cannot enforce a list of allowed regions.

D

Budget alerts only notify about spending thresholds; they do not enforce or restrict which Azure regions can be used for resource deployments.

58
MCQmedium

An operations team needs to start and deallocate every virtual machine in RG-App and read VM settings, but they must not be able to delete VMs or manage networking resources. What is the best Azure RBAC solution?

A.Assign the Virtual Machine Contributor role at the subscription scope
B.Create a custom role and assign it at the RG-App resource group scope
C.Assign the Reader role at the resource group scope
D.Assign the Owner role at the resource group scope
AnswerB

Creating a custom role allows you to define exactly the required operations, such as Microsoft.Compute/virtualMachines/start/action and Microsoft.Compute/virtualMachines/deallocate/action, along with read permission for the virtual machines. By assigning this role at the RG-App resource group scope, the operations team’s permissions are limited to that specific resource group, preventing any impact on other environments. This approach enforces least privilege: the team can start and deallocate VMs inside RG-App but cannot create, delete, or modify any other settings.

Why this answer

The required permissions—starting, deallocating, and reading VM settings—are not fully covered by any built-in role, and the custom role must be scoped to RG-App to avoid granting broader access. A custom role allows combining Microsoft.Compute/virtualMachines/start/action, Microsoft.Compute/virtualMachines/deallocate/action, and Microsoft.Compute/virtualMachines/read, while explicitly excluding delete and networking management actions. Assigning at the resource group scope ensures the permissions apply only to resources within RG-App.

Exam trap

The trap here is that candidates often choose Virtual Machine Contributor (Option A) because it seems to cover VM operations, but they overlook that it includes delete and networking management permissions, and that scoping at subscription level grants excessive access beyond the RG-App resource group.

Why the other options are wrong

A

The Virtual Machine Contributor role at subscription scope grants permission to manage VMs but also allows deleting VMs and managing networking resources, which violates the requirement to prevent deletion and networking management.

C

The Reader role allows reading VM settings but does not permit starting or deallocating VMs, which is required by the operations team.

D

The Owner role grants full access to all resources, including the ability to delete VMs and manage networking resources, which violates the requirement to prevent deletion and networking management.

59
MCQmedium

A storage account named stfinance01 contains critical data. Administrators must still be able to read and modify the data, but no one should be able to delete the storage account accidentally. What should you configure?

A.A CanNotDelete lock on stfinance01.
B.A ReadOnly lock on stfinance01.
C.A policy assignment that audits storage accounts.
D.An NSG rule denying outbound traffic from the subnet.
AnswerA

A CanNotDelete lock on the storage account scope blocks all Azure Resource Manager Delete calls against stfinance01 from any principal, even an Owner, until the lock is explicitly removed. This preserves the resource while leaving the control-plane and data-plane APIs open for permitted write updates, making it the right balance for critical data. The lock must be removed before deletion can succeed, creating an intentional two-step safeguard.

Why this answer

A CanNotDelete lock on stfinance01 prevents the storage account from being deleted while still allowing administrators to read and modify data. This lock type blocks delete operations at the resource level, but does not restrict read or write access, which is exactly what the requirement specifies.

Exam trap

The trap here is that candidates often confuse resource locks with role-based access control (RBAC) or network security groups, thinking a ReadOnly lock or NSG rule can prevent accidental deletion, but only a CanNotDelete lock directly blocks delete operations at the resource level.

Why the other options are wrong

B

A ReadOnly lock prevents all modifications, including reading and modifying data, which contradicts the requirement that administrators must still be able to read and modify data.

D

An NSG rule controls network traffic, not deletion prevention. The question is about preventing accidental deletion of a storage account, which is a management-plane operation, not a data-plane network issue.

60
MCQeasy

Based on the exhibit, three Azure virtual machines run the same automation script. The VMs are rebuilt often, and the team wants one identity that can be reused across all three VMs and retained even if a VM is replaced. Which identity type should the administrator use?

A.System-assigned managed identity on each VM, because each VM gets the same identity automatically.
B.A user-assigned managed identity attached to all three VMs.
C.An Azure AD guest user account, because the same account can sign in from every VM.
D.A shared storage account key, because it can be used by multiple VMs without extra configuration.
AnswerB

A user-assigned managed identity is independent of any single VM and can be attached to multiple resources. That makes it ideal when several VMs need the same identity and the identity must survive if a VM is deleted, rebuilt, or replaced during maintenance or scaling.

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. Unlike system-assigned identities, which are tied to the lifecycle of a single VM, a user-assigned identity persists independently and remains available even when VMs are rebuilt or replaced. This allows the automation script to use the same identity across all three VMs without needing to reconfigure permissions after each rebuild.

Exam trap

The trap here is that candidates confuse system-assigned and user-assigned managed identities, assuming that 'system-assigned' means the same identity is automatically shared across all VMs, when in fact each system-assigned identity is unique and tied to a single VM's lifecycle.

Why the other options are wrong

A

System-assigned managed identities are tied to the lifecycle of the VM; if the VM is deleted, the identity is also deleted. The requirement is for a single identity that persists even when VMs are replaced, which user-assigned managed identities provide.

C

An Azure AD guest user account is for external collaboration, not for providing an identity to Azure resources like VMs. It cannot be assigned to a VM for authentication to Azure services, and it does not support the scenario of being reused across VMs for automation scripts.

D

A shared storage account key provides access to Azure Storage, not an identity for VMs to authenticate to Azure resources. It cannot be used as an identity for VMs to access other Azure services like Key Vault or Azure SQL, and it does not support role-based access control (RBAC) assignments for the VMs themselves.

61
MCQmedium

A contractor should be able to view resources in one resource group for 30 days. When the contract ends, removing the contractor from the group should immediately remove access. What is the best approach?

A.Assign Reader directly to the contractor's user account at the resource group scope.
B.Assign Reader to an Entra ID group and add the contractor to that group.
C.Assign Reader at the subscription scope to the contractor so access is simple.
D.Create a CanNotDelete lock on the resource group until the contract ends.
AnswerB

Group-based role assignment is the best operational choice because access follows group membership rather than individual user objects. When the contractor is removed from the group, the RBAC assignment no longer applies to that person. It also makes temporary access easier to manage and reduces the risk of forgotten direct permissions.

Why this answer

Assigning the Reader role to an Entra ID group and adding the contractor as a member allows centralized access management. When the contractor is removed from the group, the role assignment is immediately revoked because Azure RBAC evaluates group membership at the time of authorization. This meets the 30-day requirement and ensures instant access removal upon contract termination.

Exam trap

The trap here is that candidates often confuse access control mechanisms, mistakenly thinking a resource lock (CanNotDelete) can restrict read access, or that assigning a role at a broader scope is simpler without considering the security implications of over-permissioning.

Why the other options are wrong

A

Assigning Reader directly to the contractor's user account at the resource group scope does not allow for immediate removal of access when the contract ends; you would need to manually remove the assignment, which can be delayed or overlooked.

C

Assigning Reader at the subscription scope grants access to all resource groups in the subscription, violating the requirement to limit access to only one resource group.

D

A CanNotDelete lock prevents resource deletion but does not control access; the contractor would still have access after the contract ends, and removing the lock does not remove access.

62
MCQmedium

Based on the exhibit, every resource created in RG-Finance must automatically receive CostCenter=FIN, but deployments should not fail if the tag is omitted. What should you configure?

A.Assign an Azure Policy with the Modify effect at RG-Finance.
B.Assign an RBAC role that forces all users to enter the tag.
C.Apply a ReadOnly lock to the resource group.
D.Use Azure Policy with a Deny effect at the management group.
AnswerA

Modify is the right policy effect when you want Azure to add or update a tag without failing the deployment. Assigning it at the resource group ensures the requirement applies only to RG-Finance and keeps the CostCenter value consistent.

Why this answer

The Azure Policy 'Modify' effect can automatically add the CostCenter=FIN tag to resources in RG-Finance without causing deployment failures if the tag is omitted. Unlike 'Deny', which blocks non-compliant deployments, 'Modify' uses a remediation task to append the missing tag after creation, ensuring compliance without disruption.

Exam trap

The trap here is confusing the 'Modify' effect with the 'Deny' effect; candidates often choose 'Deny' because it enforces compliance, but fail to notice the requirement that deployments should not fail if the tag is omitted.

Why the other options are wrong

B

RBAC roles cannot force users to enter tags; they control permissions, not resource properties. The requirement is to automatically add a tag without failing deployments, which RBAC cannot enforce.

C

A ReadOnly lock prevents modifications to resources but does not enforce tagging. The requirement is to automatically add a tag without failing deployments, which a lock cannot achieve.

D

The Deny effect would block resource creation if the tag is missing, causing deployments to fail, which contradicts the requirement that deployments should not fail if the tag is omitted.

63
Multi-Selecthard

RG-Prod is locked during a change freeze with a CanNotDelete lock. Administrators still need to keep the environment healthy without removing the lock. Which three actions can still be completed? Select three.

Select 3 answers
A.Change the size of an existing virtual machine in the resource group.
B.Delete an unused storage account from the resource group.
C.Add or update a tag on an existing resource.
D.Delete the entire resource group to rebuild it from scratch.
E.Create a new storage account in the locked resource group.
AnswersA, C, E

Changing the size of an existing virtual machine modifies the resource's properties through a PUT/PATCH operation. A CanNotDelete lock is scoped to DELETE calls only, so it does not intercept update requests. Therefore, resizing the VM is allowed even while the resource group is under a change freeze, because it is not a destructive action.

Why this answer

A CanNotDelete lock prevents deletion of resources but allows all management operations that do not involve deletion. Changing the size of an existing virtual machine is a modification operation, not a deletion, so it is permitted under this lock type.

Exam trap

The trap here is that candidates often confuse CanNotDelete with ReadOnly locks, thinking all modifications are blocked, or they assume creating new resources is prevented by a lock, but CanNotDelete only blocks deletion, not creation or modification.

Why the other options are wrong

B

A CanNotDelete lock prevents deletion of any resource within the resource group, including storage accounts. Therefore, deleting an unused storage account is blocked.

D

A CanNotDelete lock prevents deletion of the resource group and all resources within it. Deleting the entire resource group would violate the lock, so this action cannot be completed while the lock is in place.

64
MCQmedium

You need to prevent accidental deletion of a resource group while still allowing administrators to create and modify resources inside it. Which Azure lock should you apply?

A.ReadOnly
B.CanNotDelete
C.Delete lock
D.No lock and a budget alert
AnswerB

A CanNotDelete lock is the correct Azure resource lock level for this requirement. It blocks delete operations at the assigned scope (for example, the resource group) while still permitting read, update, and management operations on contained resources. This balances protection against accidental deletion with continued operational flexibility, and it overrides any permissions, including Owner, for the deletion action.

Why this answer

The CanNotDelete lock prevents deletion of the resource group while still allowing all operations (read, write, modify) on resources within it. This lock type is designed specifically to protect against accidental deletion without restricting administrative actions like creating or updating resources.

Exam trap

The trap here is that candidates confuse the CanNotDelete lock with the ReadOnly lock, mistakenly thinking ReadOnly still allows modifications, or they invent a non-existent 'Delete lock' option because it sounds plausible.

Why the other options are wrong

A

A ReadOnly lock prevents all modifications, including creating and modifying resources inside the resource group, which contradicts the requirement to allow administrators to create and modify resources.

C

Azure does not have a 'Delete lock'; the correct lock type to prevent deletion is 'CanNotDelete'. 'Delete lock' is not a valid Azure lock type.

D

A budget alert does not prevent deletion; it only notifies about spending. The question requires a lock that blocks deletion, which budget alerts cannot do.

65
MCQmedium

A build server hosted in a company datacenter must deploy ARM templates to a target resource group in Azure without storing a user password. The server is not running in Azure, and the team wants to authorize deployments with Azure RBAC. What should be configured?

A.A service principal authenticated with a certificate and assigned RBAC on the target scope
B.A system-assigned managed identity on the build server
C.A personal user account with multifactor authentication
D.A shared access signature for the resource group
AnswerA

A service principal with a certificate is an Azure AD identity designed for non-interactive workloads, and because the certificate (not a password) proves its identity, it can authenticate from any machine, including an on-premises build server. After you assign it RBAC permissions, such as Contributor on the target resource group, that identity can deploy ARM templates via the Azure management plane without requiring interactive sign-in or storing credentials.

Why this answer

A service principal authenticated with a certificate is the correct approach because it allows non-Azure resources (like an on-premises build server) to authenticate to Azure without storing a user password. The certificate-based authentication satisfies the requirement to avoid storing a password, and assigning RBAC on the target resource group grants the service principal the necessary permissions to deploy ARM templates. This method is secure, supports automation, and aligns with Azure AD application registration best practices.

Exam trap

The trap here is that candidates may confuse managed identities (which are Azure-only) with service principals, or mistakenly think a SAS token can be used for RBAC-based ARM deployments, when SAS is strictly for Storage access.

Why the other options are wrong

B

The build server is not running in Azure, so it cannot use a system-assigned managed identity, which is only available for Azure resources like VMs or App Services.

C

A personal user account with MFA cannot be used for automated, non-interactive deployments from a build server because MFA requires interactive user login, and the scenario explicitly prohibits storing a user password.

D

A shared access signature (SAS) is used to delegate access to Azure Storage resources, not to authorize ARM template deployments. It does not support RBAC or authentication for Azure Resource Manager operations.

66
MCQmedium

A project team adds and removes contractors every few weeks. The team needs Azure access to follow membership changes without updating role assignments for each person. What should the administrator use to delegate the access?

A.Assign the Azure role directly to each contractor user account.
B.Create a Microsoft Entra security group, add the contractors, and assign the Azure role to the group.
C.Use a Microsoft 365 group and assign the Azure role to it.
D.Create a management group for the contractors and assign the role there.
AnswerB

A security group is the best delegation target because membership can change without editing the RBAC assignment. The role remains stable, while adding or removing users from the group immediately changes who receives the permissions. This is the standard least-administration approach for a team whose membership changes often.

Why this answer

Assigning an Azure role to a Microsoft Entra security group allows the administrator to manage access by simply adding or removing contractors from the group, without needing to update role assignments for each individual. This leverages Azure RBAC's support for group-based assignments, which automatically propagate role permissions to new members and revoke them from removed members.

Exam trap

The trap here is that candidates might confuse Microsoft 365 groups (which are primarily for collaboration and may not support all Azure RBAC roles) with security groups, or incorrectly think that management groups are appropriate for individual user access delegation.

Why the other options are wrong

A

Assigning roles directly to each contractor requires updating role assignments every time contractors change, which does not meet the requirement to follow membership changes without updating role assignments.

C

Microsoft 365 groups do not support Azure role assignments; only Microsoft Entra ID security groups and Microsoft Entra ID role-assignable groups can be used for Azure RBAC.

D

Management groups are used to organize subscriptions and apply governance at scale, not to manage access for individual users or groups. Assigning a role to a management group would grant access to all subscriptions under it, which is too broad and does not solve the need to dynamically add/remove contractors without updating role assignments.

67
Multi-Selecthard

A department has 12 subscriptions under a management group named Corp. New resources must be deployed only in East US or West US and must include a CostCenter tag. A pilot subscription must be exempt from these rules during testing. Which two actions should you take? Select two.

Select 2 answers
A.Assign an initiative containing both policy definitions at the Corp management-group scope.
B.Create a policy exemption for the pilot subscription.
C.Assign the policies individually at each resource group.
D.Use the Owner role at the management-group scope.
E.Use a resource lock instead of Azure Policy.
AnswersA, B

Assigning an initiative containing both policy definitions at the Corp management-group scope is the most scalable and effective approach. Policy assignments made at a management-group scope are inherited by all child subscriptions and resource groups, meaning all 12 subscriptions plus any future subscriptions added to that management group automatically receive the same governance. Grouping the definitions into an initiative (policy set) also allows them to be assigned, evaluated, and reported on as a single compliance unit, reducing administrative overhead and ensuring consistent enforcement of both tag requirements and allowed locations across the entire department.

Why this answer

Assigning an initiative (a collection of policy definitions) at the Corp management-group scope ensures that all 12 subscriptions inherit both the location restriction and the CostCenter tag requirement. This is the most efficient and scalable way to enforce governance across multiple subscriptions without repeating assignments.

Exam trap

The trap here is that candidates may think individual policy assignments at each resource group (Option C) are acceptable, but Azure Policy is designed to be assigned at higher scopes (management group or subscription) for inheritance, and they may also confuse RBAC roles (Option D) with policy enforcement.

Why the other options are wrong

C

Assigning policies individually at each resource group is inefficient and does not enforce the rules across all 12 subscriptions under the Corp management group. It also fails to provide a single point of management for the policy assignment.

D

The Owner role at the management-group scope grants full access to manage resources and assign roles, but it does not enforce policies or tags. The question requires enforcing deployment locations and tags, which is done via Azure Policy, not RBAC roles.

E

Resource locks prevent deletion or modification of resources but do not enforce deployment location or tagging requirements, which are the specific constraints in this question.

68
MCQmedium

Based on the exhibit, where should the Network Contributor role be assigned so the engineer can manage only VNet-vm and its subnets, but not other resources in rg-platform?

A.Assign Network Contributor at the management group scope.
B.Assign Network Contributor at the subscription scope.
C.Assign Network Contributor at the resource group scope for rg-platform.
D.Assign Network Contributor at the VNet-vm resource scope.
AnswerD

Assigning the role at the specific VNet-vm resource scope confines permissions to that virtual network and its child subnets. The principal can manage subnet address prefixes, DNS servers, peering, and delegation without affecting other VNets, NSGs, or resources in rg-platform. This is the narrowest, least-privilege assignment that still provides full Network Contributor capabilities for the target integration.

Why this answer

Assigning the Network Contributor role at the VNet-vm resource scope grants the engineer permissions to manage only that specific virtual network and its subnets, while preventing any access to other resources within the rg-platform resource group. This follows the principle of least privilege by scoping the role assignment to the exact resource that needs to be managed.

Exam trap

The trap here is that candidates often assume assigning a role at the resource group scope is sufficient to limit access to a specific resource, but they overlook that resource group scope grants permissions to all resources of that type within the group, not just the intended one.

Why the other options are wrong

A

Assigning Network Contributor at the management group scope would grant permissions to manage all virtual networks and subnets across all subscriptions under that management group, not just VNet-vm in rg-platform.

B

Assigning Network Contributor at the subscription scope would grant the engineer permissions to manage all virtual networks and subnets across all resource groups in the subscription, including resources outside rg-platform, which violates the requirement to restrict management to only VNet-vm and its subnets.

C

Assigning Network Contributor at the resource group scope for rg-platform would grant the engineer permissions to manage all networking resources within rg-platform, not just VNet-vm and its subnets, violating the requirement to restrict access to only VNet-vm.

69
MCQmedium

You need to ensure engineers cannot delete a production resource group, but they must still be able to start and stop VMs and change network rules during maintenance. Which resource lock should you apply to the resource group?

A.No lock
B.ReadOnly
C.CanNotDelete
D.Azure Policy deny assignment
AnswerC

A CanNotDelete resource lock (also called a Delete lock) blocks any delete operation against the resource group and every child resource beneath it, while still allowing normal write operations such as adding tags, modifying settings, or updating configurations. Because locks are evaluated by Azure Resource Manager independently of role-based access control, even a user with Contributor or Owner rights receives an HTTP 409 (Conflict) error if they try to delete the protected scope. This is the correct answer because it removes only the delete privilege without interfering with the management tasks engineers need to perform in production.

Why this answer

The CanNotDelete lock prevents deletion of the resource group while allowing all other operations, including starting/stopping VMs and modifying network rules. This meets the requirement because engineers retain full management capabilities except for deletion, which is explicitly blocked at the resource group scope.

Exam trap

The trap here is that candidates confuse ReadOnly with CanNotDelete, assuming any lock will block all operations, when in fact ReadOnly blocks all write operations (including start/stop and network changes) while CanNotDelete only blocks deletion.

Why the other options are wrong

A

No lock would allow engineers to delete the resource group, which violates the requirement to prevent deletion.

B

ReadOnly lock prevents any modifications, including starting/stopping VMs and changing network rules, which are required during maintenance.

D

Azure Policy deny assignment is used to enforce compliance rules across resources, not to prevent deletion while allowing modifications. It would block all actions that violate the policy, including starting/stopping VMs or changing network rules, which contradicts the requirement for engineers to perform maintenance.

70
Multi-Selectmedium

A contractor pool changes every month. The operations team wants Azure role access to stay the same when people join or leave, without editing role assignments for each person. Which two actions should the administrator take? Select two.

Select 2 answers
A.Create a security group in Microsoft Entra ID for the contractor pool.
B.Assign the Azure role directly to each contractor account.
C.Create a Microsoft 365 group and use it for VM sign-in.
D.Assign the Azure role to the security group rather than to individual users.
E.Use a user-assigned managed identity for each contractor.
AnswersA, D

A security group is the right identity container for changing membership. Contractors can be added or removed from the group without touching the Azure RBAC assignment itself, which keeps access administration simple and consistent over time.

Why this answer

Creating a security group in Microsoft Entra ID (formerly Azure AD) allows the administrator to manage membership dynamically or manually as contractors join or leave. By assigning the Azure role to this security group (Option D), role assignments remain constant; only group membership changes, eliminating the need to edit individual role assignments. This approach leverages Azure RBAC's support for security groups as assignable principals, ensuring consistent access control.

Exam trap

The trap here is that candidates often confuse Microsoft 365 groups (used for collaboration and Entra ID join) with security groups (used for RBAC assignments), leading them to select Option C instead of A.

Why the other options are wrong

B

Assigning the Azure role directly to each contractor account requires manual updates when contractors join or leave, which contradicts the requirement to keep role access unchanged without editing assignments.

C

Creating a Microsoft 365 group does not help manage Azure role assignments for a contractor pool; it is designed for collaboration features like shared mailboxes and calendars, not for assigning Azure roles to users.

E

User-assigned managed identities are for Azure resources (e.g., VMs, apps) to authenticate to Azure services, not for assigning Azure RBAC roles to human users. They cannot replace role assignments for a changing contractor pool.

71
MCQmedium

Based on the exhibit, which Azure feature should the administrator add so ownership and chargeback information remains visible even if resources are moved between resource groups?

A.Management groups
B.Tags
C.Resource locks
D.Role assignments
AnswerB

Tags are key-value pairs you attach directly to Azure resources (or resource groups/subscriptions) to store flexible metadata such as department, environment, project, or cost center. These attributes make resources filterable, groupable, and reportable, so you can use Cost Management export and Azure Resource Graph to slice billing data by owner or team. Unlike security-oriented features, tags carry no permissions or protection—they exist purely for operational and chargeback context, which is exactly what the exhibit's requirement of ownership and reporting metadata calls for.

Why this answer

Tags are metadata key-value pairs that can be assigned to Azure resources and resource groups. They persist even when resources are moved between resource groups, making them ideal for tracking ownership and chargeback information across organizational boundaries. Unlike other options, tags are specifically designed for cost tracking, ownership attribution, and resource categorization.

Exam trap

The trap here is that candidates confuse Resource locks (which prevent deletion) with metadata persistence, or assume Role assignments follow resources across moves, when in fact RBAC assignments are scoped to the original resource group and are lost upon relocation.

Why the other options are wrong

A

Management groups provide hierarchical organization and policy inheritance across subscriptions, but they do not persist metadata like ownership or chargeback information when resources are moved between resource groups.

D

Role assignments control access permissions but do not persist ownership or chargeback information when resources are moved between resource groups; they are tied to the resource scope and can change with moves.

72
MCQeasy

A company wants to group several subscriptions for Finance, HR, and Engineering so that the same governance settings can be applied above the subscription level. What should the administrator create?

A.A management group
B.A resource group
C.A tag
D.A resource lock
AnswerA

Management groups are designed to contain subscriptions and provide a hierarchy above the subscription level. Policies, access controls, and other governance settings can be assigned at the management group level and inherited by the subscriptions underneath it, which makes them the correct choice for organizing Finance, HR, and Engineering subscriptions together.

Why this answer

A management group is the correct choice because it allows you to organize multiple Azure subscriptions into a hierarchy and apply governance policies, role-based access control (RBAC), and compliance settings at a scope above the subscription level. By creating a management group for Finance, HR, and Engineering, the administrator can enforce consistent Azure Policy initiatives and RBAC assignments across all three subscriptions, ensuring uniform governance without needing to configure each subscription individually.

Exam trap

The trap here is that candidates often confuse management groups with resource groups, thinking resource groups can span subscriptions, but resource groups are strictly scoped to a single subscription and cannot aggregate governance across multiple subscriptions.

Why the other options are wrong

B

Resource groups are containers for resources within a single subscription, not for grouping multiple subscriptions to apply governance settings above the subscription level.

C

Tags are metadata applied to Azure resources for categorization and cost tracking, not for grouping subscriptions or applying governance settings above the subscription level.

D

Resource locks prevent accidental deletion or modification of resources but do not provide governance settings above the subscription level. They operate at the resource or resource group level, not across multiple subscriptions.

73
MCQeasy

You want to let a support engineer restart only the virtual machines in the Prod-Apps resource group, and any VM added later to that group should also be covered. Where should you assign the role?

A.At the subscription scope, because it will cover the resource group and future VMs.
B.At the Prod-Apps resource group scope, because the assignment will inherit to all VMs in that group.
C.At each VM resource scope, because role assignments never inherit.
D.At the management group scope, because it is the only scope that applies to VMs.
AnswerB

This is correct because the resource group is the narrowest scope that still covers all VMs in Prod-Apps, including any future VMs created there. Assigning the role at the group scope keeps access limited to the intended set of resources while still taking advantage of Azure RBAC inheritance for child resources.

Why this answer

Assigning the 'Virtual Machine Contributor' role at the Prod-Apps resource group scope ensures that the support engineer can restart all current and future VMs within that group. Role assignments in Azure RBAC are inherited by all child resources, so any VM added later to the resource group automatically receives the same permissions. This is the most efficient and maintainable approach for managing access to a dynamic set of resources.

Exam trap

The trap here is that candidates often confuse scope inheritance with the need to assign roles at the subscription level to cover future resources, not realizing that resource group scope inheritance already covers all current and future child resources within that group.

Why the other options are wrong

A

Assigning the role at the subscription scope would grant the support engineer restart permissions on all VMs in the subscription, not just those in the Prod-Apps resource group, violating the principle of least privilege.

C

Role assignments in Azure do inherit to child resources, so assigning at each VM scope is unnecessary and violates the requirement that future VMs added to the resource group are automatically covered.

D

Assigning at the management group scope would apply the role to all subscriptions and resource groups under that management group, not just the Prod-Apps resource group, thus granting broader permissions than intended.

74
MCQeasy

Based on the exhibit, a shared resource group contains a production virtual machine and a storage account. Administrators must be able to update settings, but they must not be able to delete either resource by mistake. Which lock should be applied at the resource group scope?

A.ReadOnly lock, because it prevents all changes and keeps resources fully protected.
B.CanNotDelete lock, because it allows updates but blocks deletion.
C.No lock is needed because Azure RBAC already prevents deletion by default.
D.Management group lock, because all changes in the tenant must be blocked centrally.
AnswerB

CanNotDelete is the correct choice when administrators still need to modify resource settings but must be prevented from deleting the resources. Applied at the resource group scope, it protects both the VM and the storage account from accidental deletion while preserving normal update operations.

Why this answer

The CanNotDelete lock (option B) is correct because it allows administrators to update settings on the production VM and storage account while preventing accidental deletion of either resource. This lock operates at the resource group scope, applying to all resources within it, and is the appropriate choice for the stated requirement of allowing updates but blocking deletions.

Exam trap

The trap here is that candidates often confuse ReadOnly locks with CanNotDelete locks, mistakenly thinking that preventing all changes is safer, but the question explicitly requires allowing updates, making ReadOnly locks too restrictive.

Why the other options are wrong

A

The question requires that administrators can update settings, but a ReadOnly lock prevents all updates, which is too restrictive for the stated requirement.

C

Azure RBAC does not prevent deletion by default; the Contributor role, for example, allows deletion. A lock is required to explicitly block deletion while allowing updates.

D

Management group locks apply to all subscriptions within a management group hierarchy, not to a single resource group. The question specifies a resource group scope, so a management group lock is too broad and would affect other resources unnecessarily.

75
Multi-Selectmedium

A contractor must manage only VM1 and VM2 in rg-prod. The contractor must not be able to manage any other resource in the resource group. Which two role assignment scopes should you create? 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

In Azure RBAC, a role assignment scoped to a specific resource applies only to that resource. Assigning the Virtual Machine Contributor role (or similar) on VM1's resource ID gives the contractor permission to manage VM1 without inheriting any access to VM2 or any other resource in rg-prod. This satisfies least privilege for VM1, and when combined with an identical assignment on VM2, the contractor's effective scope is exactly those two VMs. This is a correct approach because resource-scope assignments cannot affect sibling resources.

Why this answer

Assigning the role at the VM1 resource scope (Option A) is correct because Azure RBAC allows you to scope a role assignment to an individual resource, such as a virtual machine. This grants the contractor permissions to manage only VM1, without affecting any other resources in the resource group. The same logic applies to VM2, making the resource-level scope the precise way to restrict management to just those two VMs.

Exam trap

The trap here is that candidates often default to assigning roles at the resource group scope for simplicity, overlooking that resource-level scoping is available and required when the goal is to restrict access to individual resources within a group.

Why the other options are wrong

C

Assigning the role at the rg-prod resource group scope would grant the contractor permissions to manage all resources in that resource group, not just VM1 and VM2.

E

Assigning the role at the management group scope would grant the contractor permissions to manage all resources in all subscriptions under that management group, far exceeding the requirement to manage only VM1 and VM2 in rg-prod.

Page 1 of 4 · 233 questions totalNext →

Ready to test yourself?

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