Courseiva

CCNA Manage Azure Identities and Governance Questions

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

151
Multi-Selecthard

An enterprise wants one governance package to be applied automatically to every production subscription that is added in the future. The package contains several policy definitions that should be managed together. Which two actions are required? Select two.

Select 2 answers
A.Create or use a production management group and assign the governance package at that scope.
B.Package the related policy definitions into a policy initiative before assigning them.
C.Assign each policy separately to every resource group so the settings are inherited upward.
D.Use tags on resources to make policy definitions automatically apply to new subscriptions.
E.Apply a resource lock to the management group so all child subscriptions inherit the policies.
AnswersA, B

Management groups are the correct hierarchy for automatic inheritance across multiple subscriptions. Assigning governance at the management-group scope ensures every child production subscription receives the baseline without separate manual work. This satisfies the requirement for future subscriptions as well as existing ones.

Why this answer

Assigning the governance package (policy initiative) at the management group scope ensures that all child subscriptions, including future ones, automatically inherit the policies. Management groups provide hierarchical governance, and any subscription added under that management group will inherit the assigned policies without manual intervention.

Exam trap

The trap here is that candidates confuse resource locks with policy assignments, thinking locks can enforce policy inheritance, when in fact locks only prevent deletion or modification and have no effect on policy application.

Why the other options are wrong

C

Assigning policies to individual resource groups does not automatically apply to new subscriptions; the question requires automatic application to future production subscriptions, which demands assignment at a management group scope, not resource groups.

D

Tags do not automatically apply policy definitions to new subscriptions; they are metadata on resources. Policies must be assigned at a management group or subscription scope to affect new subscriptions.

E

Resource locks prevent accidental deletion or modification but do not enforce policy definitions. The question requires automatic application of a governance package to new subscriptions, which resource locks cannot achieve.

152
MCQhard

Your organization assigns an Azure Policy at the Corp-MG management group to require the tag Environment on all newly created resources. A deployment to RG-App in the Prod-Sub subscription fails because the tag is missing. You need to allow this single deployment to proceed without weakening enforcement for the rest of the organization. What should you do?

A.Remove the policy assignment from Corp-MG.
B.Create a policy exemption at the Prod-Sub or RG-App scope.
C.Change the policy effect from Deny to Audit for all assignments.
D.Move Prod-Sub out of Corp-MG.
AnswerB

Creating a policy exemption at the Prod-Sub or RG-App scope is the correct remediation because exemptions are scoped to specific resources, resource groups, or subscriptions and instruct Azure Policy to skip evaluation for those resources while the policy assignment remains intact and enforced everywhere else. When you create the exemption, you must select an exemption category (Waiver or Mitigated) and can optionally set an expiration date, which provides audit traceability for why the deployment is allowed. This preserves the original Deny effect for all other child scopes of Corp-MG, so the broader governance model is maintained without weakening security or compliance posture.

Why this answer

A policy exemption allows you to exclude a specific scope (like Prod-Sub or RG-App) from the enforcement of a policy assignment without modifying or removing the policy itself. This lets the single deployment proceed while maintaining the Deny effect for all other resources under Corp-MG. Exemptions can be created with an expiration date to ensure temporary relief does not become permanent.

Exam trap

The trap here is that candidates often think they must remove or change the policy assignment itself, but Azure provides the policy exemption feature specifically to handle temporary exceptions without weakening overall enforcement.

Why the other options are wrong

A

Removing the policy assignment from Corp-MG would disable the tag requirement for all subscriptions under that management group, weakening enforcement for the entire organization, which contradicts the requirement to allow only this single deployment to proceed.

C

Changing the policy effect from Deny to Audit for all assignments would weaken enforcement across the entire organization, which contradicts the requirement to allow only this single deployment to proceed without weakening enforcement for the rest.

D

Moving Prod-Sub out of Corp-MG would remove all inherited policies from that management group, weakening enforcement for the entire subscription, not just the single deployment. The goal is to allow one deployment to proceed without affecting the rest of the organization.

153
Multi-Selecteasy

A VM-hosted app must read blobs from Azure Storage without storing a shared key, SAS token, or password. Which two configuration steps should the administrator take? Select two.

Select 2 answers
A.Enable a system-assigned managed identity on the VM.
B.Assign the Storage Blob Data Reader role to that identity on the storage account.
C.Store the storage account access key in the app configuration.
D.Generate a SAS token and embed it in the application code.
E.Move the VM into a different subnet.
AnswersA, B

Enabling a system-assigned managed identity on the VM creates an Azure AD-backed identity directly tied to the VM's lifecycle, allowing the application to authenticate to Azure Storage without embedding or storing any credentials. This identity is automatically managed by Azure, eliminating the need for secret rotation or protection within the application code. Once enabled, the VM can acquire tokens for Azure AD to securely access storage blobs.

Why this answer

A system-assigned managed identity on the VM allows Azure to automatically manage a service principal for the VM, eliminating the need for any stored credentials. By assigning the Storage Blob Data Reader role to that identity on the storage account, the VM can authenticate to Azure Storage using Azure AD tokens obtained via the Azure Instance Metadata Service (IMDS) endpoint, without ever storing a shared key, SAS token, or password.

Exam trap

The trap here is that candidates may think moving the VM to a different subnet (Option E) solves the authentication problem, but subnet changes only affect network access control, not credentialless authentication; the correct approach relies on Azure AD and RBAC via managed identities.

Why the other options are wrong

C

Option C stores the storage account access key in the app configuration, which violates the requirement to avoid storing a shared key, SAS token, or password. The question explicitly requires a solution without storing such secrets.

D

Option D is wrong because embedding a SAS token in application code violates the requirement to avoid storing a shared key, SAS token, or password. The question explicitly prohibits using any such credentials.

E

Moving the VM into a different subnet does not provide any mechanism for the app to authenticate to Azure Storage without credentials. It only changes network isolation, not identity or access control.

154
MCQmedium

An App Service application needs to read secrets from Azure Key Vault. The security team does not want any password, certificate, or client secret stored in application settings, and they want the identity removed automatically if the app is deleted. What should the administrator enable?

A.A service principal with a client secret stored in App Service configuration.
B.A system-assigned managed identity on the App Service.
C.A user-assigned managed identity shared by all applications.
D.A shared access signature stored in Key Vault.
AnswerB

A system-assigned managed identity on the App Service is the correct approach because Azure automatically creates an identity in Azure AD that is directly tied to the App Service's lifecycle. The app can obtain Azure AD tokens without any stored credentials, and you grant this identity access to Key Vault via an access policy or RBAC. This eliminates the need to manage, store, or rotate secrets in code or configuration, fully satisfying the requirement to read secrets securely.

Why this answer

A system-assigned managed identity (Option B) is the correct choice because it provides an identity for the App Service that is automatically managed by Azure, tied to the lifecycle of the resource (deleted when the app is deleted), and requires no credentials to be stored in application settings. This allows the app to authenticate to Key Vault using Azure AD tokens without any secrets, satisfying the security team's requirements.

Exam trap

The trap here is that candidates may confuse user-assigned managed identities (which are independent resources with separate lifecycles) with system-assigned managed identities (which are tied to the resource's lifecycle), leading them to choose Option C despite the automatic removal requirement.

Why the other options are wrong

A

The security team explicitly prohibits storing any password, certificate, or client secret in application settings, and a service principal with a client secret stored in App Service configuration violates this requirement.

D

A shared access signature (SAS) is used for granting delegated access to Azure Storage resources, not for authenticating an App Service to Key Vault. It does not provide an identity that can be automatically removed when the app is deleted.

155
MCQmedium

A production resource group contains VMs, public IP addresses, and a storage account. During a migration window, administrators must still be able to change settings and resize VMs, but nobody should accidentally delete any resource. Which lock should you apply to the resource group?

A.ReadOnly
B.CanNotDelete
C.Contributor
D.Azure Policy
AnswerB

CanNotDelete is a resource lock in Azure that prevents accidental deletion while still permitting read, update, and resizing operations. This lock operates at the management plane, blocking only the delete action on the VM, public IP, or resource group, so configuration changes remain possible. It is the correct choice because it selectively guards against deletion without freezing the resource's writable state.

Why this answer

The CanNotDelete lock prevents any user or process from deleting the resource group or its resources, while still allowing all other operations including read, write, and configuration changes such as resizing VMs. This matches the requirement that administrators must be able to change settings and resize VMs but must not accidentally delete any resource.

Exam trap

The trap here is that candidates often confuse Azure Policy with resource locks, thinking Policy can prevent deletion, when in fact only a CanNotDelete lock (or a custom policy with a deny effect on delete) blocks delete operations, and Policy alone does not provide that protection.

Why the other options are wrong

A

ReadOnly lock prevents all changes, including resizing VMs and changing settings, which contradicts the requirement that administrators must still be able to modify resources.

C

Contributor is an Azure RBAC role, not a lock. It allows full management access, including deletion, so it does not prevent accidental deletion.

D

Azure Policy is used to enforce organizational standards and assess compliance, not to prevent accidental deletion of resources. It does not provide a lock that blocks delete operations.

156
MCQeasy

During a change freeze, administrators must prevent deletion of a production resource group and all resources inside it, but they still need to update VM sizes and tags. Which lock should be applied?

A.ReadOnly on the resource group
B.CanNotDelete on the resource group
C.CanNotDelete on the management group
D.An Azure Policy deny assignment
AnswerB

CanNotDelete is the correct lock when you want to stop accidental deletion but still allow configuration changes. Applied at the resource group scope, it protects the group and the resources inside it from being deleted while still permitting updates such as resizing a VM or changing tags. That makes it ideal for a maintenance freeze.

Why this answer

The CanNotDelete lock on the resource group prevents deletion of the resource group and all resources within it, while still allowing read and update operations such as modifying VM sizes and tags. This meets the requirement of blocking deletions during the change freeze without restricting updates. ReadOnly locks would block all write operations, including the needed updates.

Exam trap

The trap here is that candidates often confuse CanNotDelete with ReadOnly, assuming that any lock will block updates, but CanNotDelete specifically allows modifications while only preventing deletion.

Why the other options are wrong

A

ReadOnly lock prevents all write operations, including updating VM sizes and tags, which contradicts the requirement to allow those updates.

C

Applying CanNotDelete on the management group would block deletion of all resource groups under that management group, but the question only requires preventing deletion of a single production resource group. Additionally, it does not address the need to allow updates to VM sizes and tags, which is already permitted with CanNotDelete at the resource group level.

D

An Azure Policy deny assignment can block updates to VM sizes and tags, which contradicts the requirement that administrators still need to update those properties.

157
MCQeasy

A user is assigned the Reader role on a resource group named RG1. Later, a new storage account is created in RG1. What access will the user have to that storage account without any new role assignment?

A.No access, because RBAC assignments do not apply to resources created later.
B.Reader access, because the resource group assignment is inherited by the storage account.
C.Contributor access, because storage accounts inherit the highest available permissions.
D.Owner access, because resource group permissions always become full control on child resources.
AnswerB

This is correct because Azure RBAC permissions flow downward from the assigned scope. A role assigned at the resource group level applies to all current and future resources in that group unless a more restrictive condition or deny assignment applies. The new storage account automatically inherits the Reader permissions from RG1, so the user can view it without another assignment.

Why this answer

Azure RBAC permissions assigned at a resource group scope are inherited by all resources within that resource group, including resources created after the assignment. Since the user has the Reader role on RG1, that role is inherited by the new storage account, granting read-only access to it without any additional role assignment.

Exam trap

The trap here is that candidates mistakenly believe RBAC assignments do not apply to resources created after the assignment, confusing Azure RBAC with classic deployment model permissions or assuming inheritance is only for existing resources.

Why the other options are wrong

A

RBAC assignments on a resource group are inherited by all resources within that group, including those created after the assignment, so the user would have Reader access to the new storage account.

C

The Reader role only allows read access, not write access. Contributor access requires a role assignment that includes write permissions, which is not inherited from the Reader role.

D

The Reader role on a resource group grants read-only access to all resources within it, including new resources, but does not grant Owner or full control. Owner access requires an explicit role assignment at the resource or higher scope.

158
MCQeasy

A partner company needs a developer to access resources in your tenant by using the developer's existing work account. You do not want to create a new separate username and password for that person. What should you create in Microsoft Entra ID?

A.A local user account in each resource group
B.A guest user account
C.A managed identity
D.A new service principal
AnswerB

A guest user account is the correct identity type for a developer from a partner company because Azure AD B2B collaboration allows you to invite that user into your tenant using their own organization's credentials. This establishes a security principal that can be assigned Azure RBAC roles (e.g., Contributor or Reader) scoped to specific resources or resource groups, while the partner retains control of their password and authentication policies. No new credentials are created in your directory, and the guest can be easily revoked or expired.

Why this answer

B is correct because Microsoft Entra ID B2B collaboration allows you to invite an external user's existing work account as a guest user. This grants access to resources without creating a new username and password, as the developer authenticates using their home tenant credentials. Guest users are managed in Entra ID and can be assigned permissions via Azure RBAC or group membership.

Exam trap

The trap here is that candidates confuse a guest user (B2B collaboration) with a service principal or managed identity, thinking any external access requires a non-user identity, but the question explicitly asks for a user account using an existing work account.

Why the other options are wrong

A

Local user accounts in resource groups are not supported in Azure; user accounts are managed at the tenant level in Microsoft Entra ID, not per resource group. Creating a local account would also require managing separate credentials, contradicting the requirement to use the developer's existing work account.

C

A managed identity is an Azure resource identity used for authenticating to Azure services without storing credentials, not for inviting external users. It cannot be used to grant access to a partner's existing work account.

D

A service principal is an identity for applications or automated tools, not for individual users. The question requires granting access to a specific developer using their existing work account, which is a user-to-user collaboration scenario, not an application identity scenario.

159
MCQmedium

A VM-hosted automation tool must call Azure Resource Manager APIs, but the team will not store a password, certificate, or client secret on the VM. The identity should also disappear automatically when the VM is deleted. Which identity should be assigned?

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

A system-assigned managed identity is the correct choice because it is directly tied to the VM's lifecycle and has no credential management. The identity is automatically provisioned in Azure AD and can be granted Azure Resource Manager RBAC permissions, such as Contributor or Reader, without storing any secrets. When the VM is deleted, the identity is automatically removed, meeting the requirement to avoid leftover or orphaned credentials. The automation tool merely needs to request a token from the Azure Instance Metadata Service (IMDS) using the default identity.

Why this answer

A system-assigned managed identity is the correct choice because it is tied directly to the lifecycle of the Azure VM—when the VM is deleted, the identity is automatically removed. It allows the automation tool to authenticate to Azure Resource Manager APIs without storing any credentials (password, certificate, or client secret) on the VM, using Azure AD tokens obtained via the Azure Instance Metadata Service (IMDS) endpoint.

Exam trap

The trap here is that candidates often confuse user-assigned managed identities with system-assigned ones, failing to recognize that user-assigned identities are independent resources that do not automatically disappear when the VM is deleted.

Why the other options are wrong

B

User-assigned managed identity does not automatically disappear when the VM is deleted; it must be manually deleted separately, failing the requirement for automatic cleanup.

C

A service principal with a client secret requires storing a secret on the VM, which violates the constraint of not storing credentials. Additionally, it does not automatically disappear when the VM is deleted.

D

A shared access signature (SAS) is used to grant delegated access to Azure Storage resources, not to authenticate to Azure Resource Manager APIs. It cannot serve as an identity for a VM to call ARM APIs.

160
MCQmedium

Your company has separate subscriptions for development, test, and production. Security wants one baseline policy and one RBAC assignment to apply automatically to every production subscription now and in the future. What should you use?

A.A resource group that contains all production resources.
B.A management group above the production subscriptions.
C.A tag applied to each production resource.
D.A single production subscription with multiple resource groups.
AnswerB

A management group above the production subscriptions is the correct parent scope because Azure management groups are designed to organize subscriptions into a hierarchy and deliver governance through inheritance. By placing a management group above all production subscriptions, RBAC role assignments and Azure Policy definitions applied at that group are automatically inherited by every child subscription, enabling consistent cross-subscription management without duplication. This scope supports multiple production subscriptions and provides a natural boundary for organizational structure, such as dev and production environments.

Why this answer

B is correct because management groups allow you to apply Azure Policy and RBAC assignments hierarchically. By placing all production subscriptions under a single management group, any policy or role assignment at that level will be inherited by every current and future production subscription, meeting the requirement for automatic application without manual intervention.

Exam trap

The trap here is that candidates often confuse tags with policy enforcement, thinking tags can automatically apply governance, when in fact tags are only metadata and require Azure Policy to enforce tag inheritance or compliance.

Why the other options are wrong

A

A resource group is not a scope for policy or RBAC assignment that applies automatically to multiple subscriptions; it only applies to resources within that specific resource group, not to all production subscriptions.

C

Tags are not inherited by default and require explicit assignment to each resource; they cannot automatically apply a baseline policy or RBAC assignment to all production subscriptions now and in the future.

D

A single production subscription with multiple resource groups does not automatically apply policies and RBAC assignments to future production subscriptions; it only covers one subscription, not multiple separate subscriptions.

161
MCQhard

A platform team must enforce two governance rules across every current and future subscription under a management group: resources must include an Environment tag, and only East US or West US may be used for deployment. They want one compliance view for both rules and a way to correct missing tags on existing resources where supported. What should they assign?

A.Assign two separate policies manually to each subscription and skip remediation.
B.Assign an initiative at the management group scope that contains the tag and allowed-location policies, then remediate the tag policy.
C.Assign Contributor to the management group so administrators can fix any noncompliant resource manually.
D.Apply a CanNotDelete lock at the management group scope to prevent drift.
AnswerB

An initiative groups multiple policies into one assignment, which gives the team a single compliance view and consistent enforcement across all current and future subscriptions under the management group. The tag policy can then be remediated for existing resources where the effect supports it, while the location rule blocks future noncompliant deployments.

Why this answer

An initiative (policy set) at the management group scope enforces both the required tag and allowed-location rules across all current and future subscriptions in a single compliance view. The tag policy can be remediated using a remediation task with a managed identity to automatically add missing tags on existing resources where supported (e.g., via modify effect). This approach centralizes governance without manual per-subscription assignment.

Exam trap

The trap here is that candidates often confuse assigning individual policies per subscription (Option A) with using an initiative at the management group scope, missing the requirement for a single compliance view and automatic future subscription coverage.

Why the other options are wrong

A

Assigning two separate policies manually to each subscription is inefficient and does not provide a single compliance view for both rules. It also skips remediation, so missing tags on existing resources would not be corrected.

C

Assigning Contributor at the management group scope grants broad permissions to modify resources but does not enforce governance rules or provide a compliance view; it relies on manual fixes and does not automate compliance or remediation.

D

A CanNotDelete lock prevents resource deletion but does not enforce tagging or allowed locations, and it cannot provide a compliance view or remediate missing tags.

162
Multi-Selecthard

A subscription already grants Contributor to an application team. The organization wants to prevent deployments in unsupported Azure regions and ensure every new resource has an Environment tag. Which two controls should be implemented with Azure Policy rather than RBAC? Select two.

Select 2 answers
A.Assign an allowed-locations policy at the management group or subscription scope.
B.Create a custom RBAC role that blocks resources deployed outside approved regions.
C.Assign a policy that enforces the Environment tag on new resources.
D.Add a CanNotDelete lock to every resource group.
E.Grant User Access Administrator to the deployment team.
AnswersA, C

An allowed-locations policy assignment at the management group or subscription scope is correct because Azure Policy evaluates the location property of each resource during deployment and can deny any request that specifies a non-approved region. Policy inheritance means the restriction applies to all child subscriptions and resource groups without requiring additional assignments, and it does not depend on the contributor role assignment the team already has. Because the team is a Contributor, they can create resources anywhere within the subscription; only a policy can intercept and block that action based on the region.

Why this answer

Azure Policy can enforce an 'allowed-locations' policy at the management group or subscription scope to restrict resource deployment to only approved Azure regions. This is a governance control that operates declaratively, evaluating resource properties against policy rules before or after creation, unlike RBAC which controls identity-based permissions. Option C is correct because Azure Policy can enforce the 'Environment' tag on new resources using a 'require a tag and its value' policy, ensuring compliance without modifying role assignments.

Exam trap

The trap here is that candidates often confuse RBAC (identity-based permissions) with Azure Policy (resource property enforcement), mistakenly thinking a custom RBAC role can restrict regions or tags, when in fact RBAC only controls actions like 'write' or 'delete' and cannot evaluate resource properties like location or tags.

Why the other options are wrong

B

Azure Policy, not RBAC, is the correct tool to enforce allowed locations. A custom RBAC role can deny deployment actions, but it cannot prevent resource creation by other services or at the subscription level, and it doesn't integrate with Azure Policy's compliance reporting.

D

CanNotDelete locks prevent resource deletion but do not restrict deployments to approved regions or enforce tagging, which are the specific requirements in the question.

E

Granting User Access Administrator allows the team to manage role assignments, which is not needed for preventing deployments in unsupported regions or enforcing tags; Azure Policy handles these controls declaratively without granting additional RBAC permissions.

163
MCQeasy

Based on the exhibit, which identity approach should the administrator use so both VMs can share the same access without managing secrets or recreating role assignments when a VM is replaced?

A.A separate system-assigned managed identity on each VM.
B.A single user-assigned managed identity attached to both VMs.
C.An administrator username and password stored in the script.
D.A shared access signature assigned to the virtual network.
AnswerB

A user-assigned managed identity is independent of any one VM and can be attached to multiple resources. That makes it ideal when several VMs need the same permissions and the access must continue even if one VM is deleted or rebuilt.

Why this answer

A user-assigned managed identity is an independent Azure resource that can be attached to multiple VMs, allowing them to share the same identity for accessing Azure resources. This approach eliminates the need to manage secrets (like passwords or keys) and avoids recreating role assignments when a VM is replaced, because the identity persists independently of the VM lifecycle.

Exam trap

The trap here is that candidates often confuse system-assigned and user-assigned managed identities, incorrectly assuming that a system-assigned identity can be shared across VMs or that it persists after VM deletion, when in fact it is deleted with the VM.

Why the other options are wrong

A

A separate system-assigned managed identity on each VM would require managing two identities and recreating role assignments for each new VM, failing to meet the requirement of sharing the same access without managing secrets or recreating role assignments when a VM is replaced.

C

Storing an administrator username and password in a script introduces secrets management overhead and security risks, and does not eliminate the need to update credentials or role assignments when a VM is replaced.

D

A shared access signature (SAS) assigned to the virtual network provides delegated access to storage resources, not identity-based access to VMs. It cannot be used to grant VMs access to Azure resources without managing secrets, and it does not persist across VM replacements without manual updates.

164
MCQeasy

Based on the exhibit, a policy assigned at the subscription denies storage accounts that allow public network access. One existing storage account in RG-Legacy must remain publicly reachable for 30 days while a migration is completed. What should the administrator use?

A.Create a policy exemption for stlegacy01 at the resource scope.
B.Remove the policy assignment from the subscription until the migration finishes.
C.Change the policy effect from Deny to Audit.
D.Move the legacy storage account to a separate subscription and assign the policy there.
AnswerA

A policy exemption is the correct tool when one known resource must temporarily be excluded from a policy assignment. It preserves the policy for everything else while documenting the exception for stlegacy01. This is ideal for a time-bound migration because it avoids weakening the policy across the subscription.

Why this answer

A policy exemption at the resource scope is the correct approach because it allows the administrator to selectively exclude the specific storage account (stlegacy01) from the subscription-level policy that denies public network access. This exemption can be configured with an expiration date of 30 days, ensuring the legacy account remains publicly reachable during the migration while the policy continues to apply to all other resources. Policy exemptions are designed for exactly this scenario—temporary exceptions for compliance or migration needs—without altering the policy definition or assignment.

Exam trap

The trap here is that candidates often confuse policy exemptions with policy exclusions (which are set at assignment scope and apply to entire resource groups or subscriptions), leading them to think they must modify the assignment or move resources instead of using the precise exemption mechanism designed for temporary exceptions.

Why the other options are wrong

B

Removing the policy assignment would disable the deny effect for all resources in the subscription, including those that should remain protected, violating the requirement to keep the policy enforced for other storage accounts.

C

Changing the effect to Audit would allow all storage accounts in the subscription to bypass the deny policy, not just the legacy one, violating the requirement to block public access for other accounts.

D

Moving the storage account to a separate subscription would require reconfiguring network access and potentially disrupt the migration. The policy is assigned at the subscription level, so moving to a new subscription would avoid the policy but does not address the requirement to keep the account publicly reachable for 30 days without migration interruption.

165
Multi-Selectmedium

A company has 18 subscriptions under a management group named Corp. The audit team needs Reader access to all current and future subscriptions in Corp without creating one assignment per subscription. Which two statements are correct? Select two.

Select 2 answers
A.Assign Reader at the Corp management group scope.
B.Place new subscriptions under the Corp management group so they inherit the assignment.
C.Assign Reader separately at each subscription scope.
D.Assign Reader at one resource group in each subscription.
E.Create a lock on each subscription to provide Reader access.
AnswersA, B

A management group assignment applies to every subscription under that branch, which is the cleanest way to cover current and future subscriptions.

Why this answer

Assigning the Reader role at the Corp management group scope is correct because Azure RBAC allows role assignments to be inherited by all child resources, including all current and future subscriptions under that management group. This eliminates the need to create a separate assignment per subscription, as the single assignment at the management group level applies to all subscriptions within it.

Exam trap

The trap here is that candidates may confuse Azure RBAC role assignments with Azure Policy or locks, thinking that a lock can grant permissions, or they may overlook the inheritance behavior of management groups and attempt to assign roles at a lower scope unnecessarily.

Why the other options are wrong

C

Assigning Reader at each subscription scope would require creating one assignment per subscription, which contradicts the requirement to avoid creating one assignment per subscription. It also does not cover future subscriptions automatically.

D

Assigning Reader at one resource group per subscription does not grant access to all resources in the subscription, only to that specific resource group. The requirement is for Reader access to all current and future subscriptions, not just a single resource group per subscription.

E

Locks are used to prevent accidental deletion or modification of resources, not to grant access. A lock does not provide Reader permissions; it only restricts operations regardless of the user's role.

166
MCQhard

A team operates two Azure VMs that both need to call Azure services with the same identity. The VMs are rebuilt frequently, and the identity must continue to work if either VM is deleted and recreated. Which identity should the administrator attach?

A.A system-assigned managed identity on one of the VMs
B.A user-assigned managed identity attached to both VMs
C.A service principal with a client secret stored on each VM
D.A certificate uploaded to each VM and used for Azure sign-in
AnswerB

A user-assigned managed identity is an Azure AD identity that exists independently of any VM. It can be assigned to multiple VMs at once, allowing both VMs to share the same identity and request tokens for the same resources. Because Azure manages the credentials automatically, there are no secrets to store on the VMs, and the identity survives VM deletion or recreation. This directly satisfies the requirement of shared identity without stored credentials.

Why this answer

A user-assigned managed identity is the correct choice because it is a standalone Azure resource that can be attached to multiple VMs. When a VM is deleted and recreated, the identity persists independently and can be reassigned to the new VM, ensuring continuous access to Azure services without credential management.

Exam trap

The trap here is that candidates often confuse system-assigned and user-assigned managed identities, assuming a system-assigned identity can be shared or persist after VM deletion, when in fact only user-assigned identities are decoupled from the VM lifecycle and can be attached to multiple resources.

Why the other options are wrong

A

A system-assigned managed identity is tied to the lifecycle of a single VM. If that VM is deleted, the identity is also deleted, so it cannot persist across VM recreations or be shared with another VM.

C

A service principal with a client secret stored on each VM requires manual secret management and rotation; if a VM is deleted, the secret is lost, and the identity cannot persist across VM recreations without manual intervention.

D

Certificates uploaded to each VM are not managed identities; they require manual rotation and secure storage, and if a VM is deleted and recreated, the certificate must be re-uploaded, breaking the identity continuity.

167
MCQmedium

Three Azure VMs in different resource groups need to access the same Azure resources using one identity. The identity must keep working if any VM is deleted and recreated. What should the administrator assign to the VMs?

A.A system-assigned managed identity on each VM.
B.A user-assigned managed identity.
C.A local administrator account.
D.An Azure Blueprint assignment.
AnswerB

A user-assigned managed identity exists independently of any VM as an Azure AD identity. Because it is not tied to a VM's lifecycle, the same identity can be assigned to all three VMs in different resource groups, and a single RBAC grant on the target resource applies to every VM that uses it. Azure automatically rotates its credentials, so there is no secret to store or manage.

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, even across different resource groups. If a VM is deleted and recreated, the user-assigned identity persists independently and can be reassigned to the new VM, ensuring continuous access to Azure resources without reconfiguration.

Exam trap

The trap here is that candidates often choose system-assigned managed identities (Option A) because they are simpler to configure, but they fail to recognize that system-assigned identities are deleted with the VM, making them unsuitable for scenarios requiring identity persistence across VM deletions and recreations.

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, its identity is lost and must be reassigned, failing the requirement that the identity persists across VM deletion and recreation.

C

A local administrator account is tied to a specific VM instance and does not persist if the VM is deleted and recreated. It also cannot provide a single identity for multiple VMs to access Azure resources.

D

An Azure Blueprint assignment is used to define a repeatable set of Azure resources and policies for compliance, not to assign an identity to VMs for accessing resources. It cannot provide a consistent identity that persists across VM deletion and recreation.

168
MCQmedium

An enterprise uses one management group to contain five subscriptions for a business unit. A compliance auditor in an Entra ID group needs read-only access to every current and future resource in all five subscriptions, but must not see resources in other business units. What is the best scope for the Reader role assignment?

A.Assign Reader at the management group that contains the five subscriptions.
B.Assign Reader separately at each subscription in the business unit.
C.Assign Reader at a single resource group within one subscription.
D.Assign Reader directly to each resource that the auditor should see.
AnswerA

This scope lets the role flow downward to all subscriptions, resource groups, and resources under that management group. It is the narrowest place that still covers every current and future subscription in that business unit. The auditor gets consistent read-only visibility without requiring separate assignments for each subscription, and access stays isolated from other management groups.

Why this answer

Assigning the Reader role at the management group scope grants inherited read-only access to all current and future resources within every subscription under that management group, while preventing access to resources in other business units that are in separate management groups. This satisfies the auditor's requirement for a single, scalable assignment that automatically covers new subscriptions added to the management group.

Exam trap

The trap here is that candidates may think subscription-level assignments are necessary for granularity, overlooking that management group scope provides inheritance to all current and future subscriptions and resources within that group, which is the most efficient and correct approach for multi-subscription governance.

Why the other options are wrong

B

Assigning Reader at each subscription separately does not cover future resources in new subscriptions added to the management group, violating the requirement for access to all current and future resources.

C

Assigning Reader at a single resource group would not grant access to all resources across five subscriptions, failing the requirement for read-only access to every current and future resource in all five subscriptions.

D

Assigning Reader directly to each resource is impractical and does not scale; it fails to cover future resources and violates the requirement for read-only access to all current and future resources across five subscriptions.

169
MCQmedium

A company has 18 Azure subscriptions. Production subscriptions must inherit stricter governance than sandbox subscriptions, and central IT wants one place to target future policy assignments to each group. What should the administrator do?

A.Create management groups for Prod and Sandbox, then move subscriptions into them
B.Create resource groups named Prod and Sandbox in each subscription
C.Use tags on subscriptions to separate production from sandbox
D.Apply a CanNotDelete lock to each subscription
AnswerA

Management groups create a hierarchy above subscriptions, so placing production subscriptions under a 'Prod' management group and others under 'Sandbox' allows you to assign Azure Policy definitions, role-based access control, and security controls at the management group level. Those assignments are inherited by every subscription in that group, minimizing duplicate configuration. This directly satisfies the requirement that production subscriptions inherit specific governance settings while sandbox subscriptions remain separate.

Why this answer

Management groups allow you to organize Azure subscriptions hierarchically and apply Azure Policy and role-based access control (RBAC) at the management group level, which is inherited by all subscriptions within that group. By creating separate management groups for Prod and Sandbox and moving the respective subscriptions into them, central IT can assign policy assignments once to each management group, ensuring stricter governance for production subscriptions and a lighter touch for sandbox subscriptions.

Exam trap

The trap here is that candidates often confuse resource groups or tags as mechanisms for grouping subscriptions for policy inheritance, but only management groups provide the hierarchical structure needed to apply policies consistently across multiple subscriptions.

Why the other options are wrong

B

Resource groups are organizational containers within a single subscription, not across subscriptions. They cannot be used to centrally target policy assignments across multiple subscriptions, as policies applied to a resource group only affect resources within that specific subscription's resource group.

170
MCQmedium

A developer has the Contributor role on a subscription. Their ARM deployment of a virtual machine with a public IP fails, and the error message says the request is denied by policy. The developer can create other resources successfully. What should you change to allow this deployment while keeping the Contributor role unchanged?

A.Assign the developer the Owner role on the subscription.
B.Modify or exempt the Azure Policy assignment that blocks public IP addresses.
C.Remove any lock from the virtual machine's resource group.
D.Move the virtual machine to another management group.
AnswerB

The error message indicates the deployment was denied by an Azure Policy assignment, not by a lack of RBAC permissions. Modifying the policy assignment (e.g., changing the effect from 'Deny' to 'Audit' or removing the assignment) directly removes the obstacle. Alternatively, an exemption on the specific scope can allow the public IP to be created while keeping the policy for compliance governance. This is the only option that addresses the root cause while preserving the developer's Contributor role.

Why this answer

The error indicates that an Azure Policy is denying the deployment of a virtual machine with a public IP address. Since the developer has the Contributor role, they have sufficient permissions to create resources, but Azure Policy overrides permissions by enforcing rules. Modifying or creating an exemption for the specific policy that blocks public IP addresses will allow the deployment without changing the developer's role.

Exam trap

The trap here is that candidates often confuse Azure Policy with RBAC or resource locks, assuming that a permission issue (like needing Owner) or a lock is the cause, when in fact policy enforcement is a separate governance layer that can deny deployments even with sufficient RBAC permissions.

Why the other options are wrong

A

The error is caused by an Azure Policy denying public IP creation, not by a lack of permissions. Assigning Owner would grant more privileges than needed and violates the constraint to keep the Contributor role unchanged.

D

Moving the VM to another management group does not bypass Azure Policy assignments, which are inherited from management groups. The policy blocking public IPs would still apply in the new management group unless that group has a different policy exemption.

171
MCQmedium

A support engineer needs to restart only one virtual machine named VM-App01. The engineer must not gain access to any other VM, storage account, or network resource in the resource group. At which scope should you assign the required RBAC role?

A.At the management group scope that contains the subscription
B.At the specific virtual machine resource scope
C.At the resource group scope that contains the virtual machine
D.At the subscription scope that contains the resource group
AnswerB

Assigning a role at the specific virtual machine resource scope confines permissions to that single resource by leveraging Azure's hierarchical RBAC model. This is the only option that fulfills the least-privilege requirement, because the support engineer receives only the Microsoft.Compute/virtualMachines/restart/action permission (or a role containing it) and cannot affect other VMs or resource types. It directly targets the resource that the engineer needs to restart.

Why this answer

Assigning the Virtual Machine Contributor role at the specific VM resource scope (VM-App01) grants the engineer permissions to restart only that VM, with no access to other VMs, storage accounts, or network resources in the same resource group. RBAC roles applied at a narrower scope (resource level) override broader scopes and limit permissions to that exact resource.

Exam trap

The trap here is that candidates often default to assigning roles at the resource group scope for simplicity, overlooking that this grants permissions to all resources in the group, not just the target VM.

Why the other options are wrong

A

Assigning at the management group scope would grant permissions to all subscriptions and resources within that management group, far exceeding the requirement to restrict access to only VM-App01.

C

Assigning the role at the resource group scope would grant the engineer permissions to all resources within that resource group, including other VMs, storage accounts, and network resources, violating the requirement to restrict access only to VM-App01.

D

Assigning the role at the subscription scope grants permissions to all resources in the subscription, including other VMs, storage accounts, and network resources, which violates the requirement to restrict access only to VM-App01.

172
Multi-Selectmedium

A subscription must block creation of resources in any region except East US and West US, and the security team also wants a nonblocking report of existing resources that are missing a CostCenter tag. Which two Azure Policy effects should you use? Select two.

Select 2 answers
A.Deny
B.Audit
C.Modify
D.DeployIfNotExists
E.Disabled
AnswersA, B

Deny is the correct effect to enforce a hard block on disallowed regions: Azure Policy evaluates the incoming create or update request and returns a 403 Forbidden for any noncompliant resource, so the deployment is stopped before any resource is provisioned. It works with the resource's `location` property at request time, making it ideal for a subscription-level mandate to reject resources in any region outside the approved geographies. Unlike audit-only effects, Deny prevents the noncompliant resource from existing at all.

Why this answer

Deny is correct because it actively blocks resource creation in regions outside East US and West US by evaluating the location property against an allowed list and rejecting non-compliant requests at deployment time. Audit is correct because it logs a compliance event for existing resources missing the CostCenter tag without blocking any operations, providing a nonblocking report for the security team.

Exam trap

The trap here is that candidates often confuse Audit (which only reports) with DeployIfNotExists or Modify (which actively remediate), leading them to select a remediation effect when the question explicitly asks for a nonblocking report.

Why the other options are wrong

C

Modify effect automatically changes non-compliant resources, but the requirement is to block creation in disallowed regions and only report missing CostCenter tags without remediation.

D

DeployIfNotExists is used to deploy resources (like a policy remediation task) when a non-compliant resource exists, but the requirement is only to report (non-blocking) missing CostCenter tags, not to automatically deploy a tag or resource.

E

The Disabled effect turns off a policy definition entirely, so it cannot block resource creation in restricted regions or generate a nonblocking report of untagged resources.

173
Multi-Selectmedium

The service desk needs to add and remove users from a support group that grants access to an internal application, but the service desk must not receive Azure subscription permissions. Which two actions should you take? Select two.

Select 2 answers
A.Create a security group in Microsoft Entra ID for the application access.
B.Add the service desk staff as owners of that group.
C.Assign the service desk staff Contributor on the subscription.
D.Convert the service desk staff into guest users in the tenant.
E.Add the service desk staff as members only, without ownership.
AnswersA, B

Security groups are the standard Entra ID container for access management. They let you grant permissions once and control membership centrally, which is ideal for a support team that will add and remove users often.

Why this answer

Creating a security group in Microsoft Entra ID (formerly Azure AD) allows you to manage access to the internal application without granting any Azure subscription permissions. The service desk can then add or remove users from this group, and the application's access control can be configured to rely on group membership, ensuring the service desk staff never receive Azure RBAC roles.

Exam trap

The trap here is that candidates often confuse Azure RBAC roles (like Contributor) with Microsoft Entra ID directory roles or group ownership, mistakenly thinking that managing group membership requires subscription-level permissions.

Why the other options are wrong

C

Assigning Contributor on the subscription grants the service desk broad Azure resource permissions, which violates the requirement that they must not receive Azure subscription permissions.

174
MCQmedium

Based on the exhibit, which identity should be enabled on the VM so the application can access Azure Blob Storage and the identity disappears when the VM is deleted?

A.System-assigned managed identity
B.User-assigned managed identity
C.Storage account shared key
D.SAS token stored in a startup script
AnswerA

A system-assigned managed identity is tied directly to one Azure resource, such as a VM. It is created and removed with the VM, which matches the requirement that the identity disappear automatically when the VM is deleted. The application can use the identity to request tokens for Blob Storage without storing secrets in code or configuration.

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 can be granted access to Azure Blob Storage via Azure RBAC, allowing the application to authenticate without storing credentials. This matches the requirement for an identity that disappears with the VM.

Exam trap

The trap here is that candidates often confuse user-assigned managed identities (which persist independently) with system-assigned managed identities (which are tied to the VM lifecycle), leading them to select the wrong option when the question explicitly requires the identity to disappear with the VM.

Why the other options are wrong

B

User-assigned managed identity persists independently of the VM lifecycle; it does not disappear when the VM is deleted, failing the requirement that the identity disappears with the VM.

C

A storage account shared key provides full access to the storage account and does not disappear when the VM is deleted; it persists until manually rotated or deleted, and it is not an identity tied to the VM lifecycle.

D

SAS tokens stored in a startup script do not automatically disappear when the VM is deleted; they persist in the script or storage, and they require manual management, unlike managed identities which are tied to the VM lifecycle.

175
MCQmedium

An Azure Automation account runs PowerShell runbooks that must authenticate to Azure resources without embedded secrets. The automation account is recreated periodically during deployment, and the identity must continue to work after recreation without reissuing credentials. Which identity should you use?

A.A system-assigned managed identity.
B.A user-assigned managed identity.
C.A service principal with a client secret stored in Key Vault.
D.A shared access signature token.
AnswerB

This identity exists independently of the Automation account and survives recreation.

Why this answer

A user-assigned managed identity (B) is the correct choice because it is an independent Azure resource that persists even when the Automation account is recreated. Unlike a system-assigned managed identity, which is tied to the lifecycle of the Automation account and is deleted when the account is deleted, a user-assigned managed identity can be reassigned to the new Automation account after recreation without requiring new credentials. This allows the runbooks to authenticate seamlessly using the same identity, avoiding embedded secrets.

Exam trap

The trap here is that candidates often assume a system-assigned managed identity is simpler and sufficient, but they overlook that it is deleted with the resource, making it unsuitable for scenarios where the resource is recreated and identity continuity is required.

Why the other options are wrong

A

A system-assigned managed identity is tied to the lifecycle of the Automation account; when the account is recreated, a new identity is created, breaking the association with existing role assignments and requiring reassignment.

C

The question requires that the identity continue to work after the automation account is recreated without reissuing credentials. A service principal with a client secret stored in Key Vault would require reissuing the secret or updating the runbook's reference after recreation, violating the 'without reissuing credentials' constraint.

D

A shared access signature (SAS) token is used for delegated access to Azure Storage resources, not for authenticating runbooks to Azure resources in general. It does not support the identity lifecycle requirement of surviving Automation account recreation without reissuing credentials.

176
MCQeasy

A team wants every resource in a subscription to include a Department tag. New resources that do not have the tag should be blocked from being created. Which Azure Policy effect should you use?

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

The Deny effect blocks any resource deployment or update that violates the policy rule. When a resource is submitted without the required tag, Azure Policy evaluates it in the request pipeline and returns an HTTP 403 Conflict before the resource is provisioned, so the noncompliant resource never exists. This is the only effect that enforces the mandatory tag at creation time and prevents the deployment from succeeding, making it the correct choice for the team's requirement.

Why this answer

The Deny effect is correct because it actively blocks any resource creation or update request that does not include the required Department tag, enforcing compliance at the time of the operation. Unlike Audit, which only logs non-compliant resources, Deny prevents the non-compliant resource from being provisioned, directly meeting the requirement to block new resources without the tag.

Exam trap

The trap here is that candidates often confuse Append with Deny, thinking Append will automatically add the tag and thus 'block' the resource, but Append only modifies the request and does not prevent creation if the tag cannot be applied, whereas Deny actively rejects the request.

Why the other options are wrong

A

Audit only logs non-compliant resources but does not block creation. The question requires blocking creation of new resources without the tag, which only Deny can enforce.

C

Append adds the missing tag to non-compliant resources but does not block creation; it only remediates after the fact, whereas the requirement is to block creation of untagged resources.

D

The 'Disabled' effect deactivates the policy, meaning it does not block or audit resources; thus it cannot prevent creation of untagged resources.

177
MCQmedium

A policy assignment denies storage accounts unless public network access is disabled. One legacy storage account in a pilot resource group must remain publicly reachable for 60 days while the application team remediates dependencies. Compliance reporting must continue to show the policy as enforced everywhere else. What should the administrator do?

A.Delete the policy assignment and re-create it later
B.Use an Azure Policy exemption for that storage account
C.Apply a read-only lock to the storage account
D.Assign a custom RBAC role to the application team
AnswerB

An Azure Policy exemption is the designed mechanism to exclude a specific resource or resource group from policy evaluation while the policy assignment remains active for all other resources. You can apply an exemption at the storage account's scope, set an expiration date, and classify it as Waiver or Mitigated, which documents the business rationale and keeps the resource visible in compliance reports as an approved exception. This preserves governance for the rest of the environment and maintains auditability.

Why this answer

An Azure Policy exemption allows the administrator to exclude a specific scope (the legacy storage account) from the policy's effect while still reporting the policy as enforced on all other resources. The exemption can be set with an expiration date (60 days) to automatically remove the exception after the remediation period. This ensures compliance reporting continues to show the policy as active and enforced everywhere except the exempted resource.

Exam trap

The trap here is that candidates confuse Azure Policy exemptions with RBAC or locks, thinking they can bypass policy enforcement through access control or resource protection, when in fact only a policy exemption (or exclusion) can selectively skip the policy's effect while maintaining compliance reporting.

Why the other options are wrong

A

Deleting the policy assignment would remove enforcement from all resources, not just the legacy storage account, violating the requirement that compliance reporting must continue to show the policy as enforced everywhere else.

C

A read-only lock prevents modifications to the storage account but does not exempt it from the policy that denies public network access; the policy would still block public access, making the account unreachable.

D

Assigning a custom RBAC role to the application team does not exempt the storage account from the policy; the policy still denies public network access, and RBAC roles control permissions, not policy compliance.

178
MCQeasy

A developer has the Reader role assigned at the subscription scope. Later, the developer is assigned Contributor at the RG-Web resource group scope. Which permission is inherited by a storage account inside RG-Web?

A.Only the Reader role from the subscription scope is inherited by the storage account.
B.The Contributor role from RG-Web is inherited by the storage account.
C.Neither role is inherited because storage accounts require a direct assignment.
D.Both roles are merged into a new custom role automatically.
AnswerB

Azure RBAC permissions are transitive along the scope hierarchy: subscription > resource group > resource. Because the storage account resides in RG-Web, the Contributor role assignment at the resource group scope is inherited by every resource in that group, including the storage account. This grants full management-plane control over the storage account, and it coexists with the broader Reader assignment at the subscription scope without negating it.

Why this answer

In Azure RBAC, permissions are inherited from higher scopes to lower scopes. The Contributor role assigned at the RG-Web resource group scope is inherited by all resources within that resource group, including the storage account. The Reader role from the subscription scope is also inherited, but the more permissive Contributor role at the resource group scope takes precedence for actions allowed by Contributor.

Therefore, the storage account effectively has Contributor permissions.

Exam trap

The trap here is that candidates often think only the most specific scope (resource group) applies and forget that roles from higher scopes (subscription) are also inherited, leading them to incorrectly choose Option A.

Why the other options are wrong

A

In Azure RBAC, permissions are additive and inherited from higher scopes. The Contributor role assigned at the resource group scope is inherited by all resources within that group, including the storage account, overriding the Reader role from the subscription for that resource.

C

Azure RBAC permissions are inherited from resource group scope to resources within that group, so the Contributor role assigned at RG-Web scope is inherited by the storage account inside RG-Web, not requiring a direct assignment.

D

Azure RBAC does not automatically merge roles into a new custom role. Permissions are additive: the effective permissions are the union of all assigned roles, not a merged custom role.

179
MCQmedium

A change-freeze requires that no one can modify the settings of a subscription's resource group for six hours. Deletion is not the main concern; the priority is to block changes to existing resources during the freeze. Which lock should you apply?

A.CanNotDelete
B.ReadOnly
C.Reader
D.DeployIfNotExists
AnswerB

The ReadOnly lock is the correct choice because it blocks all write operations against a resource, including create, update, and delete actions, while allowing reads. This effectively enforces a change freeze by preventing any configuration modification through the management plane, regardless of the user's role, because locks are evaluated above RBAC. Even an Owner cannot modify resources until the lock is removed, making it the strongest way to guarantee a freeze.

Why this answer

The ReadOnly lock prevents any modification to existing resources, including configuration changes, while still allowing read operations. This directly satisfies the change-freeze requirement to block changes for six hours, as it denies all write operations at the resource group scope.

Exam trap

The trap here is confusing Azure RBAC roles (like Reader) with resource locks, as both can restrict changes but locks are applied at the resource scope and override all permissions, while RBAC roles are identity-based and can be bypassed by privileged users.

Why the other options are wrong

A

The CanNotDelete lock prevents deletion but still allows modifications to existing resources, which does not satisfy the requirement to block all changes during the freeze.

C

The Reader role allows viewing resources but does not block modifications; it only prevents changes by users without contributor/owner permissions, not by administrators or automated processes. The question requires blocking all changes, which ReadOnly lock provides.

D

DeployIfNotExists is a policy effect, not a lock. It triggers a remediation task to deploy a resource if one doesn't exist, but it does not block changes to existing resources, which is the requirement here.

180
Multi-Selecteasy

A department wants three related policies grouped together and assigned as one unit to a set of subscriptions. Which two statements about an Azure Policy initiative are correct? Select two.

Select 2 answers
A.An initiative groups multiple policy definitions into one assignment.
B.An initiative can be assigned at management group scope to cover child subscriptions.
C.An initiative grants Azure permissions to users.
D.An initiative replaces resource group locks.
E.An initiative is used to create a new resource group.
AnswersA, B

An initiative is used to bundle related policy definitions so they can be managed together. This reduces administrative effort because you assign and review one control set instead of handling each policy separately.

Why this answer

An Azure Policy initiative is specifically designed to group multiple policy definitions into a single assignment. This allows you to apply a set of related compliance rules as one unit, simplifying management and ensuring consistent enforcement across subscriptions.

Exam trap

The trap here is that candidates often confuse Azure Policy initiatives with RBAC roles or resource locks, mistakenly thinking initiatives manage permissions or protect resources, when in fact they only enforce compliance rules.

Why the other options are wrong

C

An initiative does not grant permissions; Azure RBAC roles are used for granting permissions. Initiatives are for grouping and assigning policy definitions, not for access control.

D

An initiative does not replace resource group locks; it groups policy definitions for assignment. Resource group locks are a separate Azure governance feature that prevents accidental deletion or modification.

E

An initiative is a group of policy definitions, not a tool for creating resource groups. Resource groups are created via Azure Resource Manager templates, CLI, or portal, not through policy initiatives.

181
MCQeasy

Three VMs run the same batch app and should use the same Azure identity to read blobs. The identity should remain available even if one VM is deleted. Which identity should you use?

A.Shared access signature (SAS) token
B.System-assigned managed identity
C.User-assigned managed identity
D.Storage account shared key
AnswerC

A user-assigned managed identity is a standalone Azure AD identity that can be assigned to multiple Azure resources at the same time, including these three VMs. It remains available even if one VM is deleted, so all VMs keep the same identity and permission set without any reconfiguration. This makes it the correct choice because the batch app on each VM can authenticate to Azure services (such as Key Vault or Storage) with the same principal and grant once.

Why this answer

C is correct because a user-assigned managed identity is an independent Azure resource that persists even if a specific VM is deleted. This allows multiple VMs to share the same identity to authenticate to Azure Blob Storage, ensuring continuous access to blobs as long as at least one VM remains.

Exam trap

The trap here is that candidates often choose system-assigned managed identity (Option B) because it is simpler to set up, but they overlook the requirement that the identity must survive VM deletion, which only a user-assigned identity guarantees.

Why the other options are wrong

A

A SAS token is tied to a specific storage account and can be revoked or expire, but it is not an Azure identity that can be assigned to VMs. It does not persist independently of VMs and cannot be used as a shared identity across multiple VMs that remains available if one VM is deleted.

B

A system-assigned managed identity is tied to a single VM and is deleted when that VM is deleted, so it would not remain available if one VM is removed.

D

A storage account shared key provides full access to the storage account and is not tied to a specific identity; it cannot be scoped to only the VMs and would remain valid even if a VM is deleted, but it does not meet the requirement of using an Azure identity for the batch app.

182
MCQeasy

Based on the exhibit, where should the administrator go to see which resources are non-compliant with the assigned policy?

A.Azure Policy compliance view.
B.Entra ID users and groups.
C.Azure Activity log only.
D.Resource locks blade.
AnswerA

The Azure Policy compliance view, accessible under the Policy blade, provides the authoritative report of evaluation results for assigned policy definitions and initiatives. It displays per-resource and per-policy compliance states such as Compliant, Non-compliant, and Conflicting, and you can filter by scope, export to CSV, or open the raw compliance data. This is where an administrator must go to see which specific resources are non-compliant and why, including the triggering policy rule and any effect applied.

Why this answer

The Azure Policy compliance view is the correct place to see which resources are non-compliant with assigned policies. This view aggregates compliance states across all policies and initiatives, showing a per-resource breakdown of compliant, non-compliant, and exempt statuses. It directly reflects the evaluation results from the Azure Policy engine, which runs periodic scans and on-demand evaluations.

Exam trap

The trap here is that candidates confuse the Azure Activity log (which records who did what) with the Azure Policy compliance view (which shows what is out of compliance), leading them to pick the Activity log instead of the dedicated compliance dashboard.

Why the other options are wrong

B

The question asks for non-compliance with an assigned policy, which is specifically tracked in Azure Policy compliance view. Entra ID users and groups manage identity and access, not policy compliance.

D

The Resource locks blade is used to prevent accidental deletion or modification of resources, not to check policy compliance. Non-compliant resources are identified in the Azure Policy compliance view.

183
MCQhard

Three Azure VMs in separate resource groups run the same data-processing agent. The agent must read blobs from a storage account, and the access must continue to work if any VM is rebuilt or replaced. The operations team also wants one identity they can reassign to future VMs without creating another credential. Which identity approach should be used?

A.A system-assigned managed identity on each VM.
B.A storage account shared key embedded in the application settings.
C.A service principal credential stored in a Key Vault secret.
D.A user-assigned managed identity attached to the VMs.
AnswerD

A user-assigned managed identity is the right choice when the same Azure identity must be shared across multiple VMs and survive VM replacement. You can grant it access once, attach it to current and future VMs, and avoid storing passwords or access keys in the workload.

Why this answer

A user-assigned managed identity (D) is the correct choice because it is a standalone Azure resource that can be created independently and then attached to multiple VMs. If a VM is rebuilt or replaced, the same user-assigned identity can be reassigned to the new VM without any credential rotation or secret management. This ensures continuous blob access via Azure AD authentication, meeting the requirement for a single, reusable identity.

Exam trap

The trap here is that candidates confuse system-assigned and user-assigned managed identities, assuming both are equally reusable, but system-assigned identities are deleted with the VM, making them unsuitable for scenarios requiring identity persistence across VM rebuilds.

Why the other options are wrong

A

A system-assigned managed identity is tied to the lifecycle of a single VM; if the VM is rebuilt, the identity is deleted and recreated, breaking the RBAC role assignment on the storage account. The question requires the identity to persist across VM rebuilds.

B

A storage account shared key embedded in application settings is not secure and does not support identity reassignment; if a VM is rebuilt, the key must be re-deployed, and it cannot be easily reassigned to future VMs without creating a new credential.

C

A service principal credential stored in Key Vault requires managing a secret and rotating it, and if the VM is rebuilt, the application must retrieve the secret again, which adds complexity and a dependency on Key Vault availability. The question requires a single identity that can be reassigned to future VMs without creating another credential, which user-assigned managed identity fulfills more directly.

184
MCQmedium

Based on the exhibit, which Azure Policy construct should the administrator use to deploy and manage these guardrails as one unit across the department?

A.Create an Azure Policy initiative and assign it at the management group scope.
B.Create an Azure RBAC role assignment at the management group scope.
C.Apply a ReadOnly lock to each subscription.
D.Move all resources into one resource group.
AnswerA

An Azure Policy initiative (also known as a policySetDefinition) aggregates multiple related policy definitions into a single assignable unit. By assigning the initiative at the management group scope, you propagate the enforcement and compliance evaluation to every subscription and resource group within that hierarchy, ensuring consistent application of tag requirements, allowed locations, and other guardrails across a large enterprise without per-subscription assignments.

Why this answer

An Azure Policy initiative is a collection of policy definitions designed to group related policies together for deployment as a single unit. By assigning the initiative at the management group scope, the administrator can enforce consistent guardrails across all subscriptions within that management group, ensuring centralized governance and compliance for the entire department.

Exam trap

The trap here is confusing Azure Policy initiatives with RBAC roles or resource locks, as candidates often think access control or resource protection alone can enforce governance guardrails, but only policy initiatives provide the unified, rule-based deployment and management of compliance requirements.

Why the other options are wrong

B

Azure RBAC role assignments manage permissions for users/groups, not guardrails like policies. The question asks for deploying and managing guardrails (policy rules) as a unit, which requires an initiative, not RBAC.

C

Applying a ReadOnly lock to each subscription prevents accidental deletion or modification of resources but does not deploy or manage guardrails (policies) as a unit; it is a separate control mechanism, not a policy construct.

D

Moving all resources into one resource group does not deploy or manage guardrails as a unit; it only consolidates resources without enforcing any policies or compliance rules.

185
MCQmedium

A PowerShell script runs on an Azure VM every night and uses Azure CLI commands to create tags and VM resources in another subscription. The script cannot store a password or client secret. What should it use to authenticate to Azure?

A.az login with a username and password.
B.az login --identity.
C.Connect-AzAccount with device code authentication.
D.An app registration secret stored in a PowerShell variable.
AnswerB

The Azure CLI can sign in with the VM's managed identity by using az login --identity. That allows the script to authenticate without storing a password or client secret. After sign-in, the identity can be granted access to the target subscription or resource group, which makes the solution both secure and automation-friendly for nightly jobs.

Why this answer

The script runs on an Azure VM and can use a managed identity to authenticate without storing any secrets. The `az login --identity` command uses the VM's system-assigned or user-assigned managed identity to obtain an Azure AD access token via the Azure Instance Metadata Service (IMDS) endpoint. This satisfies the requirement of no password or client secret storage.

Exam trap

The trap here is that candidates often confuse managed identity with service principal secrets or device code authentication, assuming any non-interactive method requires a stored secret, but `az login --identity` provides secretless authentication for Azure resources.

Why the other options are wrong

A

The script cannot store a password or client secret, and interactive username/password login is not suitable for unattended execution. Additionally, Azure CLI's 'az login' with username/password requires interactive input or storing credentials, which violates the constraint.

C

Device code authentication requires interactive user input (browser login), but the script runs unattended every night, so it cannot complete the device code flow without human intervention.

D

The script cannot store a password or client secret, so using an app registration secret stored in a PowerShell variable violates that constraint. Additionally, secrets require secure storage and management, which is not feasible in an unattended script without credential storage.

186
MCQmedium

Based on the exhibit, where should the Reader role be assigned so the audit team automatically has access to every current and future subscription under Corp?

A.Assign Reader at the Corp management group scope.
B.Assign Reader at the subscription scope for Sub-001.
C.Assign Reader at the resource group scope in each subscription.
D.Assign Reader directly to each resource that the audit team might review.
AnswerA

Assigning the Reader role at the Corp management group scope is correct because Azure RBAC role assignments are inherited by all child scopes: subscriptions, resource groups, and resources that reside under that management group. Since Corp presumably contains all current and future subscriptions, a single assignment guarantees the audit team has read-only visibility across the entire hierarchy without needing further assignments. This aligns with the recommended practice of assigning roles at the highest applicable scope to minimize administrative overhead and ensure consistent access.

Why this answer

Assigning the Reader role at the Corp management group scope uses Azure RBAC inheritance to grant the audit team read-only access to all current and future subscriptions under that management group. Because management group scope propagates role assignments to all child subscriptions and resource groups, this ensures automatic coverage without manual updates.

Exam trap

The trap here is that candidates often choose subscription-level assignment (Option B) because they think it covers all resources in that subscription, but they overlook that the question requires access to every current and future subscription under Corp, which only management group inheritance can provide.

Why the other options are wrong

B

Assigning Reader at the subscription scope for Sub-001 only grants access to that specific subscription, not to every current and future subscription under Corp. The requirement is for automatic access to all subscriptions, which requires assignment at the management group scope.

C

Assigning Reader at the resource group scope does not grant access to every current and future subscription under Corp; it only covers specific resource groups within a single subscription, failing to meet the requirement for automatic access across all subscriptions.

D

Assigning Reader at the resource level would require manual assignment to each resource, failing to provide automatic access to all current and future subscriptions under Corp. It does not scale and violates the principle of least privilege by granting access at too granular a level.

187
MCQeasy

A newly created VM must read secrets from Azure Key Vault. The solution must not store credentials on the VM, and the identity should disappear automatically when the VM is deleted. What should the administrator enable?

A.User-assigned managed identity
B.System-assigned managed identity
C.A service principal with a stored client secret
D.A storage account access key
AnswerB

A system-assigned managed identity is tied directly to one VM. Azure creates and manages the identity for that resource, so no passwords or client secrets need to be stored on the server. When the VM is deleted, the identity is removed automatically, which satisfies both security and lifecycle requirements.

Why this answer

A system-assigned managed identity is automatically created and tied to the lifecycle of the Azure VM. When the VM is deleted, the identity is automatically removed, satisfying the requirement that the identity disappears. This identity can be granted access to Key Vault secrets via Azure RBAC or access policies, without storing any credentials on the VM.

Exam trap

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

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 that the identity should disappear automatically.

D

A storage account access key is a static credential that must be stored on the VM, violating the requirement to not store credentials on the VM, and it does not automatically disappear when the VM is deleted.

188
MCQeasy

Based on the exhibit, what should the administrator create to let Alex restart one VM and read its properties without giving broader permissions?

A.Create a custom role that includes only the required VM read and restart actions.
B.Create an Azure Policy assignment that allows restart operations on the VM.
C.Apply a CanNotDelete lock to the VM resource.
D.Move the VM to a management group so the permissions become more specific.
AnswerA

A custom role lets the administrator define only the actions needed for the task, such as reading VM properties and restarting the VM. That is the cleanest least-privilege solution when built-in roles are broader than necessary.

Why this answer

Azure custom roles allow you to define granular permissions by specifying only the required actions in the `Actions` field of the role definition. For Alex to restart a VM (`Microsoft.Compute/virtualMachines/restart/action`) and read its properties (`Microsoft.Compute/virtualMachines/read`), a custom role with exactly these two actions provides the least-privilege access without granting broader permissions like VM write or delete.

Exam trap

The trap here is that candidates confuse Azure Policy (which enforces configurations) with RBAC (which controls permissions), or they mistakenly think locks or management groups can grant specific actions like restart.

Why the other options are wrong

B

Azure Policy is used to enforce compliance rules on resources, not to grant permissions. It cannot allow a user to perform actions like restarting a VM; it only evaluates and enforces conditions.

C

A CanNotDelete lock prevents deletion of the VM but does not grant permissions to restart it or read its properties; it only blocks delete operations, not controls access.

D

Moving a VM to a management group does not grant specific permissions like restart or read properties; it only changes the scope for policy and compliance inheritance, not role-based access control.

189
Drag & Dropmedium

Arrange the steps to create a virtual network in Azure with a subnet and deploy a VM.

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

First create the VNet with address space, then add a subnet, associate NSG, deploy VM, then verify.

190
MCQmedium

New Azure subscriptions are created every month. Production subscriptions require stricter governance than sandbox subscriptions, and central IT wants those rules to apply automatically to any future production subscription without reconfiguring each one. What should they set up?

A.Separate resource groups for production and sandbox workloads in each subscription.
B.A management group hierarchy with production and sandbox child management groups, then assign governance at the appropriate scope.
C.A CanNotDelete lock on each subscription.
D.A custom role assigned to each subscription owner.
AnswerB

Management groups provide a hierarchy for organizing subscriptions and applying governance that inherits to child scopes. Placing production and sandbox subscriptions under different child management groups lets central IT target different controls once, and the settings flow automatically to future subscriptions placed in those groups.

Why this answer

Management groups allow you to build a hierarchy that reflects your organizational structure and apply governance policies (e.g., Azure Policy, RBAC) at the management group scope. By creating a 'Production' child management group under the root, any new subscription placed in that group automatically inherits the assigned policies and role assignments, eliminating the need to reconfigure each subscription individually.

Exam trap

The trap here is that candidates confuse resource groups or locks with management groups, failing to realize that only management groups provide hierarchical inheritance of governance across multiple subscriptions without per-subscription configuration.

Why the other options are wrong

A

Resource groups organize resources within a subscription but do not enforce governance across multiple subscriptions or automatically apply rules to new subscriptions. The question requires automatic application of governance to new production subscriptions, which management groups provide.

C

A CanNotDelete lock prevents deletion of a subscription but does not enforce governance policies like tagging, RBAC, or compliance rules across multiple subscriptions automatically.

D

Custom roles assigned to subscription owners do not automatically apply to new subscriptions; each new subscription would require manual role assignment, failing the requirement for automatic governance.

191
Multi-Selectmedium

An operations team must enforce two rules across all subscriptions in a department: new resources must include a CostCenter tag, and deployments are allowed only in East US and West US. The team wants one assignment and automatic blocking of noncompliant deployments. Which three actions should the administrator take? Select three.

Select 3 answers
A.Create an Azure Policy initiative that contains both policy definitions.
B.Assign the initiative at the management group scope that contains the department subscriptions.
C.Use the Deny effect for both policy definitions.
D.Grant Contributor at the subscription scope.
E.Apply a CanNotDelete lock to each resource group.
AnswersA, B, C

An Azure Policy initiative (policySetDefinition) bundles multiple related policy definitions into a single assignable unit, enabling the operations team to manage the tag and location requirements as one cohesive governance package. Instead of assigning two separate policies, an initiative simplifies administration, keeps related rules organized, and ensures that both definitions are always evaluated together consistently across all resources.

Why this answer

An Azure Policy initiative (a set of policy definitions) allows combining the CostCenter tag requirement and the allowed region restriction into a single assignment, simplifying management. This ensures both rules are enforced together across all subscriptions in the department.

Exam trap

The trap here is that candidates often confuse RBAC roles (like Contributor) with Azure Policy effects, mistakenly thinking granting permissions can enforce compliance, or they confuse resource locks with policy enforcement.

Why the other options are wrong

D

Granting Contributor at the subscription scope does not enforce tagging or location restrictions; it grants broad permissions to manage resources, not block noncompliant deployments.

E

Applying a CanNotDelete lock prevents deletion of resource groups but does not enforce tagging or restrict deployment locations, which are the requirements in this question.

192
MCQeasy

An administrator wants to run a one-time Azure CLI command from inside a VM to create a resource in Azure, but the administrator does not want to store credentials on the VM. What should be used for authentication?

A.The VM's managed identity
B.A local administrator password
C.A network security group rule
D.An Azure region paired with the VM
AnswerA

The VM’s managed identity lets scripts or Azure CLI commands authenticate to Azure without storing secrets on the machine. After the identity is enabled and granted the needed role, the command can sign in by using the identity instead of a password or service principal secret. This is the secure and practical approach.

Why this answer

Azure Managed Identity provides an automatically managed identity in Azure AD that allows a VM to authenticate to any service that supports Azure AD authentication, including Azure Resource Manager, without storing any credentials on the VM. When the administrator runs the Azure CLI command from within the VM, the CLI can use the managed identity's token endpoint (169.254.169.254/metadata/identity/oauth2/token) to obtain an access token, enabling secure, credential-free resource creation.

Exam trap

The trap here is that candidates may confuse authentication with authorization or network controls, thinking a local password or NSG rule can somehow grant Azure resource creation permissions, when only an Azure AD-backed identity like a managed identity can provide credential-free authentication to ARM.

Why the other options are wrong

B

A local administrator password would be stored on the VM, violating the requirement to not store credentials. It also does not provide Azure AD authentication for Azure CLI commands.

C

A network security group (NSG) rule controls inbound/outbound traffic to a VM, not authentication for Azure CLI commands. It cannot provide credentials or identity for creating Azure resources.

D

An Azure region paired with the VM is used for disaster recovery and geo-redundancy, not for authentication. It does not provide any identity or credential to authorize Azure CLI commands.

193
MCQhard

A project team has 12 operators who need to read resource properties and restart only the virtual machines in one application resource group. Access should be removed automatically when an operator leaves the team, and any new VMs added to that resource group should inherit the same access without further changes. What should the administrator configure?

A.Assign the role directly to each operator at the resource group scope.
B.Create an Entra ID group, add the operators to it, and assign a custom least-privilege role to the group at the resource group scope.
C.Assign Virtual Machine Contributor to the team at the subscription scope.
D.Use a resource lock and add the operators as lock owners.
AnswerB

Using a group makes access management dynamic, because removing someone from the group immediately removes their effective permissions. Assigning the role at the resource group scope also ensures any new VM in that group inherits the access automatically, while a custom role can keep permissions limited to read and restart actions.

Why this answer

It uses an Entra ID group to manage access, which allows automatic removal of operators from the group when they leave the team, and any new VMs added to the resource group will inherit the role assignment at the resource group scope. A custom least-privilege role ensures operators can only read resource properties and restart VMs, meeting the specific requirements without over-permissioning.

Exam trap

The trap here is that candidates often confuse resource locks with RBAC permissions, thinking locks can control access, or they overlook the need for a group-based approach to meet the automatic access removal requirement, instead choosing direct assignments or overly broad subscription-level roles.

Why the other options are wrong

A

Direct role assignment per operator requires manual updates when operators leave or new VMs are added, failing the automatic access removal and inheritance requirements.

C

Assigning Virtual Machine Contributor at the subscription scope grants excessive permissions (e.g., ability to manage all VMs across all resource groups) and does not restrict access to only reading properties and restarting VMs in one resource group. It also does not automatically remove access when an operator leaves, as the role is assigned directly to the team rather than through a group.

D

Resource locks prevent accidental deletion or modification of resources but do not grant access permissions; they cannot provide the read and restart permissions required for the operators.

194
Multi-Selecthard

A contractor is a member of an Entra security group that has a PIM-eligible Contributor assignment on a resource group. The contractor sees the role in the portal, but deployment fails with a role not active message. The activation policy requires justification, MFA, and manager approval. Which two actions are required before the deployment succeeds? Select two.

Select 2 answers
A.Activate the eligible role assignment in Privileged Identity Management.
B.Complete the configured activation requirements, such as justification, MFA, and manager approval.
C.Add the contractor directly to the subscription Owner role to bypass the eligibility workflow.
D.Wait for Azure Policy compliance evaluation to finish before trying again.
E.Remove the user from the security group and add them back so the role becomes active.
AnswersA, B

An eligible assignment does not grant active access until the user activates it. Seeing the role in the portal only means the assignment exists; it does not mean it is currently effective. Activation is the first required step to make the permissions usable.

Why this answer

The contractor has a PIM-eligible role assignment, which means the role is not active until the user activates it through Privileged Identity Management. Activation is a prerequisite for the role to be effective, and without it, any deployment requiring the Contributor role will fail with a 'role not active' message.

Exam trap

The trap here is that candidates often assume an eligible role assignment is immediately usable, but PIM requires explicit activation with all configured requirements before the role becomes effective for deployments.

Why the other options are wrong

C

Adding the contractor directly to the subscription Owner role bypasses the PIM eligibility workflow and violates the principle of least privilege; it does not address the requirement to activate the eligible role assignment.

D

Azure Policy compliance evaluation does not affect role activation; the deployment fails because the PIM-eligible role must be activated first, not because of policy evaluation.

E

Removing and re-adding the user does not activate the PIM-eligible role; the role remains inactive until the user activates it through PIM and meets the policy requirements.

195
MCQhard

An enterprise has a management group named Corp. Corp contains two child management groups: Prod and Sandbox. A compliance auditor is a member of an Entra ID group and must have read-only access to every current and future resource in all subscriptions that are under Prod. The auditor must not see resources in Sandbox, and the admin does not want to maintain separate assignments for each new subscription. What should the administrator do?

A.Assign the Reader role to the group at each subscription scope under Prod.
B.Assign the Reader role to the group at the Corp management group scope.
C.Assign the Reader role to the group at the Prod management group scope.
D.Assign the Reader role to the group at one resource group in each Prod subscription.
AnswerC

A role assignment at the Prod management group scope inherits to all subscriptions, resource groups, and resources beneath that management group, including future subscriptions placed there later. It also stays limited to Prod, so Sandbox remains outside the auditor's visibility.

Why this answer

Assigning the Reader role at the Prod management group scope applies that permission to all current and future subscriptions and resources within Prod, satisfying the requirement for read-only access without needing separate assignments. Management groups in Azure provide a hierarchical scope that inherits role assignments to all child subscriptions and resource groups, making this the most efficient and future-proof approach.

Exam trap

The trap here is that candidates may choose Option B (assign at Corp scope) thinking it covers all subscriptions, but they overlook that it would also grant access to Sandbox, failing the requirement to restrict the auditor to Prod only.

Why the other options are wrong

A

Assigning the Reader role at each subscription scope under Prod requires maintaining separate assignments for each new subscription, which contradicts the requirement to avoid manual maintenance.

B

Assigning the Reader role at the Corp management group scope would grant read-only access to all subscriptions under both Prod and Sandbox, violating the requirement that the auditor must not see resources in Sandbox.

D

Assigning the Reader role at one resource group in each Prod subscription does not grant access to all current and future resources in the entire subscription, only to that specific resource group. It also requires maintaining separate assignments for each new subscription, violating the requirement to avoid that.

196
MCQmedium

A platform team runs an internal automation tool that must restart VMs and read network interface settings in one resource group. Built-in roles available to the team are broader than the access they want to grant. What should the administrator create?

A.A custom role with only the required compute and read permissions, assigned at the resource group scope.
B.The Contributor role assigned at the subscription scope.
C.The Reader role assigned at the resource group scope.
D.The Network Contributor role assigned at the resource group scope.
AnswerA

A custom role is the preferred approach because it enforces least privilege: the role definition can be scoped to only the specific Microsoft.Compute actions necessary for the automation (for example, Microsoft.Compute/virtualMachines/start/action, restart/action, and read), and assigning it at the resource group scope ensures the tool cannot affect resources outside that boundary. This gives the exact operational permissions needed without granting subscription-wide or unrelated network/admin access.

Why this answer

The team needs only specific actions (restart VMs and read network interface settings) within a single resource group. Creating a custom role with only the required compute and read permissions, assigned at the resource group scope, follows the principle of least privilege and avoids granting broader access than necessary. Built-in roles like Contributor or Network Contributor include extra permissions (e.g., write, delete) that are not needed.

Exam trap

The trap here is that candidates often choose a built-in role like Contributor or Network Contributor because they see 'restart' or 'network' in the name, without realizing these roles include excessive permissions that violate the principle of least privilege.

Why the other options are wrong

B

The Contributor role at subscription scope grants full management access to all resources in the subscription, which is far broader than the required permissions to restart VMs and read network interface settings in a single resource group.

C

The Reader role grants read-only access, but the automation tool needs to restart VMs, which requires write permissions (e.g., Microsoft.Compute/virtualMachines/restart/action). Reader cannot perform restart operations.

D

The Network Contributor role only grants permissions for network resources, not for restarting VMs (which requires compute permissions like Microsoft.Compute/virtualMachines/restart/action).

197
MCQeasy

Based on the exhibit, which lock should the administrator apply so resources can still be updated but cannot be deleted by mistake?

A.ReadOnly lock
B.CanNotDelete lock
C.Subscription lock
D.Management group lock
AnswerB

CanNotDelete is the correct lock when the organization wants to allow configuration changes but prevent accidental deletion. It protects the resource group and its resources from delete operations while still letting administrators update settings and perform normal management tasks.

Why this answer

The CanNotDelete lock (option B) is correct because it allows all operations including updates and reads, but explicitly prevents deletion of the resource. This meets the requirement that resources can still be updated but cannot be deleted by mistake. Azure resource locks operate at the scope level and override any role-based permissions, ensuring that even users with Contributor or Owner roles cannot delete the resource while the lock is active.

Exam trap

The trap here is that candidates often confuse the ReadOnly lock with the CanNotDelete lock, mistakenly thinking that a ReadOnly lock still allows updates, when in fact it blocks all write operations including updates, making it unsuitable for the stated requirement.

Why the other options are wrong

A

A ReadOnly lock prevents any modifications, including updates, to resources. The question requires that resources can still be updated but not deleted, so a ReadOnly lock is too restrictive.

C

A subscription lock applies to the entire subscription, not just the resources in the exhibit. The question asks for a lock that allows updates but prevents deletion of specific resources, which is the CanNotDelete lock at the resource or resource group scope.

D

A management group lock applies to all subscriptions within the management group hierarchy, not to individual resources. The question asks for a lock that allows updates but prevents deletion of specific resources, which is the CanNotDelete lock at the resource or resource group scope.

198
MCQmedium

An Azure administrator deploys a Linux VM that runs an application needing to read secrets from Azure Key Vault. The security policy forbids storing passwords, certificates, or access tokens on the VM. The application will run only on this single VM. What should be enabled on the VM?

A.Store a service principal secret in a protected file and use it at startup.
B.Enable a system-assigned managed identity on the VM.
C.Create a user-assigned managed identity and avoid assigning it to the VM.
D.Use an SSH certificate to authenticate the app to Key Vault.
AnswerB

Enabling a system-assigned managed identity on the VM creates an Azure AD identity that is tied directly to the VM's lifecycle. The application can request an access token for Azure Key Vault using the Azure Instance Metadata Service (IMDS) endpoint at 169.254.169.254, which requires no hardcoded credentials. Azure automatically rotates and manages the identity's principal, so the VM never stores a secret on disk, fully satisfying the security requirement.

Why this answer

A system-assigned managed identity enables the VM to authenticate to Azure Key Vault without storing any credentials on the VM. Azure automatically creates a service principal in Azure AD for the VM, and the application can obtain an access token from the Azure Instance Metadata Service (IMDS) endpoint (169.254.169.254) using that identity. This satisfies the security policy forbidding stored secrets because the identity is managed entirely by Azure and no passwords, certificates, or tokens are stored locally.

Exam trap

The trap here is that candidates may confuse SSH certificates (used for VM access) with Azure AD authentication tokens, or incorrectly assume that a user-assigned managed identity can be used without assignment to the VM.

Why the other options are wrong

A

Storing a service principal secret in a protected file violates the security policy that forbids storing passwords, certificates, or access tokens on the VM. Managed identity eliminates the need for any stored credentials.

C

The question requires the application to read secrets from Key Vault without storing credentials on the VM. A user-assigned managed identity not assigned to the VM cannot be used by the VM to authenticate; the identity must be assigned to the VM to be used.

D

SSH certificates authenticate the user or system to the VM for SSH access, not the application to Azure Key Vault. The application needs an Azure AD identity to access Key Vault secrets, which SSH certificates cannot provide.

199
MCQhard

Based on the exhibit, where should you assign the Reader role so the Auditors group can read every current and future resource in the Sales subscription, including resource groups created later, while not granting access to the Research subscription?

A.Assign Reader to RG-Web, because the group can then inherit access to resources in that resource group only.
B.Assign Reader to the Sales subscription, because subscription-level scope includes all current and future resource groups and resources in that subscription.
C.Assign Reader to the Corp management group, because that is the only scope that can cover multiple subscriptions.
D.Assign Reader to each resource individually, because that avoids inheritance and limits visibility to selected items.
AnswerB

Subscription scope is the narrowest scope that satisfies the requirement. RBAC inheritance flows downward, so a Reader assignment at the Sales subscription applies to all current and future resource groups and resources inside Sales, but it does not grant access to the Research subscription.

Why this answer

Assigning the Reader role at the Sales subscription scope grants the Auditors group read access to all current and future resource groups and resources within that subscription. This is because Azure RBAC roles assigned at a subscription level are inherited by all child resource groups and resources, including those created later. The requirement explicitly excludes the Research subscription, so a subscription-level assignment is the correct and most efficient approach.

Exam trap

The trap here is that candidates often choose the management group scope (Option C) thinking it is necessary to cover multiple subscriptions, but they overlook the requirement to exclude the Research subscription, making the subscription-level scope the only correct choice.

Why the other options are wrong

A

Assigning Reader to RG-Web only grants read access to resources within that specific resource group, not to all current and future resources in the Sales subscription. The requirement is to read every resource in the Sales subscription, which requires subscription-level scope.

C

Assigning Reader to the Corp management group would grant read access to all subscriptions under that management group, including the Research subscription, which violates the requirement to not grant access to Research.

D

Assigning Reader to each resource individually would require manual updates for every new resource, failing to meet the requirement to read every current and future resource without granting access to the Research subscription. It also violates the principle of least privilege by not leveraging inheritance.

200
MCQmedium

A company uses one management group for all production subscriptions. A compliance analyst is a member of an Entra ID group and must view every current and future resource in all production subscriptions, but must not make any changes. Where should you assign the Reader role?

A.Assign Reader to the compliance analyst's user account at each resource group.
B.Assign Reader to the Entra ID group at the management group scope.
C.Assign Reader to one production subscription and rely on inheritance to cover the others.
D.Assign Reader directly to each resource because resource-level assignments always override broader scopes.
AnswerB

This is the best choice because role assignments inherit from management groups down to subscriptions, resource groups, and resources. By assigning Reader to the Entra ID group at the management group level, every current and future production subscription under that hierarchy will inherit read-only access. Using the group also makes access easier to manage when analysts join or leave the team.

Why this answer

Assigning the Reader role to the Entra ID group at the management group scope ensures that all current and future resources in all production subscriptions inherit the role via Azure RBAC inheritance. This meets the requirement to view every resource without making changes, as the management group encompasses all production subscriptions and the group membership automatically grants permissions to the compliance analyst.

Exam trap

The trap here is that candidates often assume they must assign roles at the subscription or resource group level, overlooking the management group scope which provides inheritance across multiple subscriptions and future resources without manual intervention.

Why the other options are wrong

A

Assigning Reader to the compliance analyst's user account at each resource group fails to cover future resources and is inefficient; it also doesn't meet the requirement to view all resources across all production subscriptions.

C

Assigning Reader to one subscription does not cover other production subscriptions; inheritance only applies within the same hierarchy, not across sibling subscriptions.

D

Assigning Reader directly to each resource is inefficient and violates the principle of least privilege by requiring individual assignments for every resource, which does not scale and does not cover future resources. The question requires viewing all current and future resources, which is best achieved at the management group scope.

201
MCQeasy

The platform team wants to block deployment of Azure resources in any region except East US and West US. What should they configure?

A.An Azure Policy assignment that uses an allowed locations policy
B.A Reader role assignment at the management group
C.A CanNotDelete lock on the subscription
D.A tag requirement enforced only by resource group naming
AnswerA

Azure Policy is designed to enforce configuration rules such as approved regions. An allowed locations policy can deny deployments outside East US and West US, which directly matches the requirement. This is governance, not authorization, so RBAC is not the right tool for controlling where resources can be created.

Why this answer

Azure Policy's 'allowed locations' built-in policy definition enables you to restrict the regions where resources can be deployed. By assigning this policy at a management group or subscription scope with a parameter list containing only 'East US' and 'West US', any attempt to deploy resources in other regions will be denied at the Azure Resource Manager level, effectively blocking non-compliant deployments.

Exam trap

The trap here is that candidates often confuse Azure Policy with Azure RBAC roles or resource locks, mistakenly thinking that a Reader role or a CanNotDelete lock can restrict where resources can be deployed, when in fact only Azure Policy can enforce such location-based governance rules.

Why the other options are wrong

B

A Reader role assignment grants read-only access to resources but does not prevent deployment in disallowed regions; it only limits management operations, not resource creation.

C

A CanNotDelete lock prevents deletion of resources but does not restrict deployment to specific regions. The question asks to block deployment in disallowed regions, which requires a policy, not a lock.

D

A tag requirement enforced only by resource group naming does not block deployment in disallowed regions; it only enforces naming conventions, not regional restrictions.

202
MCQmedium

A company creates new Azure subscriptions every month. Central IT wants all production subscriptions to inherit the same governance baseline automatically, while sandbox subscriptions remain separate. What should the administrator implement?

A.Apply all governance controls individually to each new subscription after it is created.
B.Organize subscriptions under management groups and assign the baseline at the appropriate management group.
C.Use a resource lock on the subscription root.
D.Place all resources into one shared resource group per business unit.
AnswerB

Management groups provide inheritance so new subscriptions automatically receive the assigned governance controls.

Why this answer

Management groups allow hierarchical organization of Azure subscriptions, enabling the assignment of Azure Policy and RBAC at the management group level. By placing all production subscriptions under a dedicated management group and assigning the governance baseline (e.g., Azure Policy initiatives) to that group, new subscriptions automatically inherit the baseline without manual intervention. Sandbox subscriptions remain separate by being placed in a different management group or at the root level without the baseline.

Exam trap

The trap here is confusing resource locks (which protect against accidental deletion/modification) with governance baselines (which enforce compliance via Azure Policy), leading candidates to incorrectly select resource locks as a solution for automatic policy inheritance.

Why the other options are wrong

A

Applying governance controls individually to each new subscription is not automated and does not scale, failing to meet the requirement that all production subscriptions inherit the baseline automatically.

C

A resource lock prevents accidental deletion or modification of a subscription, but it does not enforce governance baselines like policies or RBAC across multiple subscriptions. It cannot automatically inherit settings to new subscriptions.

D

Placing all resources into one shared resource group per business unit does not automatically inherit governance baselines across subscriptions; it only groups resources within a single subscription, failing to address the requirement for automatic inheritance across multiple production subscriptions.

203
Multi-Selectmedium

An administrator assigned a policy definition with the Modify effect to add tag Environment=Prod to resources in a subscription. Existing VMs still do not show the tag. Which two actions should the administrator take to bring the existing VMs into compliance? Select two.

Select 2 answers
A.Create a remediation task for the policy assignment.
B.Verify that the policy assignment identity has permission to modify tags at the assigned scope.
C.Reassign the policy at the resource group scope only.
D.Switch the policy effect to AuditIfNotExists.
E.Manually tag only the newest virtual machines.
AnswersA, B

A modify-effect policy only evaluates new or updated resources unless you explicitly remediate the existing inventory. Creating a remediation task triggers the assignment's managed identity to run the modify operation against all current non-compliant resources at the assigned scope, bringing them into compliance by adding the required tag. Without this step, the policy stays non-compliant for pre-existing VMs even though the definition and assignment are correct.

Why this answer

A is correct because a policy with the Modify effect does not automatically apply to existing non-compliant resources; a remediation task must be triggered to evaluate and update those resources. Remediation uses the managed identity assigned to the policy to perform the modification, which is why verifying that identity has the necessary permissions (option B) is also required. Without remediation, only new resources created after the policy assignment will have the tag applied.

Exam trap

The trap here is that candidates assume the Modify effect automatically applies to existing resources, but in reality, it only affects new resources unless a remediation task is explicitly created.

Why the other options are wrong

C

Reassigning the policy at the resource group scope only does not trigger evaluation or remediation of existing resources; it only changes the assignment scope, leaving existing VMs non-compliant.

D

The Modify effect already adds tags; switching to AuditIfNotExists would only audit compliance without remediating existing non-compliant VMs, failing to bring them into compliance.

E

Manually tagging only the newest VMs does not address the policy's requirement to tag all existing resources; the Modify effect requires a remediation task to apply tags to non-compliant resources automatically.

204
MCQmedium

A company wants to stop users from creating resources in any Azure region except East US and West US across all subscriptions. Which Azure feature should be used to enforce this requirement?

A.An Azure RBAC role assignment
B.An Azure Policy assignment with a Deny effect at the management group scope
C.A CanNotDelete resource lock on the subscriptions
D.A tag inheritance rule on the management group
AnswerB

Assigning the built-in 'Allowed Locations' policy definition at the management group scope with the Deny effect makes Azure Resource Manager evaluate every create or update request against the allowed region list before any deployment proceeds. If a user attempts to provision a resource in a disallowed Azure region, the request is rejected with a 403 conflict error, regardless of the user's RBAC permissions or the subscription's current role assignment. Because the policy assignment is at the management group level, the rule is inherited by all subscriptions and resource groups beneath it, creating an organisation-wide regional boundary.

Why this answer

Azure Policy with a Deny effect at the management group scope is the correct choice because it can enforce a location constraint across all subscriptions under that management group. The Deny effect prevents the creation of resources in non-compliant regions at the time of deployment, ensuring that only East US and West US are allowed. This is a governance control that applies to all subscriptions within the scope, making it the ideal solution for this requirement.

Exam trap

The trap here is that candidates often confuse Azure RBAC (who can do what) with Azure Policy (what can be done), leading them to select RBAC role assignments instead of the correct policy-based governance control.

Why the other options are wrong

A

Azure RBAC role assignments control permissions to perform actions on resources, but they cannot enforce restrictions on which Azure regions can be used to create resources. RBAC does not have a built-in capability to deny region-specific resource creation.

C

A CanNotDelete resource lock prevents deletion of resources but does not restrict resource creation to specific Azure regions. It cannot enforce regional constraints across subscriptions.

D

Tag inheritance rules only propagate tags from a management group to subscriptions or resources; they do not enforce region restrictions or deny resource creation in disallowed regions.

205
MCQeasy

Based on the exhibit, which Azure service is preventing deployment because the resource is missing a required tag?

A.Azure Policy
B.Azure RBAC
C.Resource locks
D.Azure Monitor
AnswerA

Azure Policy is the correct answer because it performs at-scale compliance evaluation based on policy definitions assigned to a scope. When you attempt to deploy a resource, Azure Resource Manager routes the createOrUpdate request through the policy engine, which can emit a Deny action if required tags are missing. This enforcement happens synchronously before the resource is provisioned, making Policy the only listed service that actively prevents an untagged resource from being created.

Why this answer

Azure Policy is the correct answer because it enforces organizational standards and compliance rules, such as requiring specific tags on resources. When a policy is defined to require a tag (e.g., 'CostCenter') and a deployment attempts to create a resource without that tag, Azure Policy evaluates the request against the policy assignment and denies the deployment. This is a built-in capability of Azure Policy, not a permission or lock mechanism.

Exam trap

The trap here is that candidates often confuse Azure Policy (which enforces rules on resource properties like tags) with Azure RBAC (which controls user permissions), leading them to incorrectly select RBAC when the issue is about missing configuration, not insufficient access rights.

Why the other options are wrong

B

Azure RBAC manages access permissions to resources, not enforcement of tags. The question describes a deployment failure due to a missing required tag, which is a compliance check enforced by Azure Policy, not RBAC.

C

Resource locks prevent deletion or modification of resources but do not enforce tagging requirements. The question specifies that deployment is blocked due to a missing required tag, which is enforced by Azure Policy, not resource locks.

D

Azure Monitor is a monitoring and diagnostics service, not a policy enforcement service. It cannot block deployments due to missing tags; that is the role of Azure Policy.

206
Multi-Selectmedium

Your organization has an Azure Active Directory (Azure AD) tenant with 500 users. You need to ensure that users can reset their own passwords without IT support, but only if they have registered for multi-factor authentication (MFA). Additionally, you want to prevent users from reusing their last 10 passwords. Which three of the following should you configure? (Choose three.)

Select 3 answers
.Enable the 'Self-service password reset' feature in Azure AD.
.Configure 'Password protection' with a custom banned password list.
.Set the 'Number of passwords remembered' policy to 10 in the 'Password reset' blade.
.Configure the 'Number of methods required to reset' to 2 and require MFA registration.
.Enable 'Combined registration' for security info to simplify MFA and SSPR registration.
.Assign the 'Global Administrator' role to all users to allow password reset.

Why this answer

To allow users to reset their own passwords without IT support, you must enable the 'Self-service password reset' (SSPR) feature in Azure AD. To prevent password reuse, you set the 'Number of passwords remembered' policy to 10 in the Password reset blade, which enforces a password history of 10 unique passwords. Finally, to ensure that only users registered for MFA can reset their passwords, you configure the 'Number of methods required to reset' to 2 and require MFA registration, which forces users to provide two authentication methods (including MFA) before resetting.

Exam trap

The trap here is that candidates often confuse 'Combined registration' with enforcing MFA registration for SSPR, but combined registration only simplifies the user interface, not the policy requirement; the actual enforcement comes from setting the number of methods required to reset and ensuring MFA is one of those methods.

207
Multi-Selecthard

Your company has multiple applications deployed across separate production and nonproduction subscriptions. Finance wants cost reporting by application, and each app team should manage only its own resources. Which two design choices best satisfy both requirements? Select two.

Select 2 answers
A.Place each application's Azure resources in a dedicated resource group.
B.Tag each resource with an application or cost-center identifier.
C.Create one subscription per virtual machine to simplify chargeback reporting.
D.Use resource names only for cost reporting because names are always unique and queryable.
E.Place all applications in one management group and use it as the access boundary for each app team.
AnswersA, B

A dedicated resource group per application is the correct administrative boundary because Azure RBAC roles (such as Contributor) can be assigned at that scope to grant the app team permissions only on that application's resources. Resource groups also provide independent lifecycle management, policy assignment, and lock scopes, so you can manage, monitor, and delete an application's resources as a single unit without affecting other apps. This gives granular access control and deployment isolation while keeping all resources under the same subscription.

Why this answer

Resource groups are the logical container for grouping Azure resources by application, enabling each app team to manage its own resources via Azure RBAC at the resource group scope. Option B is correct because tagging resources with an application or cost-center identifier allows Azure Cost Management to filter and report costs by application, satisfying the finance requirement for cost reporting by application.

Exam trap

The trap here is that candidates often confuse management groups with resource groups for access control, assuming a single management group can isolate app teams, but management groups do not provide RBAC boundaries for individual applications—they are for hierarchical policy management, not resource isolation.

Why the other options are wrong

C

Creating one subscription per virtual machine is impractical and violates Azure subscription limits (max 10,000 VMs per subscription) and cost reporting best practices; subscriptions are not granular enough for per-app reporting.

D

Resource names are not guaranteed to be unique across subscriptions or resource groups, and they lack the structured querying and filtering capabilities of tags, making them unreliable for accurate cost reporting.

E

Placing all applications in one management group does not provide per-application cost reporting or isolate access for each app team; management groups are for policy and compliance inheritance, not granular RBAC or cost allocation.

208
MCQhard

An Azure CLI script runs on a utility VM every night to create and tag resources in another subscription. The script cannot store a password or client secret, and the VM is regularly redeployed from a standard image. What is the best identity design?

A.Assign a system-assigned managed identity to the utility VM
B.Create a user-assigned managed identity and attach it to the utility VM
C.Create a service principal and store its secret in the VM configuration
D.Use a shared access signature to sign the Azure CLI session
AnswerB

A user-assigned managed identity is an independent Azure AD workload identity that you create once and attach to the utility VM. Because it persists separately from the VM, it survives deletion or redeployment of the VM, making it ideal for a nightly Azure CLI script that must continue to authenticate after infrastructure changes. The VM retrieves tokens through the Azure Instance Metadata Service (IMDS) endpoint, so no password or client secret is ever stored on the VM.

Why this answer

A user-assigned managed identity can be created once, assigned to the utility VM, and used across redeployments without storing any credentials. The script can authenticate via Azure CLI using the managed identity's client ID, and the identity persists independently of the VM's lifecycle, satisfying the requirement of no password or client secret storage.

Exam trap

The trap here is that candidates often choose system-assigned managed identity (Option A) without realizing that redeploying the VM from a standard image destroys the identity, breaking any cross-subscription role assignments that were configured for the original identity.

Why the other options are wrong

A

A system-assigned managed identity is tied to the VM's lifecycle and cannot be shared across subscriptions. The script needs to access resources in another subscription, which requires a cross-subscription identity like a user-assigned managed identity.

C

The script cannot store a password or client secret, and the VM is regularly redeployed from a standard image, making secret management impractical and insecure. Option C requires storing a secret, violating the constraint.

D

A shared access signature (SAS) is used to delegate access to Azure Storage resources, not to authenticate an Azure CLI session or manage identities across subscriptions. It cannot sign CLI sessions or grant permissions to create and tag resources.

209
Multi-Selectmedium

A contractor from a partner company needs read-only access to one application resource group for 14 days. When the contractor leaves the project, access should be removed immediately by removing a single identity from a group. Which two actions should the administrator take? Select two.

Select 2 answers
A.Create an Entra ID security group for the contractor team.
B.Assign the Reader role to that group at the application resource group scope.
C.Assign Reader directly to the contractor's user object at the subscription scope.
D.Assign Contributor at the resource group scope and rely on discipline.
E.Use a resource lock to limit the contractor to read-only access.
AnswersA, B

Creating an Entra ID security group for the contractor team is the correct first step because RBAC roles should be assigned to groups, not individuals, to simplify access lifecycle and ensure consistent permissions. Assigning the group a role at the appropriate scope means contractor membership is the single control: adding or removing a user from the group immediately revokes or grants inherited access. This also supports external B2B collaboration accounts for partner users while keeping the assignment centralised.

Why this answer

Creating an Entra ID security group for the contractor team (Option A) allows the administrator to manage access centrally. By assigning the Reader role to that group at the application resource group scope (Option B), all members inherit read-only permissions. When the contractor leaves, removing their user object from the group immediately revokes access without needing to modify role assignments, satisfying the requirement for a single identity removal.

Exam trap

The trap here is that candidates often confuse resource locks with RBAC roles, thinking a lock can enforce read-only access, but locks only prevent accidental deletion or modification and do not affect permissions granted by role assignments.

Why the other options are wrong

C

Assigning Reader directly to the contractor's user object at the subscription scope grants read-only access to all resources in the subscription, not just the application resource group, violating the principle of least privilege. The requirement is for read-only access to a single resource group, not the entire subscription.

D

Assigning Contributor at the resource group scope grants write permissions, which violates the requirement for read-only access. Relying on discipline is not a secure or auditable access control method.

E

A resource lock prevents accidental deletion or modification of resources but does not grant read-only access; it only protects existing permissions. The contractor still needs a role assignment to access resources, so a lock alone is insufficient.

210
MCQeasy

An administrator wants a script running on an Azure VM to create a resource in Azure without storing any passwords or client secrets on the VM. What should the administrator configure first?

A.A shared local account on the VM
B.A system-assigned managed identity on the VM
C.An Azure Policy exemption
D.A public IP address on the VM
AnswerB

A system-assigned managed identity creates an Azure AD identity directly associated with the VM lifecycle. When the script runs on the VM, it can obtain a token from the Azure Instance Metadata Service (IMDS) endpoint at 169.254.169.254, using that token to authenticate to Azure Resource Manager APIs without storing any secrets. After you assign a role to the identity (e.g., Contributor), the script can create Azure resources. This exactly satisfies the need for a secure, credential-free authentication mechanism.

Why this answer

A system-assigned managed identity enables an Azure VM to authenticate to Azure services (e.g., Azure Resource Manager) without storing any credentials in the VM. The identity is automatically created and managed by Azure, and the VM can obtain an access token from Azure AD via the Instance Metadata Service (IMDS) endpoint (169.254.169.254) using a simple HTTP call. This allows the script to securely create resources without hardcoding passwords or client secrets.

Exam trap

The trap here is that candidates may confuse managed identities with service principals or think a public IP is needed for outbound authentication, but the IMDS endpoint works entirely within the Azure network without requiring a public IP.

Why the other options are wrong

A

A shared local account on the VM would require storing credentials (username/password) on the VM, which violates the requirement to avoid storing passwords or client secrets. Managed identities provide a password-free authentication method.

C

An Azure Policy exemption is used to exclude specific resources from policy evaluation, not to provide authentication credentials for a script to create resources.

D

A public IP address is used for network connectivity, not for authentication or authorization. It does not eliminate the need for storing credentials, as the script would still require secrets to authenticate to Azure.

211
Multi-Selectmedium

You are responsible for managing Azure resources in a hybrid environment. Your on-premises Active Directory Domain Services (AD DS) is synced to Azure AD using Azure AD Connect. You need to ensure that administrative units (AUs) are used to delegate administration of specific groups of users to help desk staff. Which three of the following are true regarding administrative units in Azure AD? (Choose three.)

Select 3 answers
.Administrative units can contain users, groups, and devices.
.An administrative unit can span multiple Azure AD tenants.
.You can assign Azure AD roles scoped to an administrative unit.
.Administrative units are available in all editions of Azure AD, including Free.
.Users synced from on-premises AD DS can be added to administrative units.
.Administrative units can be created only via the Azure portal and not via PowerShell.

Why this answer

Administrative units (AUs) in Azure AD are containers that can hold users, groups, and devices, allowing you to delegate administrative permissions over a subset of resources. You can assign Azure AD roles scoped to an AU, which limits the role's permissions to only the members of that AU. Users synced from on-premises AD DS via Azure AD Connect can be added to AUs because they become Azure AD user objects after synchronization, making them eligible for AU membership.

Exam trap

The trap here is that candidates often assume administrative units are available in all Azure AD editions (including Free) because they are a basic delegation feature, but in reality they require Azure AD Premium P1 or higher.

212
MCQeasy

Based on the exhibit, where should the new subscription be placed so it inherits the production governance baseline automatically?

A.Place the subscription under Prod-MG.
B.Place the subscription under Sandbox-MG.
C.Create a resource group named Finance-Prod instead of assigning a management group.
D.Move the subscription to the tenant root and assign policies later.
AnswerA

Placing the new subscription under Prod-MG is correct because management group inheritance automatically applies the same Azure Policy, RBAC role assignments, and budget guardrails already configured for production workloads to this subscription without any extra setup. This is the standard pattern for centralized governance: as soon as the subscription is created under Prod-MG, it inherits the parent's controls, ensuring finance production resources comply with mandatory tagging, allowed regions, and cost limits from day one. The subscription also sits at the correct level in the hierarchy so that any future nested management groups or policy exemptions explicitly scoped to Prod-MG will behave as expected.

Why this answer

Placing the new subscription under the Prod-MG management group ensures it automatically inherits the Azure Policy and RBAC assignments applied at that level. Management groups in Azure allow hierarchical governance, and any subscription within a management group inherits policies and role assignments from that group and all parent groups. This enables consistent enforcement of the production governance baseline without manual configuration.

Exam trap

The trap here is that candidates may think creating a resource group with a descriptive name (like Finance-Prod) is sufficient to apply governance, but Azure governance inheritance only flows through management group hierarchy, not through resource group naming conventions.

Why the other options are wrong

B

The Sandbox-MG is designed for non-production workloads and does not apply the production governance baseline (e.g., policies, RBAC) that the question requires.

C

Creating a resource group does not enable inheritance of governance baselines like policies or RBAC from a management group; governance inheritance requires placing the subscription under a management group.

D

Moving the subscription to the tenant root does not automatically inherit any governance baseline; it only places it at the top level without any management group hierarchy. The question requires automatic inheritance of the production governance baseline, which is achieved by placing the subscription under Prod-MG, not the tenant root.

213
MCQeasy

Based on the exhibit, where should the administrator assign the role so the contractor can start and stop virtual machines only in RG-App and nothing else?

A.Assign the role at the subscription scope so it covers the contractor's work area.
B.Assign the role at the resource group scope for RG-App.
C.Assign the role at the management group scope above the subscription.
D.Assign the role directly to one virtual machine only, because that is always the best scope.
AnswerB

This is the narrowest scope that still reaches all virtual machines inside RG-App. RBAC permissions assigned at the resource group level apply only to resources in that group, which fits the requirement to manage VMs there without affecting RG-Data or RG-Net.

Why this answer

The contractor needs to manage virtual machines only within RG-App. Azure RBAC allows you to assign the Virtual Machine Contributor role at the resource group scope, which grants permissions to start and stop VMs within that specific resource group while preventing access to resources in other resource groups or at higher scopes. Assigning at the subscription or management group level would grant permissions across all resource groups, violating the principle of least privilege.

Exam trap

The trap here is that candidates often assume assigning at the subscription scope is simpler and still 'covers the work area,' failing to recognize that it violates least privilege by granting access to all resource groups, not just RG-App.

Why the other options are wrong

A

Assigning at subscription scope grants permissions to all resource groups in the subscription, not just RG-App, violating the requirement to limit access to RG-App only.

C

Assigning the role at the management group scope would grant permissions to start/stop VMs in all subscriptions under that management group, not just RG-App, violating the requirement to restrict access to only RG-App.

D

Assigning the role to a single VM would only grant permissions on that VM, not on all VMs in RG-App, and the requirement is to manage all VMs in the resource group.

214
MCQeasy

A company has 12 subscriptions under one management group. An external auditor needs Reader access to resources in every current and future subscription under that management group. Where should you assign the role?

A.At each resource group in each subscription
B.At the management group scope
C.At one subscription scope only
D.At one resource scope in the first subscription
AnswerB

A role assignment at the management group scope inherits to all subscriptions and resources below it. Because the requirement includes both current and future subscriptions, the management group is the right place to assign Reader. This centralizes access management and avoids creating separate assignments for each subscription or resource group.

Why this answer

Assigning the Reader role at the management group scope ensures that the external auditor inherits read-only access to all current and future subscriptions under that management group. Role assignments at the management group scope are inherited by all child subscriptions and resource groups, making it the single, scalable solution for the requirement.

Exam trap

The trap here is that candidates may think assigning the role at the subscription scope is sufficient, overlooking the requirement for future subscriptions, or they may incorrectly believe that management group scope assignments do not propagate to child subscriptions.

Why the other options are wrong

A

Assigning Reader at each resource group fails to cover future subscriptions and resources not in those resource groups, violating the requirement for access to all current and future subscriptions under the management group.

C

Assigning at one subscription scope only grants access to that single subscription, not to all 12 current subscriptions or any future ones under the management group.

D

Assigning Reader at a single resource scope in one subscription does not grant access to other subscriptions or future subscriptions under the management group, failing to meet the requirement for all current and future subscriptions.

215
MCQmedium

The platform team wants every resource deployed in a subscription to include an Environment tag. New resources that do not meet the rule must be blocked, and existing noncompliant resources should appear in compliance reports. What should be configured?

A.An Azure Policy assignment at the subscription scope with a deny effect.
B.A Contributor role assignment at the subscription scope.
C.A resource lock on the subscription.
D.A custom RBAC role that includes tag write permissions.
AnswerA

Azure Policy is the governance feature that evaluates resources against rules, reports compliance, and can block noncompliant deployments when the deny effect is used. Assigning it at the subscription scope applies the rule to all resources in that subscription. This matches the requirement to enforce tagging and to show existing noncompliant resources in compliance views.

Why this answer

Azure Policy with a deny effect at the subscription scope is the correct choice because it enforces a rule that blocks the creation or update of any resource that does not include the required 'Environment' tag. The deny effect actively prevents noncompliant deployments, while the policy itself evaluates existing resources and marks them as noncompliant in compliance reports, meeting both requirements.

Exam trap

The trap here is that candidates often confuse Azure Policy (which enforces rules and blocks noncompliant resources) with RBAC roles (which control permissions) or resource locks (which prevent accidental deletion), failing to recognize that only Azure Policy can both block new noncompliant resources and report on existing ones.

Why the other options are wrong

B

A Contributor role assignment grants broad management permissions but does not enforce tagging rules or block noncompliant resources; it cannot prevent deployment of untagged resources or report on compliance.

C

A resource lock prevents deletion or modification of resources but does not enforce tagging requirements or block creation of noncompliant resources. It cannot report noncompliant resources or deny deployment of untagged resources.

D

A custom RBAC role with tag write permissions allows users to add tags but does not enforce a policy to block noncompliant resources or report existing noncompliant resources. Azure Policy with deny effect is required to enforce tagging rules and generate compliance reports.

216
MCQeasy

A VM-hosted application must read blobs from an Azure Storage account without storing any secret in code or configuration. Which identity should you enable on the VM?

A.A storage account access key
B.A system-assigned managed identity
C.A shared access signature (SAS) token
D.A local administrator account on the VM
AnswerB

A system-assigned managed identity is tied to the VM and lets the application authenticate to Azure services without storing credentials. Azure can issue tokens for the identity automatically, and the identity is removed when the VM is deleted. This is the simplest credential-free option for a single VM that needs access to Storage or other Azure resources.

Why this answer

A system-assigned managed identity (B) is the correct choice because it allows the VM to authenticate to Azure Storage without storing any credentials in code or configuration. Azure automatically manages the identity's lifecycle and provides a token that the VM can use to access the storage account via Azure AD authentication, eliminating the need for secrets.

Exam trap

The trap here is that candidates may confuse managed identities with SAS tokens or access keys, thinking they need a shared secret for authentication, but Azure AD authentication with managed identities eliminates the need for any stored credentials.

Why the other options are wrong

A

A storage account access key grants full control over the storage account and must be stored in code or configuration, violating the requirement to avoid storing secrets.

C

A shared access signature (SAS) token is a secret that must be stored in code or configuration, which contradicts the requirement to avoid storing secrets.

D

A local administrator account on the VM cannot authenticate to Azure Storage; it only provides local OS access, not Azure resource access.

217
MCQmedium

Three Azure VMs run the same scheduled script and must access both Storage and Key Vault. The team wants one identity that can be reused if a VM is rebuilt, and they do not want the identity tied to a single machine. What should the administrator create?

A.A system-assigned managed identity on each virtual machine.
B.A service principal with a certificate file copied to each VM.
C.A user-assigned managed identity attached to all three virtual machines.
D.A shared access signature for each storage account and Key Vault access policy.
AnswerC

A user-assigned managed identity is a standalone Azure AD identity that can be assigned to multiple resources, including all three VMs, making it a single service principal shared by the scheduled script. Because the identity's lifecycle is separate from any VM, you can attach it to all three instances and later add or remove VMs without recreating the identity. Once the identity is assigned, you grant it the necessary RBAC role on the storage account and an access policy in Key Vault, allowing all three VMs to authenticate via the Azure Instance Metadata Service (IMDS) without storing any credential.

Why this answer

A user-assigned managed identity is the correct choice because it is an independent Azure resource that can be assigned to multiple VMs, persists independently of any single VM's lifecycle, and can be reused when a VM is rebuilt. This identity provides seamless authentication to both Storage and Key Vault without managing credentials, meeting the requirement for a reusable, non-machine-tied identity.

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 VMs or persist after VM deletion, when in fact only user-assigned identities are independent, reusable resources.

Why the other options are wrong

A

A system-assigned managed identity is tied to the lifecycle of a specific VM; if the VM is rebuilt, the identity is deleted and recreated, so it cannot be reused across rebuilds or shared among multiple VMs.

B

A service principal with a certificate file copied to each VM requires manual certificate management and rotation, and the identity is tied to the VM's certificate file, not reusable if the VM is rebuilt without the same certificate.

D

A shared access signature (SAS) provides delegated access to a specific storage account or Key Vault but is not an identity that can be reused across VMs; it is a token tied to a resource, not an Azure AD identity, and does not support the requirement of a single reusable identity.

218
Multi-Selecthard

An Azure Automation account is recreated periodically during a migration project. Runbooks must authenticate to Azure resources without embedded secrets, and the identity must continue to work after the account is rebuilt. Which two choices should you make? Select two.

Select 2 answers
A.Use a user-assigned managed identity so the identity is independent of the Automation account lifecycle.
B.Grant the managed identity the required Azure RBAC roles on the target resources or resource groups.
C.Use a service principal with a client secret stored in an encrypted Automation variable.
D.Use a system-assigned managed identity attached to the Automation account because it is always reusable after recreation.
E.Store a storage account key in a runbook asset and retrieve it at runtime.
AnswersA, B

A user-assigned managed identity is not tied to one specific Automation account instance. That makes it resilient when the account is recreated during migration or recovery activities. It also avoids storing passwords or secrets in the runbook, which satisfies the secure automation requirement.

Why this answer

A user-assigned managed identity exists as a standalone Azure resource independent of the Automation account's lifecycle. When the Automation account is recreated, you can reassign the same user-assigned managed identity to the new account, preserving the identity's object ID and its RBAC role assignments. This ensures that runbooks can authenticate without embedded secrets and continue to work seamlessly after the account is rebuilt.

Exam trap

The trap here is that candidates often assume a system-assigned managed identity is reusable after account recreation, but they fail to recognize that its object ID changes upon deletion and recreation, breaking existing RBAC assignments.

Why the other options are wrong

C

The question requires the identity to continue working after the Automation account is recreated. A service principal with a client secret stored in an encrypted variable still ties the secret to the account lifecycle; if the account is recreated, the variable is lost, and the secret must be re-created. Additionally, embedded secrets are explicitly disallowed.

D

A system-assigned managed identity is tied to the Automation account lifecycle; when the account is deleted and recreated, the identity is also deleted and recreated with a new principal ID, breaking RBAC role assignments that were made to the old identity.

E

Storage account keys are long-lived secrets that must be managed and rotated, violating the requirement to avoid embedded secrets. They also do not automatically work after the Automation account is recreated, as the key would need to be re-stored in the new account.

219
Multi-Selectmedium

A project team expects frequent joiners and leavers. The same Azure permissions are needed for all members of the team, and you want to avoid editing role assignments for each person. Which two actions best meet the requirement? Select two.

Select 2 answers
A.Create a security group for the project team.
B.Assign the Azure roles to the group instead of individual users.
C.Assign the same roles directly to every user account.
D.Use guest accounts for all team members.
E.Assign the roles to a service principal shared by the team.
AnswersA, B

Creating a security group for the project team provides a single Azure AD identity object that can be used in role assignments, policy assignments, and conditional access rules. When the team changes, you only update group membership (add/remove users) instead of modifying RBAC assignments, which avoids hitting Azure's role assignment limits and keeps access review simple.

Why this answer

Creating a security group allows you to manage permissions collectively rather than individually. By adding or removing users from the group as joiners and leavers occur, you avoid editing role assignments for each person. This aligns with Azure AD group-based licensing and RBAC best practices for dynamic teams.

Exam trap

The trap here is that candidates may think assigning roles directly to users (Option C) is simpler, but they overlook the administrative overhead of managing individual assignments for frequent joiners and leavers.

Why the other options are wrong

C

Assigning roles directly to each user account requires editing role assignments for every joiner and leaver, which contradicts the requirement to avoid frequent edits.

D

Guest accounts are for external collaboration, not for managing internal team members. They do not simplify role assignment management for frequent joiners/leavers because each guest still needs individual role assignments or group membership.

E

A service principal is an identity for applications or automated tools, not for human users. Assigning roles to a service principal shared by the team would not manage human joiners/leavers and could lead to security risks and lack of auditability.

220
MCQmedium

During a change freeze, the operations team wants to prevent accidental deletion of a production resource group and everything in it. They still need to update VM settings, change tags, and modify network rules. Which lock should be applied?

A.Apply a ReadOnly lock to the resource group.
B.Apply a CanNotDelete lock to the resource group.
C.Assign the Reader role to all operators.
D.Assign an Azure Policy deny assignment at the subscription.
AnswerB

CanNotDelete is the correct lock because it blocks deletion while still allowing normal update operations. That means the team can continue to change VM settings, update tags, and manage networking during the freeze, but they cannot accidentally delete the protected resource group or its child resources. It is the standard choice when preservation is required without freezing all management activity.

Why this answer

The CanNotDelete lock (Option B) prevents deletion of the resource group and all resources within it, while still allowing read and update operations such as modifying VM settings, changing tags, and updating network rules. This lock type is specifically designed to protect against accidental deletion during a change freeze without blocking management operations.

Exam trap

The trap here is that candidates often confuse ReadOnly locks with CanNotDelete locks, assuming that any lock will block all changes, but the key distinction is that ReadOnly locks block all write operations (including updates), whereas CanNotDelete locks only block deletion, allowing the required modifications.

Why the other options are wrong

A

A ReadOnly lock prevents all write operations, including updates to VM settings, tags, and network rules, which the operations team still needs to perform.

C

Assigning the Reader role allows read-only access but does not prevent deletion; operators could still delete resources if they have other permissions, and it blocks all write operations, which contradicts the requirement to update VM settings, change tags, and modify network rules.

D

Azure Policy deny assignments prevent non-compliant resource creation or modification, but they do not block deletion of existing resources. The question requires preventing deletion while allowing updates, which is achieved by a CanNotDelete lock, not a policy.

221
MCQmedium

A company wants to enforce three controls across all current and future subscriptions under a management group: allowed Azure regions, a required cost center tag, and approved VM SKUs. Central IT wants a single assignment and consolidated compliance reporting. What should they use?

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

An initiative groups multiple related policies into one assignable unit. Assigning it at the management group scope ensures the controls apply to all current and future subscriptions beneath it, while keeping compliance reporting centralized and easier to manage.

Why this answer

An initiative (policy set) at the management group scope allows you to bundle multiple policy definitions (allowed regions, required tag, approved VM SKUs) into a single assignment. This ensures the controls apply to all current and future subscriptions under that management group, and Azure Policy provides consolidated compliance reporting at the management group level, meeting the requirement for a single assignment and unified view.

Exam trap

The trap here is that candidates often confuse resource locks or RBAC with policy-based governance, thinking they can enforce allowed configurations through access control or locks, but only Azure Policy (via initiatives) can evaluate and enforce resource properties like regions, tags, and SKUs.

Why the other options are wrong

A

Three separate policy assignments at each subscription scope would require managing multiple assignments per subscription, contradicting the requirement for a single assignment and consolidated compliance reporting across all subscriptions under the management group.

C

A resource lock prevents deletion or modification of resources but does not enforce compliance policies like allowed regions, tags, or VM SKUs. It cannot provide consolidated compliance reporting.

D

Custom RBAC roles control permissions to Azure resources, not compliance policies like allowed regions, tags, or VM SKUs. They cannot enforce or audit configuration requirements across subscriptions.

222
MCQeasy

A team has 20 operators who need the same Reader access to one application resource group. You want to grant access and later revoke it by changing group membership instead of editing each user's permissions. What should you use for the role assignment?

A.Individual user accounts
B.An Entra ID security group
C.A management group
D.A resource lock
AnswerB

Assigning the role to an Entra ID security group is the best practice for shared access. You manage access by adding or removing users from the group, which is easier to maintain and less error-prone than changing many separate role assignments. This also supports least privilege and makes future access reviews simpler.

Why this answer

Using an Entra ID security group allows you to assign the Reader role to the group, then add or remove the 20 operators as members. This centralizes permission management: granting or revoking access is done by changing group membership rather than editing individual role assignments, which is more efficient and less error-prone.

Exam trap

The trap here is that candidates often confuse management groups (which control policy and cost across subscriptions) with security groups (which control RBAC access at a specific scope), leading them to pick Option C incorrectly.

Why the other options are wrong

A

Assigning Reader access to individual user accounts would require editing each user's permissions to revoke access, contradicting the requirement to manage access via group membership changes.

C

A management group is used to organize and manage access, policies, and compliance across multiple Azure subscriptions, not to assign roles to individual users within a single resource group. It cannot be used to grant Reader access to specific operators by changing group membership.

D

A resource lock prevents accidental deletion or modification of resources but does not grant access permissions. It cannot be used to assign Reader access to users.

223
MCQmedium

A contractor is a member of an Entra security group that has the Contributor role on a resource group. When the contractor tries to deploy, the portal says the role is not active. The activation request requires approver approval, and the previous activation window has expired. What should the contractor do?

A.Wait for the role assignment to propagate to Azure.
B.Create a new security group and assign Contributor directly.
C.Sign out of the portal and sign back in only.
D.Activate the eligible role through Privileged Identity Management and obtain approval if required.
AnswerD

The assignment is eligible, not active, so the contractor must initiate an activation request in Microsoft Entra Privileged Identity Management. PIM will enforce any approval workflow configured for the role, and after approval (if required) the role becomes active for a specified duration. This is the only supported way to use an eligible role assignment.

Why this answer

The contractor has an eligible role assignment that requires activation through Privileged Identity Management (PIM). Since the previous activation window has expired, the role is no longer active, and the contractor must initiate a new activation request, which may require approver approval. Option D correctly describes this process, as PIM is the Azure service designed for just-in-time access to privileged roles.

Exam trap

The trap here is that candidates confuse 'eligible' role assignments with 'active' assignments, assuming the role is permanently available when it actually requires manual activation through PIM.

Why the other options are wrong

A

The contractor has an eligible role requiring activation via PIM, not a direct assignment. Role propagation delay does not apply because the role is not active; it must be activated first.

B

Creating a new security group and assigning Contributor directly would not resolve the issue because the contractor's role is eligible and requires activation through Privileged Identity Management (PIM), not a new group assignment.

C

Signing out and back in does not resolve the issue because the contractor's role is eligible, not active. The portal error indicates the role requires activation through Privileged Identity Management (PIM), not a session refresh.

224
MCQmedium

A support engineer must restart and view the properties of virtual machines only in RG-Dev. The engineer must not gain access to other resource groups in the subscription. What should the administrator do?

A.Assign the Reader role at the subscription scope and the Virtual Machine Contributor role at RG-Dev scope.
B.Assign the Virtual Machine Contributor role at the RG-Dev scope.
C.Assign the Contributor role at the RG-Dev scope.
D.Create a custom role at the subscription scope and assign it to the engineer.
AnswerB

Assigning the Virtual Machine Contributor role at the RG-Dev scope provides exactly the required permissions: Microsoft.Compute/virtualMachines/read to view properties and Microsoft.Compute/virtualMachines/restart to restart VMs, while limiting inheritance to that resource group. This follows least privilege because the engineer can manage VMs in RG-Dev but cannot touch VMs or other resources elsewhere in the subscription.

Why this answer

The Virtual Machine Contributor role at the RG-Dev scope grants the engineer the necessary permissions to restart and view properties of virtual machines within that resource group, while restricting access to other resource groups. This role includes actions like Microsoft.Compute/virtualMachines/start/action and Microsoft.Compute/virtualMachines/read, which cover the required tasks without granting broader management rights.

Exam trap

The trap here is that candidates often choose Option A, mistakenly thinking the Reader role at subscription scope is harmless, but it actually grants read access to all resources in the subscription, violating the explicit restriction to RG-Dev only.

Why the other options are wrong

A

Assigning Reader at subscription scope grants read access to all resources in the subscription, violating the requirement that the engineer must not access other resource groups.

C

The Contributor role includes write permissions beyond restarting and viewing properties, such as deleting resources or creating new ones, which violates the least privilege principle required by the question.

D

Assigning a custom role at subscription scope would grant permissions across all resource groups, violating the requirement that the engineer must not access other resource groups.

225
MCQeasy

Several Azure VMs need the same Azure identity so they can access a shared resource without storing passwords. The identity should be reusable across VMs and removable centrally. Which identity type should the administrator use?

A.System-assigned managed identity
B.User-assigned managed identity
C.Service principal with a client secret
D.Local administrator account
AnswerB

A user-assigned managed identity is a standalone Azure AD identity created as its own Azure resource, and it can be attached to multiple VMs at once. Because the identity's lifecycle is independent of any single VM, the same principal and its role assignments can be used across a fleet, and Azure automatically rotates the underlying certificates used for token acquisition. This gives the VMs a consistent, secret-less identity for authenticating to Azure services such as Key Vault or Storage.

Why this answer

A user-assigned managed identity is the correct choice because it is created as a standalone Azure resource, can be assigned to multiple VMs simultaneously, and can be centrally removed or updated without affecting the VMs themselves. This identity is reusable across VMs and eliminates the need to store passwords or secrets in code or configuration.

Exam trap

The trap here is that candidates often choose system-assigned managed identity because it is simpler to configure, but they overlook the requirement for the identity to be reusable across multiple VMs, which only user-assigned managed identities support.

Why the other options are wrong

A

A system-assigned managed identity is tied to a single VM and cannot be reused across multiple VMs; it is created and deleted with the VM, not centrally removable.

C

A service principal with a client secret requires storing and managing a secret, which contradicts the requirement to avoid storing passwords. It is also not reusable across VMs in a centralized, removable way like a managed identity.

D

A local administrator account is tied to a single VM, cannot be reused across multiple VMs, and requires password management, which contradicts the requirement for a centrally removable identity without storing passwords.

← PreviousPage 3 of 4 · 233 questions totalNext →

Ready to test yourself?

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