Courseiva

AZ-104 (AZ-104) — Questions 526600

1049 questions total · 14pages · All types, answers revealed

Page 7

Page 8 of 14

Page 9
526
Multi-Selectmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

C

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

D

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

E

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

When would these options actually be correct?

C

In a scenario where you need to automatically grant a role (e.g., Contributor) to a VM only when it is compliant with a policy (e.g., has specific tags), you could use Azure Policy with a DeployIfNotExists effect to assign an RBAC role. This would be correct if the question asked for automating role assignment based on compliance.

D

In a scenario where an administrator wants to prevent accidental deletion or modification of a critical VM, a resource lock (e.g., CanNotDelete) would be the correct solution.

E

In a scenario where the question asks for a method to categorize VMs by approval status and trigger compliance workflows, tags could be used to mark approved VM sizes, and an automation runbook could restart tagged VMs.

Why candidates pick the wrong answer

C

Candidates may confuse Azure Policy's ability to enforce compliance with granting permissions, or think that Policy can directly assign RBAC roles as part of its effects.

D

Candidates may confuse resource locks with policy enforcement, thinking locks can restrict resource configurations like VM sizes, when locks only protect against deletion or changes.

E

Candidates may overestimate the capabilities of tags, thinking they can be used for access control or policy enforcement, when they are only for organization and automation triggers.

527
MCQhard

A records team stores monthly regulatory exports in a blob container. The files are rarely opened, but auditors may request one specific file later the same day. The team wants the lowest storage cost possible while keeping a path to restore a single file on demand. Which approach should you use?

A.Keep the blobs in the Hot tier and rely on lifecycle rules to delete them after 90 days.
B.Move the blobs to the Archive tier and use high-priority rehydration when a file is requested.
C.Move the blobs to the Cool tier because it is offline until accessed.
D.Use the Cold tier because it requires a rehydration job before the blob becomes readable.
AnswerB

Archive is the correct storage tier when the files are rarely accessed and cost reduction is the priority. Archived blobs are offline, so they cannot be read immediately. However, if auditors need one file later the same day, the administrator can initiate rehydration. High-priority rehydration is the best choice when faster access is needed for a specific archived blob and the team is willing to pay for the quicker retrieval path.

Why this answer

The Archive tier offers the lowest storage cost for rarely accessed data, and high-priority rehydration allows a single file to be restored within approximately one hour, meeting the auditor's same-day request requirement. This approach minimizes cost while retaining the ability to retrieve a specific file on demand.

Exam trap

The trap here is that candidates confuse the Archive tier's offline nature with the Cool or Cold tiers, or assume that the lowest storage cost must come from an online tier, ignoring that Archive's rehydration feature still allows on-demand retrieval at a higher retrieval cost but lower overall storage expense.

Why the other options are wrong

A

The Hot tier has the highest storage cost, and lifecycle rules that delete after 90 days do not provide a path to restore a single file on demand after deletion. The requirement is for low-cost storage with on-demand restore, not deletion.

C

The Cool tier is an online tier with low latency access; it does not require rehydration and is not offline. It offers lower cost than Hot but higher than Archive, so it does not achieve the lowest storage cost for rarely accessed files.

D

The Cold tier is offline and requires a rehydration job before reading, which can take up to 15 hours, making it unsuitable for same-day retrieval requests from auditors.

When would these options actually be correct?

A

This would be correct if the requirement was to minimize cost for frequently accessed data that must be retained for exactly 90 days and then automatically deleted, with no need for later restore.

C

This option would be correct if the question asked for the lowest cost for data that is accessed infrequently but must be available immediately when accessed, with no need for rehydration. For example: 'You have data that is accessed once a month and requires instant read access. Which tier minimizes cost?'

D

If the question stated that files are rarely accessed and retrieval can be delayed by up to 15 hours, and cost is the primary concern, the Cold tier would be correct.

Why candidates pick the wrong answer

A

Candidates may think Hot tier is always the default for any blob storage, and lifecycle rules seem like a cost-saving measure, overlooking that Hot tier is expensive for rarely accessed data and deletion prevents on-demand restore.

C

Candidates may confuse 'Cool' with 'Cold' or 'Archive' tiers, thinking it is offline or requires rehydration, or they may assume 'cool' implies lower cost without understanding the access trade-offs.

D

Candidates may confuse the Cold tier with the Archive tier, thinking both require rehydration, but Cold tier has lower cost than Cool/Hot while still being cheaper than Archive for infrequent access.

528
MCQmedium

A storage account has public network access disabled. An app in a VNet must read and write blobs privately, and the team wants the blob endpoint name to resolve to a private IP without exposing the service publicly. What should the administrator configure?

A.A service endpoint on the subnet and a storage firewall allow rule.
B.A public IP address for the app and allow access from that IP in the storage firewall.
C.An NSG rule that allows outbound TCP 443 from the app subnet to storage.
D.A private endpoint for the storage account and a private DNS zone for blob name resolution.
AnswerD

A private endpoint assigns the storage account a private IP address from your VNet (via a network interface in the app subnet), so all traffic to the blob service stays within the Microsoft backbone. The private DNS zone for blob name resolution is essential because it overrides the default public CNAME record for the storage account, causing `mystorageaccount.blob.core.windows.net` to resolve to that private IP instead of the public endpoint. This combination meets both requirements: private connectivity and name resolution, even when public network access is disabled.

Why this answer

A private endpoint assigns the storage account a private IP from the VNet, ensuring all traffic to the blob endpoint stays within Microsoft's backbone. A private DNS zone (e.g., `privatelink.blob.core.windows.net`) is required so that the blob endpoint name resolves to that private IP instead of the public IP, meeting the requirement for private name resolution without any public exposure.

Exam trap

The trap here is that candidates confuse service endpoints (which only provide source IP preservation and firewall rules) with private endpoints (which provide a true private IP and private DNS resolution), leading them to pick Option A thinking it achieves private connectivity when it does not change the public DNS resolution.

Why the other options are wrong

A

Service endpoints do not provide private IP resolution; the blob endpoint still resolves to a public IP, and public network access is disabled, so the firewall allow rule would be ineffective.

B

This option exposes the storage account to the public internet by allowing access from a specific public IP, which contradicts the requirement to keep the service non-public and resolve the blob endpoint to a private IP.

C

An NSG rule controls traffic at the network layer but does not provide private connectivity or DNS resolution to a private IP for the blob endpoint. The question requires the blob endpoint to resolve to a private IP, which NSGs cannot achieve.

When would these options actually be correct?

A

If the storage account had public network access enabled and the requirement was to restrict access to a specific VNet without private IP resolution, a service endpoint on the subnet and a storage firewall allow rule would be correct.

B

If the requirement were to allow access from a specific public IP (e.g., an on-premises firewall) while still using the public endpoint, and public network access was enabled, this would be correct.

C

If the question were: 'An app in a VNet needs to access a storage account over the public internet, but the storage firewall blocks all traffic by default. What should be configured to allow outbound HTTPS traffic from the app subnet?' Then an NSG rule allowing outbound TCP 443 would be correct.

Why candidates pick the wrong answer

A

Candidates may confuse service endpoints with private endpoints, thinking both provide private connectivity, but service endpoints only secure traffic to the public endpoint without changing DNS resolution.

B

Candidates may think that whitelisting the app's public IP is sufficient for secure access, overlooking the need for private IP resolution and the 'public network access disabled' constraint.

C

Candidates may think that allowing outbound HTTPS traffic is sufficient for private access, overlooking the need for private IP resolution and network isolation provided by private endpoints.

529
MCQhard

Based on the exhibit, what should the administrator configure so the VM in the spoke VNet can resolve internal hostnames that are hosted on the DNS server in the hub VNet? The team has already verified that IP connectivity between the spoke VM and the hub VM works.

A.Set the SpokeVNet DNS server list to use 10.40.0.4 so the spoke queries the hub resolver directly.
B.Create a private endpoint for web01.corp.contoso.local in the spoke VNet so DNS resolves automatically.
C.Enable gateway transit on the peering so the spoke inherits the hub VNet DNS configuration.
D.Add inbound and outbound NSG rules allowing UDP and TCP port 53 between the two VNets.
AnswerA

The spoke already has network connectivity to the hub, so the remaining problem is name resolution. Azure VNet peering does not copy DNS settings from one VNet to another. By configuring the spoke to use the hub DNS server, queries for the internal zone are sent to the resolver that actually hosts or forwards that namespace.

Why this answer

Setting the SpokeVNet DNS server list to 10.40.0.4 (the IP of the DNS server in the hub VNet) configures the spoke VNet to forward all DNS queries to that custom DNS server. Since IP connectivity between the VNets is already verified, the spoke VM can resolve internal hostnames hosted on the hub DNS server. This is the standard method for cross-VNet DNS resolution when using a custom DNS server in a hub-and-spoke topology.

Exam trap

The trap here is that candidates often confuse VNet peering's gateway transit feature with DNS settings inheritance, but gateway transit only applies to network gateway routes, not DNS server configuration.

Why the other options are wrong

B

A private endpoint resolves DNS for a specific Azure service (e.g., Storage, SQL) within a VNet, not for custom internal hostnames like web01.corp.contoso.local hosted on a VM DNS server.

C

Gateway transit is used to route traffic through a VPN gateway or ExpressRoute gateway in the hub to on-premises or other networks, not to propagate DNS server settings across a peering. DNS server configuration is a VNet property, not inherited via peering.

D

The question states IP connectivity already works, so NSG rules for port 53 are unnecessary. The issue is DNS resolution configuration, not network security.

When would these options actually be correct?

B

If the question asked how to resolve a private endpoint's FQDN (e.g., mystorage.privatelink.blob.core.windows.net) from a spoke VM without using a custom DNS server, creating a private endpoint in the spoke VNet would enable automatic DNS resolution via Azure-provided DNS.

C

This option would be correct if the question asked how to enable the spoke VNet to use the hub's VPN gateway to connect to an on-premises network, or to allow the spoke to route traffic through the hub's gateway for hybrid connectivity.

D

If the question described that the spoke VM cannot reach the hub DNS server due to NSG blocking port 53, and IP connectivity was not verified, then adding NSG rules for UDP/TCP 53 would be correct.

Why candidates pick the wrong answer

B

Candidates may confuse private endpoints with general DNS resolution, thinking they can resolve any internal hostname, or they may overestimate the scope of private endpoint DNS capabilities.

C

Candidates may confuse 'gateway transit' with 'DNS propagation' because both involve sharing resources across peered VNets, leading them to think DNS settings can be inherited like gateway routes.

D

Candidates often default to checking NSG rules for DNS issues, overlooking that the problem is DNS server configuration rather than network security.

530
Multi-Selecthard

After applying a custom image, a Linux VM stops at a black screen before the sign-in prompt. The administrator cannot use RDP or SSH and needs the fastest way to inspect the boot process. Which two actions should they take? Select two.

Select 2 answers
A.Enable Boot diagnostics on the virtual machine.
B.Review the screenshot and serial log in Boot diagnostics.
C.Reimage the VM immediately to a clean managed disk.
D.Increase the VM size to a larger SKU.
E.Reset the network interface configuration from the portal.
AnswersA, B

Enabling boot diagnostics on the VM is the necessary first step because it instructs Azure to capture both a screenshot of the guest display and the serial console log during the boot process. This setting can be enabled on an existing VM without downtime, and it must be active before a reboot so that the failing boot sequence is recorded. Without this, you have no insight into the black screen and are forced to guess at the cause.

Why this answer

Enabling Boot diagnostics on the virtual machine allows the administrator to capture serial console output and screenshots of the VM during boot. This is the fastest way to inspect the boot process without requiring network connectivity (RDP/SSH), as the serial log provides kernel-level messages and the screenshot shows the display state at the point of failure.

Exam trap

The trap here is that candidates may assume RDP/SSH are the only ways to diagnose a VM, overlooking that Boot diagnostics provides out-of-band access to boot-time information even when the OS is unresponsive.

Why the other options are wrong

D

Increasing the VM size does not address boot failures caused by a custom image issue; it only provides more resources, which won't fix a corrupted boot process or driver incompatibility.

E

Resetting the network interface configuration does not address a boot failure at the black screen, which is a boot process issue unrelated to networking.

When would these options actually be correct?

D

If a VM is experiencing performance-related boot delays due to insufficient resources (e.g., high CPU/memory pressure) and the OS is otherwise healthy, increasing the SKU can resolve timeouts and allow the boot to complete.

E

If a VM loses network connectivity after a configuration change and the administrator needs to restore access without redeploying, resetting the network interface from the portal can reinitialize the NIC and restore connectivity.

Why candidates pick the wrong answer

D

Candidates may think that a larger VM provides more memory or CPU to handle a problematic boot, but this does not fix the underlying cause of a black screen (e.g., missing drivers or bootloader errors).

E

Candidates may confuse network connectivity issues with boot problems, assuming that a black screen is caused by a network misconfiguration preventing remote access.

531
MCQhard

After a user-defined route and VNet peering were added, a VM in a spoke subnet still does not reach 10.20.4.8 as expected. You need to confirm which route Azure will actually select on that VM's NIC, including any propagated routes and the route that wins. Which Network Watcher tool should you use?

A.Connection troubleshoot
B.Effective routes
C.IP flow verify
D.Packet capture
AnswerB

Effective routes is the correct tool because it displays the complete route table that the network interface actually uses, combining system routes, user-defined routes, and VNet peering routes. After adding a user-defined route or a VNet peering, the blade shows the next hop type and next hop IP address for each destination prefix, including any 0.0.0.0/0 override. This lets you confirm exactly which route the VM will use for a given destination, based on longest prefix match and route priority.

Why this answer

Effective routes displays the actual routes applied to a network interface, including user-defined routes (UDRs), BGP-propagated routes, and VNet peering routes, along with the route priority (based on the longest prefix match and route source precedence). This allows you to see exactly which route wins for the destination 10.20.4.8, resolving why the VM cannot reach it despite the configured UDR and peering.

Exam trap

The trap here is that candidates confuse 'IP flow verify' (which checks NSG rules) with route verification, but IP flow verify does not show the routing table or the winning route for a destination IP.

Why the other options are wrong

A

Connection troubleshoot tests end-to-end connectivity between a source and destination, but it does not show the effective route table applied to a specific NIC. The question asks to confirm which route Azure will select, which requires viewing the effective routes, not testing connectivity.

C

IP flow verify tests connectivity by checking if traffic is allowed or denied by security rules, but it does not show the actual route selected from multiple possible routes, including propagated routes. The question asks for confirming which route wins, which requires effective routes.

D

Packet capture captures raw network traffic but does not analyze routing tables or show which route is selected for a specific destination. It cannot confirm the effective route on a VM's NIC.

When would these options actually be correct?

A

Connection troubleshoot would be correct if the question asked to diagnose why a VM cannot reach a specific IP address, including checking for network security group (NSG) rules, user-defined routes, and path latency, without needing to see the effective route table.

C

IP flow verify would be correct if the question asked: 'You need to test whether a specific TCP packet from a VM to 10.20.4.8 is allowed or blocked by NSG rules, and you suspect a security rule is causing the issue.'

D

Packet capture would be correct when you need to inspect actual packets sent/received by a VM to diagnose issues like packet loss, retransmissions, or protocol-level problems, such as verifying if traffic is being dropped by a firewall or if TCP handshake completes.

Why candidates pick the wrong answer

A

Candidates may think that testing connectivity (Connection troubleshoot) will reveal routing issues, but it only reports connectivity success/failure and potential issues, not the actual route selection logic.

C

Candidates may confuse connectivity testing with route verification, thinking IP flow verify can also diagnose routing issues because it tests end-to-end connectivity.

D

Candidates may think packet capture is the most comprehensive tool for network troubleshooting, not realizing that the question specifically asks about route selection, which is a routing table analysis problem, not a packet-level inspection.

532
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

If a question asks how to prevent accidental deletion of critical storage accounts that already comply with security policies, assigning a CanNotDelete lock would be correct.

C

A question where storage accounts need to be isolated from a policy's scope to avoid compliance issues, such as when a policy incorrectly applies to resources that should be exempt, and moving them to a different resource group with a policy exemption is the intended solution.

D

A question where an administrator cannot modify a storage account's configuration due to insufficient permissions, and the solution is to assign a role like 'Storage Account Contributor' to enable changes.

Why candidates pick the wrong answer

A

Candidates may confuse locks with policy remediation, thinking a lock can enforce configuration changes, or they may assume any 'lock' type can fix compliance issues.

C

Candidates may think that moving resources to a new group resets their compliance status or triggers policy evaluation, but DeployIfNotExists requires explicit remediation tasks to modify existing resources.

D

Candidates may think that higher RBAC roles automatically enforce policies or fix compliance, confusing permission elevation with policy remediation mechanisms.

533
MCQhard

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

D

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

When would these options actually be correct?

A

If the question asked for a solution that automatically reapplies RBAC roles after each rebuild (e.g., via automation scripts), keeping the system-assigned identity and reapplying roles could be acceptable, though not ideal.

D

When the question asks for a method to grant a client application time-limited access to a specific Azure Storage blob or container without exposing the storage account key, and the access does not need to persist across VM redeployments or involve RBAC.

Why candidates pick the wrong answer

A

Candidates may think system-assigned identity is simpler and that reapplying roles is a minor overhead, overlooking that the identity itself changes on redeployment.

D

Candidates may confuse SAS with managed identities because both provide authentication without storing credentials, but SAS is for storage access only and lacks the identity stability and RBAC integration required for this scenario.

534
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

If the question specified that different subscriptions require different allowed locations or VM sizes, and the team needs granular control per subscription rather than a uniform set of policies across all subscriptions, then separate policy assignments at each subscription would be appropriate.

C

An administrator needs to grant a specific set of permissions (e.g., read-only access to VMs but full access to storage) to all subscriptions under a management group, and the built-in roles do not provide the exact combination. A custom RBAC role assigned at the management group would be correct.

D

An administrator needs to prevent accidental deletion or modification of critical subscriptions, such as production subscriptions, to ensure they are not removed or changed without authorization. A resource lock (e.g., CanNotDelete) would be the correct solution.

Why candidates pick the wrong answer

A

Candidates may think that assigning policies per subscription is the only way to enforce controls, not realizing that a policy initiative at the management group can apply to all child subscriptions uniformly and be tracked centrally.

C

Candidates may confuse governance controls with access control, thinking that restricting permissions can enforce location or tag requirements, or they may mistakenly believe RBAC can enforce resource configuration policies.

D

Candidates may confuse resource locks with governance controls, thinking that locking a subscription can enforce policies, or they may overestimate the scope of locks as a management tool.

535
MCQeasy

A team has an approved Windows VM that already includes their application, patches, and monitoring agent. They want future VMs to start with the same configuration. What should they use?

A.A managed image created from the approved VM
B.An availability set
C.A snapshot of the OS disk
D.A larger virtual machine size
AnswerA

A managed image captures the configured operating system and installed software so you can deploy new VMs with the same baseline. This is the simplest way to standardize a known-good VM configuration for repeated use. It fits the requirement because the team wants future VMs to start from the same approved setup, not rebuild the software manually each time. It is an operationally common choice for consistent VM deployment.

Why this answer

A managed image captures the entire VM configuration, including the OS, application, patches, and monitoring agent, allowing you to create multiple identical VMs from a single source. Unlike a snapshot, which is tied to a specific disk and requires manual steps to replicate the full VM setup, a managed image provides a reusable template for consistent deployments. This approach ensures future VMs start with the exact same configuration as the approved VM.

Exam trap

The trap here is that candidates often confuse a snapshot with a managed image, not realizing that a snapshot only captures a single disk's state and lacks the VM-level configuration needed to create a fully functional VM directly.

Why the other options are wrong

B

An availability set is used to ensure high availability by distributing VMs across fault and update domains, not to capture a VM's configuration for reuse.

C

A snapshot of the OS disk captures only the disk state at a point in time, but it cannot be used directly to deploy new VMs with the same configuration; you would need to create a managed image from the snapshot first.

D

Increasing the VM size only changes the hardware resources (CPU/RAM) and does not capture or replicate the OS configuration, application, patches, or monitoring agent. It does not create a reusable template for future VMs.

When would these options actually be correct?

B

When the question asks how to ensure that two or more VMs are not placed on the same physical hardware or are updated separately to maintain application availability during maintenance.

C

When you need to create a backup or restore a specific VM's OS disk to the same or a different VM, such as for disaster recovery or rolling back changes, a snapshot is the appropriate choice.

D

A question where the requirement is to improve performance of an existing VM that is under heavy load, such as 'A VM is experiencing high CPU usage and needs more compute power. What should you do?'

Why candidates pick the wrong answer

B

Candidates may confuse availability sets with configuration templates because both involve VMs, but availability sets focus on redundancy, not image reuse.

C

Candidates may think a snapshot is sufficient to replicate a VM's configuration because it captures the disk contents, but they overlook that snapshots lack the metadata and generalization required for creating multiple VMs.

D

Candidates may mistakenly think that a larger VM size implies a more capable or 'better' baseline configuration, confusing hardware scaling with software configuration management.

536
MCQhard

Your company must retain Azure Activity Log data beyond the built-in retention period and make it available for long-term analysis. Which configuration should you use?

A.Diagnostic settings for the Activity Log
B.A ReadOnly lock on the subscription
C.An availability set
D.NSG flow logs only
AnswerA

Diagnostic settings for the Activity Log are the correct mechanism because the Azure Activity Log has a default retention of 90 days, after which data is automatically purged unless you export it. By creating diagnostic settings, you can route Activity Log entries to a Log Analytics workspace, a storage account, or an Event Hubs namespace for long-term retention, alerting, or archival. This is the only configuration among the options that actually extends or preserves Activity Log data beyond the built-in retention period. Without such settings, the platform will discard older Activity Log records regardless of other actions.

Why this answer

Azure Activity Log is retained by default for 90 days. To store data beyond this period for long-term analysis, you must configure diagnostic settings to route the Activity Log to a Log Analytics workspace (for querying) or an Azure Storage account (for archival). This is the only native mechanism to extend retention and enable long-term analysis.

Exam trap

The trap here is that candidates confuse the built-in 90-day retention of the Activity Log with the ability to extend it, mistakenly thinking a lock or other resource configuration can preserve the data, when only diagnostic settings provide the export and retention control needed.

Why the other options are wrong

B

A ReadOnly lock prevents modifications to resources but does not extend the retention period of Activity Log data beyond the default 90 days. Activity Log retention is managed via diagnostic settings, not locks.

C

An availability set is a logical grouping of VMs to ensure high availability, not a configuration for retaining or analyzing Azure Activity Log data.

D

NSG flow logs capture IP traffic through a network security group, not Azure Activity Log data. They are used for network monitoring and security analysis, not for retaining subscription-level operational logs.

When would these options actually be correct?

B

A ReadOnly lock would be correct if the question asked: 'You need to prevent accidental deletion or modification of a critical subscription resource. Which configuration should you use?'

C

This option would be correct in a question asking how to ensure high availability for virtual machines running in a single region, such as 'You need to deploy two VMs that must be placed on different fault domains and update domains. Which configuration should you use?'

D

When the question asks about analyzing network traffic patterns or detecting anomalies in IP flows through NSGs, and the requirement is to store flow logs for long-term analysis (e.g., using Log Analytics or storage accounts).

Why candidates pick the wrong answer

B

Candidates may confuse administrative controls (locks) with data retention mechanisms, thinking a lock preserves log data by preventing changes.

C

Candidates might confuse 'availability' with 'data availability' or think that availability sets provide some form of data retention or logging capability.

D

Candidates may confuse 'logs' in general, thinking NSG flow logs can serve as a catch-all for logging needs, or they may not clearly distinguish between Activity Logs (control plane) and flow logs (data plane).

537
MCQmedium

You need to connect VNet-Hub and VNet-Spoke so that resources in both virtual networks can communicate privately over the Microsoft backbone. Both virtual networks are in the same region. What should you configure?

A.Virtual network peering
B.A site-to-site VPN
C.A network security group
D.An Azure Policy assignment
AnswerA

VNet peering is the correct solution for private, low-latency communication between Azure VNets.

Why this answer

Virtual network peering (A) is the correct solution because it enables direct, private connectivity between two virtual networks over the Microsoft backbone infrastructure. Since both VNets are in the same region, you can use standard VNet peering, which routes traffic between the peered networks using only private IP addresses, with no internet transit or gateway required. This meets the requirement for private communication without any additional VPN or gateway overhead.

Exam trap

Microsoft often tests the misconception that a site-to-site VPN is required for private connectivity between VNets, but VNet peering is the native, simpler solution for same-region private communication over the Microsoft backbone.

Why the other options are wrong

B

A site-to-site VPN connects on-premises networks to Azure via the internet, not for private VNet-to-VNet communication within the same region over the Microsoft backbone.

C

A network security group (NSG) filters traffic at the subnet or NIC level but does not establish connectivity between virtual networks; it cannot enable private communication across VNets.

D

Azure Policy assignment is used to enforce compliance rules across resources, not to establish network connectivity. It cannot enable private communication between virtual networks.

When would these options actually be correct?

B

You need to connect an on-premises network to an Azure virtual network securely over the internet, using IPsec/IKE tunnels.

C

You need to restrict inbound traffic to a specific subnet in a virtual network from the internet, allowing only HTTP and HTTPS traffic while denying all other inbound connections.

D

An Azure Policy assignment would be correct when you need to enforce that all virtual networks in a subscription use a specific DNS server or require that VNet peering is only allowed with approved VNets.

Why candidates pick the wrong answer

B

Candidates may confuse site-to-site VPN with VNet-to-VNet connectivity, thinking VPN is required for any cross-network private communication.

C

Candidates may confuse traffic filtering with connectivity, thinking an NSG can somehow bridge networks, or they may misapply its role in securing cross-VNet traffic.

D

Candidates may confuse policy-based management with network configuration, thinking that a policy can dictate connectivity rules between VNets.

538
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

B

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

C

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

D

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

When would these options actually be correct?

B

A role assignment would be correct if the question asked: 'You need to grant a user the ability to manage virtual machines in a specific resource group.' It controls access, not compliance.

C

A resource lock would be correct if the question asked: 'You need to prevent accidental deletion of a critical resource that has a cost-center tag and is in an approved location.' The lock ensures the resource cannot be deleted or modified, protecting the existing compliance.

D

You need to organize multiple subscriptions under a common hierarchy for applying consistent policies, compliance, or cost management. A management group would be correct if the question asked for a logical container to group subscriptions for centralized governance.

Why candidates pick the wrong answer

B

Candidates may confuse role assignments with policy assignments, thinking that assigning a role can enforce rules, but roles only control access, not resource properties.

C

Candidates may confuse resource locks with policy enforcement, thinking locks can restrict configurations like tags or locations, when locks only prevent deletion or modification operations.

D

Candidates may confuse management groups with policy assignments because both are used for governance at scale, but management groups only provide structure, not enforcement.

539
Multi-Selecteasy

A Windows VM and a Linux VM are both joined to the same Active Directory Domain Services domain. Which two authentication methods can be used to mount the same Azure Files share over SMB? Select two.

Select 2 answers
A.Storage account key
B.Active Directory Domain Services credentials
C.Blob SAS token
D.Network security group rule
E.Azure resource lock
AnswersA, B

The storage account key can authenticate SMB mounts from supported Windows and Linux clients.

Why this answer

The storage account key provides administrative access to the Azure Files share, allowing any SMB client (Windows or Linux) to mount the share by using the key as the credential. Option B is correct because when both VMs are joined to the same Active Directory Domain Services domain, the Azure Files share can be enabled for AD DS authentication, allowing domain-joined clients to mount the share using their domain credentials.

Exam trap

The trap here is that candidates often confuse Azure Files authentication with Blob Storage authentication, mistakenly selecting a SAS token as a valid method for SMB mounting, when in fact SAS tokens are only used for REST-based access to Blob or File storage (via HTTPS), not for SMB protocol.

Why the other options are wrong

C

A Blob SAS token provides delegated access to Azure Blob Storage, not to Azure Files SMB shares. Azure Files supports SMB authentication via storage account key or AD DS credentials, not SAS tokens.

D

Network security group (NSG) rules control inbound/outbound traffic to Azure resources but are not authentication methods for mounting an Azure Files share over SMB.

E

Azure resource locks prevent accidental deletion or modification of resources but do not provide any authentication mechanism for mounting an Azure Files share over SMB.

When would these options actually be correct?

C

A question asking how to grant time-limited, delegated access to a specific blob in an Azure Storage container without sharing the storage account key. The correct answer would be a Blob SAS token.

D

In a question about securing access to an Azure VM, an NSG rule would be the correct answer to allow or deny specific traffic (e.g., RDP or SSH) to the VM's network interface.

E

In a scenario where an administrator needs to protect an Azure Files share from accidental deletion or modification, applying an Azure resource lock (e.g., CanNotDelete or ReadOnly) would be the correct answer.

Why candidates pick the wrong answer

C

Candidates may confuse Azure Files with Azure Blob Storage, or assume that SAS tokens are a universal authentication method for all Azure Storage services, including SMB-based file shares.

D

Candidates may confuse network-level access control (NSG) with authentication, thinking that allowing traffic through an NSG is sufficient to mount a file share.

E

Candidates may confuse resource locks with access control mechanisms, thinking they can restrict access to the share, but locks only affect management operations, not data access.

540
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

B

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

C

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

When would these options actually be correct?

A

If the question required granting read-only access to all resources across multiple subscriptions under a management group, such as for a compliance auditor who needs visibility into all subscriptions, then assigning the Reader role at the management group scope would be correct.

B

If the question required granting read-only access to all resources within a subscription (e.g., for a security auditor to review all configurations), assigning the Reader role at the subscription scope would be correct.

C

If the question required read-only access to all resources within a specific resource group (e.g., all storage accounts and other services in that group) and did not restrict visibility to a single storage account, assigning the Reader role at the resource group scope would be correct.

Why candidates pick the wrong answer

A

Candidates may think that a broader scope like management group is more efficient or 'safe' because it covers the storage account, but they overlook the requirement to restrict visibility to only that specific storage account.

B

Candidates may think assigning at a higher scope is simpler or covers the storage account, overlooking the requirement to restrict visibility to only that specific storage account.

C

Candidates may think that since the storage account is in a resource group, assigning the role at the resource group level is sufficient and simpler, overlooking that it grants access to all resources in that group, not just the target storage account.

541
MCQmedium

Based on the exhibit, why is TCP 8443 traffic from the web tier still denied to the app tier, and what should you do to allow only the web tier?

A.Change the deny-all rule at priority 200 to allow TCP 8443 from ASG-Web.
B.Add an inbound allow rule for TCP 8443 from ASG-Web to ASG-App with a priority lower than 100.
C.Add a route table entry for 8443 traffic from the web tier to the app tier.
D.Remove the AzureLoadBalancer rule because it is overriding the web tier traffic.
AnswerB

An allow rule must be evaluated before the existing deny rule, and using ASGs limits access to the web tier.

Why this answer

In Azure Network Security Groups (NSGs), rules are evaluated in priority order, with lower numbers evaluated first. The existing rule at priority 100 allows traffic from the web tier but does not explicitly allow TCP 8443, so a subsequent deny-all rule at priority 200 blocks it. To allow only the web tier, you must add an inbound allow rule for TCP 8443 from ASG-Web with a priority lower than 100 (e.g., 90).

This new rule is evaluated before the existing rule at priority 100, permitting the desired traffic while still blocking other sources.

Exam trap

The trap here is that candidates often assume changing the deny-all rule is the simplest fix, but they overlook that it would open the port to all sources, not just the web tier, failing the specific requirement.

Why the other options are wrong

A

Changing the deny-all rule at priority 200 to allow TCP 8443 would allow traffic from all sources, not just the web tier, violating the requirement to restrict access to ASG-Web only.

C

Route tables control traffic routing between subnets, not firewall rules. The question involves Network Security Group (NSG) rules, which filter traffic at the subnet or NIC level; adding a route table entry does not affect NSG allow/deny decisions.

D

Removing the AzureLoadBalancer rule would not fix the issue because that rule is likely needed for Azure Load Balancer health probes, and it does not override web tier traffic; the deny-all rule at priority 200 is blocking the traffic.

When would these options actually be correct?

A

If the question required allowing TCP 8443 traffic from any source to the app tier, and the only blocking rule was the deny-all at priority 200, then modifying that rule to allow the traffic would be correct.

C

If the question described that traffic between subnets was being incorrectly routed (e.g., via a misconfigured virtual appliance or missing route), then adding a route table entry to direct TCP 8443 traffic from the web subnet to the app subnet would be the correct action.

D

This option would be correct if the AzureLoadBalancer rule had a higher priority and was explicitly blocking TCP 8443 from the web tier, and removing it would allow the traffic while still maintaining security.

Why candidates pick the wrong answer

A

Candidates may think modifying the explicit deny rule is the simplest fix, overlooking that it would open access broadly instead of restricting to the web tier.

C

Candidates may confuse the function of route tables (which direct traffic paths) with NSGs (which filter traffic), especially when troubleshooting connectivity issues, leading them to think a routing change can override a security rule.

D

Candidates may think the AzureLoadBalancer rule is interfering because it appears as a default rule, and they might assume removing it will allow traffic without understanding its purpose for health probes.

542
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

When would these options actually be correct?

A

When each VM needs a unique identity that is automatically created and deleted with the VM, and there is no requirement for the identity to persist after VM deletion.

C

When the script needs to authenticate to external services that do not support managed identities, and the administrator can securely store the client secret in Azure Key Vault with VM access via a managed identity or certificate.

Why candidates pick the wrong answer

A

Candidates may assume that 'system-assigned' is simpler and automatically managed, overlooking the requirement for identity persistence across VM lifecycles.

C

Candidates may think a service principal is the standard way to provide an identity for automated tasks, overlooking that managed identities eliminate the need to store and manage secrets on VMs.

543
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

When a single VM needs to access Azure resources without managing credentials, and the identity should be automatically removed when the VM is deleted. For example, a VM running a custom application that only needs access to a key vault.

C

A question that asks for a method to allow multiple administrators to remotely access VMs using the same credentials, with the requirement that the credentials remain valid after VM reimaging, would make a shared password correct if stored securely and reapplied via automation.

D

You need to grant a third-party application temporary, restricted access to a specific blob in your storage account without sharing your storage account key. The application does not require an Azure identity, and access should expire after a set time.

Why candidates pick the wrong answer

A

Candidates may think system-assigned managed identities are simpler to configure and assume they can be shared, not realizing they are per-resource and not persistent across VM rebuilds.

C

Candidates may confuse VM-level authentication with Azure resource authentication, thinking that a shared password can be used to access storage accounts via the VM, or they may overlook the requirement for the identity to survive VM rebuilds.

D

Candidates may think a SAS token is a simple way to grant access to storage without managing identities, and they might overlook the requirement for a persistent Azure identity that survives VM rebuilds.

544
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

This option would be correct if the requirement was to allow the contractor to manage virtual machines across all resource groups in the subscription, without any restriction to a specific resource group.

C

If the requirement were to allow the contractor to view (but not modify) virtual machines and their properties in RG-Test, while preventing any changes, then the Reader role at the RG-Test scope would be correct.

D

Assign the Owner role at the RG-Test scope would be correct if the requirement is to grant a contractor full control over all resources in that resource group, including managing role assignments and deleting resources, without access to other resource groups.

Why candidates pick the wrong answer

A

Candidates may mistakenly think that assigning a role at a higher scope (subscription) is simpler and still effective, overlooking that it grants broader access than intended.

C

Candidates may confuse 'manage' with 'view' or think that read access is sufficient for oversight tasks, not realizing that management implies write/delete permissions.

D

Candidates may think Owner is necessary to manage virtual machines effectively, or they may confuse the broad permissions needed for VM management with the actual scope of the Virtual Machine Contributor role.

545
Multi-Selectmedium

A development team needs a new Windows VM created from an approved hardened image, and IIS must be installed automatically after deployment. Which three actions should the administrator take? Select three.

Select 3 answers
A.Use an Azure Compute Gallery image version created from the approved hardened build.
B.Reference that gallery image as the source image in the VM deployment.
C.Include the IIS extension or a custom script extension in the same deployment template or script.
D.Start from a fresh marketplace image and harden it manually after the VM is running.
E.Install IIS interactively after logging in to the VM with an administrator account.
AnswersA, B, C

Azure Compute Gallery (formerly Shared Image Gallery) centralizes approved VM images and supports versioning, so the hardened Windows build is captured once and can be reused without re-hardening. It also allows replication to multiple regions and controlled sharing across subscriptions/tenants, making it the authoritative source for compliant VM deployments. This directly addresses the requirement for an approved baseline rather than ad-hoc configuration.

Why this answer

An Azure Compute Gallery (formerly Shared Image Gallery) allows you to create and store custom VM images, including hardened builds. Using a gallery image version ensures the VM is deployed from an approved, pre-configured image that meets security and compliance requirements, avoiding the need to manually harden a fresh marketplace image.

Exam trap

The trap here is that candidates may think manual hardening or interactive installation is acceptable, but the question explicitly requires automation and an approved hardened image, making options D and E incorrect because they lack automation and consistency.

Why the other options are wrong

D

Starting from a fresh marketplace image and manually hardening it after deployment contradicts the requirement to use an approved hardened image and automate IIS installation, as it introduces manual steps and potential configuration drift.

E

The question requires automated IIS installation after deployment, but this option involves manual interactive login, which is not automated and violates the 'automatically' requirement.

When would these options actually be correct?

D

This option would be correct in a scenario where no pre-approved hardened image exists, and the administrator is required to create a new baseline by manually hardening a fresh marketplace image and then capturing it as a custom image for future deployments.

E

If the question asked for a one-time manual setup for a single VM without automation requirements, or if the scenario involved troubleshooting or post-deployment configuration where interactive access is needed.

Why candidates pick the wrong answer

D

Candidates may think manual hardening is acceptable if they plan to later capture the VM as an image, overlooking the requirement for automation and immediate use of an approved image.

E

Candidates may think manual installation is acceptable for a simple task, overlooking the automation requirement in the question.

546
Multi-Selectmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

B

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

D

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

E

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

When would these options actually be correct?

B

If the question stated that the consultant does not have an existing work account that can be used for federation, or if the organization requires internal accounts for all external users, then creating a new member user would be appropriate.

D

If the question required granting the consultant full administrative access across the entire Microsoft Entra ID tenant (e.g., to manage all users and resources), then assigning the Global Administrator role would be correct.

E

A question asks how to allow an external user to discover Azure subscription details without granting access, such as for billing or reporting purposes, where the user only needs to know the subscription and tenant IDs to configure tools or scripts.

Why candidates pick the wrong answer

B

Candidates may think creating a new user is the simplest way to grant access, overlooking the B2B guest invitation feature that allows external users to use their own credentials.

D

Candidates may think that giving the highest role ensures the consultant has all necessary permissions, overlooking the specific scope required and the security risk of over-privileging.

E

Candidates may think that providing the subscription and tenant IDs is sufficient for the consultant to authenticate with their own account and gain access, misunderstanding that explicit identity and role assignments are required.

547
MCQmedium

Based on the exhibit, which feature should be enabled on the subnet so the storage account remains reachable through its public endpoint but only from that subnet?

A.Private endpoint
B.Service endpoint
C.Azure Bastion
D.VPN Gateway
AnswerB

A service endpoint extends your VNet's identity and security rules to the Azure storage service over the Microsoft backbone, so the storage account can be locked down to accept traffic only from a specific subnet without assigning any private IP. The storage account still uses its public endpoint, but the Source IP is rewritten to the subnet's IP range, enabling firewall rules like "Allow from 10.0.1.0/24." This meets the exhibit's requirement to avoid a private IP while enforcing subnet-only access.

Why this answer

Service endpoints (B) extend the virtual network private address space and the identity of the VNet to Azure services over a direct connection. By enabling a Microsoft.Storage service endpoint on the subnet and configuring the storage account firewall to allow access only from that subnet's virtual network, the storage account remains reachable via its public endpoint but only from the specified subnet, without requiring a public IP on the subnet.

Exam trap

The trap here is that candidates often confuse private endpoints with service endpoints, mistakenly thinking a private endpoint is required for subnet-level access control, when in fact service endpoints achieve the same goal while preserving public endpoint accessibility.

Why the other options are wrong

A

Private endpoint assigns a private IP to the storage account, making it accessible only from the virtual network, not from its public endpoint. The question requires the storage account to remain reachable through its public endpoint, which private endpoint does not allow.

C

Azure Bastion provides secure RDP/SSH connectivity to virtual machines without exposing public IPs, but it does not control network access to storage accounts or restrict access to a subnet.

D

VPN Gateway is used for site-to-site or point-to-site encrypted connectivity over the internet, not for restricting access to a public endpoint from a specific subnet. It does not provide the subnet-level service endpoint policy needed to allow only that subnet to reach the storage account's public endpoint.

When would these options actually be correct?

A

A question that asks: 'Which feature should be used to ensure that a storage account is accessible only from a specific virtual network and not from the public internet?' In that case, private endpoint would be correct because it removes public endpoint access entirely.

C

A question asks: 'You need to provide secure, seamless RDP access to VMs in a virtual network without assigning public IPs. Which service should you deploy?'

D

A question asks: 'You need to connect an on-premises network to an Azure VNet securely over the internet. Which feature should you use?' In that scenario, VPN Gateway is the correct answer for establishing encrypted site-to-site or point-to-site VPN connections.

Why candidates pick the wrong answer

A

Candidates may confuse private endpoint with service endpoint, thinking both restrict access to a subnet, but private endpoint actually disables public endpoint access, which contradicts the requirement to keep the public endpoint reachable.

C

Candidates may confuse Azure Bastion's role in securing network access with subnet-level access controls, mistakenly thinking it can restrict storage account access.

D

Candidates may confuse VPN Gateway with a network security boundary, thinking it can restrict access to a public endpoint, or they may mistakenly believe that a VPN tunnel can be used to limit source IPs from a specific subnet.

548
Multi-Selectmedium

Two line-of-business VMs in a single region must stay available if one physical host is patched or fails. A zone failure is not part of the requirement. Which three actions should the administrator take? Select three.

Select 3 answers
A.Create an availability set for the application VMs before deployment.
B.Deploy both VMs into the same availability set.
C.Allow Azure to place the VMs across different fault and update domains within the availability set.
D.Deploy the VMs in separate availability zones to protect against a datacenter outage.
E.Use a single larger VM and rely on snapshots for uptime.
AnswersA, B, C

Creating an availability set before deploying the VMs is mandatory because Azure does not allow you to add an existing VM into an availability set after creation; the VM must be placed into the set at the time of provisioning. By defining the availability set first, you ensure that both VMs are created with the set's fault and update domain constraints applied from the start, which is the foundational step for achieving the 99.95% availability SLA for multi-instance deployments. Without this upfront creation, the workload cannot be properly distributed across distinct failure boundaries.

Why this answer

An availability set ensures that VMs are placed on different fault domains (physical hosts) and update domains within a single Azure region, protecting against physical host patching or failure. This meets the requirement of keeping VMs available during a single host event without requiring zone-level redundancy.

Exam trap

The trap here is that candidates often confuse availability sets (protecting against host failure) with availability zones (protecting against datacenter failure), leading them to select zone-based deployment when the requirement only specifies a single host failure scenario.

Why the other options are wrong

D

The requirement specifies that a zone failure is not part of the requirement, so deploying VMs in separate availability zones is unnecessary and does not address the need to protect against a single physical host failure or patching event.

E

Using a single larger VM with snapshots does not provide high availability; if the host fails, the VM is unavailable until restored from a snapshot, which can take significant time and may lose data. The requirement is for continuous availability during host patching or failure, not just data protection.

When would these options actually be correct?

D

If the requirement were to protect against a full datacenter outage (e.g., due to power or network failure), deploying VMs across separate availability zones would be the correct answer to ensure high availability across zones.

E

This option would be correct in a scenario where the requirement is to minimize downtime during planned maintenance or failure by using Azure Site Recovery or backup, and the focus is on disaster recovery rather than high availability within a single region. For example, if the question asked for a cost-effective solution to protect against data loss with a recovery time objective (RTO) of hours, not minutes.

Why candidates pick the wrong answer

D

Candidates may confuse availability zones with availability sets, thinking that zones provide similar protection against host failures, or they may over-engineer the solution by adding zone-level redundancy when it is not required.

E

Candidates may think that a larger VM with snapshots offers redundancy or failover capability, confusing data protection (backups) with high availability (redundant instances). They might also assume that snapshots can be used to quickly spin up a new VM, overlooking the time and manual intervention required.

549
MCQeasy

A line-of-business app runs on two Azure VMs in the same region. The business wants to reduce the chance that both VMs are affected by the same planned host update. What should the administrator use?

A.An availability set
B.A public load balancer
C.A managed image
D.A private endpoint
AnswerA

An availability set spreads VMs across fault domains and update domains within a datacenter environment. This reduces the chance that a planned host update or a hardware issue affects both VMs at the same time. It is the right choice when the goal is host-level resilience for VMs in the same region.

Why this answer

An availability set ensures that VMs are placed on different fault domains and update domains within an Azure datacenter. Fault domains isolate VMs from shared hardware failures, while update domains ensure that planned host updates (e.g., OS patching) are applied sequentially across groups, so not all VMs are rebooted simultaneously. This directly reduces the chance that both VMs are affected by the same planned host update.

Exam trap

The trap here is that candidates often confuse availability sets (logical grouping for update/fault domain isolation within a single datacenter) with availability zones (physical separation across datacenters), or mistakenly think a load balancer provides high availability against planned maintenance, when it only distributes traffic and does not affect host placement.

Why the other options are wrong

B

A public load balancer distributes traffic across VMs but does not protect against planned host updates affecting both VMs simultaneously, as it does not control the underlying host maintenance schedule.

C

A managed image is used to create standardized VM configurations, not to protect against planned host updates. It does not provide fault isolation across update domains.

D

A private endpoint provides secure connectivity to Azure PaaS services over a private IP address, but it does not protect VMs from planned host updates or provide fault tolerance across update domains.

When would these options actually be correct?

B

An administrator needs to distribute incoming internet traffic across multiple VMs to improve application availability and scalability. The correct answer would be a public load balancer when the question focuses on load balancing, not fault domain isolation.

C

When an organization needs to deploy multiple VMs with identical configurations across regions for disaster recovery, a managed image ensures consistency and rapid provisioning.

D

An administrator needs to ensure that a VM accessing an Azure SQL database uses a private IP address from the VNet, avoiding exposure to the public internet. In that scenario, a private endpoint would be the correct answer.

Why candidates pick the wrong answer

B

Candidates may think a load balancer provides high availability against all types of failures, including planned maintenance, because it distributes traffic and can detect VM health.

C

Candidates may confuse 'managed' with 'managed availability' or think that using a managed image somehow distributes VMs across hosts, but it only captures the OS and data disks.

D

Candidates may confuse private endpoints with high availability solutions, thinking that isolating network traffic also isolates VMs from host maintenance events.

550
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

B

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

C

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

D

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

When would these options actually be correct?

B

This option would be correct if the question specified using a service principal with a certificate or secret, and the administrator had the credentials available. For example: 'An administrator must authenticate a script using a service principal with a client secret stored in Azure Key Vault.'

C

This command is correct when the user or service principal is already authenticated (e.g., via 'az login') and needs to switch to a different subscription for subsequent operations. For example, after logging in with a user account that has access to multiple subscriptions, you use this command to target a specific subscription.

D

This option would be correct if the question asked for an interactive authentication method for a user without access to a browser on the current device, such as when using a headless system or a device without a web browser, and the user can authenticate via another device.

Why candidates pick the wrong answer

B

Candidates may confuse managed identity with service principal authentication, or assume that a service principal is the only way to authenticate non-interactively, overlooking the passwordless requirement.

C

Candidates may think that setting the subscription is the first step to access resources in another subscription, overlooking that authentication must occur first. They might confuse context switching with authentication.

D

Candidates may be familiar with Connect-AzAccount for Azure PowerShell and think -UseDeviceAuthentication is a secure way to authenticate without storing credentials, overlooking the requirement for non-interactive script execution.

551
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

B

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

C

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

D

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

When would these options actually be correct?

B

A resource lock would be correct if the question were: 'After assigning the three policies, the administrator wants to prevent the policy assignment from being deleted or modified. What should be created?'

C

A custom RBAC role would be correct if the question asked: 'The security team needs to allow junior administrators to modify policy assignments without granting them full owner rights. What should they create?'

D

An administrator needs to exclude a specific subscription from a policy that enforces tagging, while still applying the policy to all other subscriptions in the management group. Creating an exemption at the subscription level would be correct.

Why candidates pick the wrong answer

B

Candidates may confuse the need to protect the policy assignment with the need to group policies, thinking a lock ensures the policies stay in place.

C

Candidates may confuse the need to manage policy assignments with the need to group policies, or think that a custom role is required to handle the grouping of policies.

D

Candidates may confuse 'exemption' with 'assignment' or think that an exemption can automatically apply multiple rules, misunderstanding its purpose as a tool for policy grouping.

552
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

If the requirement was to allow an auditor to view all resources across the entire subscription without making changes, and there was no restriction on accessing other resource groups, then Reader at subscription scope would be appropriate.

C

If the auditor needed to view resources AND also required to manage tags or perform configuration changes (e.g., update tags, modify resource settings) but not delete resources, Contributor at RG-Finance scope would be appropriate.

D

If the requirement was to allow an auditor to view all resources across multiple resource groups that are all under the same management group, and there was no restriction on accessing other resource groups, then Reader at the management group scope would be appropriate.

Why candidates pick the wrong answer

A

Candidates may think Reader is inherently safe and scope at subscription is simpler to manage, overlooking the need to restrict access to only RG-Finance.

C

Candidates may think Contributor is necessary for reading tags and configuration, but Reader already includes read access to all resource properties including tags and configuration.

D

Candidates may assume that since all finance resources are grouped under a management group, assigning Reader at that scope is efficient and still read-only, overlooking that it grants access to other resource groups within the same management group.

553
MCQeasy

Based on the exhibit, why is the administrator's HTTPS test still being denied, and what should be changed?

A.Increase the deny rule priority number from 200 to 300.
B.Move Allow-HTTPS-Admin to a priority lower than 200.
C.Change Allow-HTTPS-Admin to use protocol Any.
D.Assign a public IP address to the VM.
AnswerB

NSG rules are processed from the lowest priority number upward. Because the deny rule is evaluated first, the admin allow rule never gets a chance. Moving the allow rule ahead of the deny rule lets only the admin IP reach HTTPS while everyone else remains blocked.

Why this answer

The administrator's HTTPS test is denied because Azure Network Security Groups (NSGs) process rules in priority order, from lowest to highest numeric value. The deny rule at priority 200 is evaluated before the allow rule at priority 300, so the HTTPS traffic is blocked. To allow HTTPS traffic, the allow rule must have a lower priority number (e.g., 100) than the deny rule, ensuring it is evaluated first.

Option B correctly identifies that moving Allow-HTTPS-Admin to a priority lower than 200 (i.e., a smaller number) will allow the traffic before the deny rule is applied.

Exam trap

The trap here is that candidates often confuse priority numbers, thinking a higher number means higher priority, when in fact lower numbers are evaluated first; this leads them to incorrectly choose increasing the deny rule's priority or other irrelevant changes.

Why the other options are wrong

A

Increasing the deny rule priority from 200 to 300 makes it a lower priority (higher number), which does not resolve the issue because the deny rule still has a higher priority than the allow rule (which is at priority 100). The HTTPS test is denied because the deny rule at priority 200 is evaluated before the allow rule at priority 100.

C

The Allow-HTTPS-Admin rule already uses protocol TCP (HTTPS). Changing it to 'Any' would not resolve the issue because the deny rule with priority 200 is blocking traffic before the allow rule is evaluated. The problem is rule priority, not protocol.

D

Assigning a public IP address to the VM does not affect Azure Firewall rules; the HTTPS test is denied by a firewall rule with priority 200, and the VM's IP assignment does not bypass firewall policies.

When would these options actually be correct?

A

This option would be correct if the question stated that the allow rule had a priority of 300 and the deny rule had a priority of 200, and the goal was to ensure the deny rule is evaluated before the allow rule. Increasing the deny rule priority to 300 would make it higher priority than the allow rule, thus denying traffic as intended.

C

In a scenario where a firewall rule is blocking traffic due to protocol mismatch (e.g., an allow rule for HTTPS but traffic uses HTTP), changing the rule to 'Any' protocol would allow the traffic. For example, if the administrator's test used HTTP instead of HTTPS, setting protocol to 'Any' would match.

D

In a scenario where a VM is behind Azure Firewall and needs direct internet access without firewall inspection, assigning a public IP and using a custom route (e.g., 0.0.0.0/0 next hop Internet) would bypass the firewall, making this correct.

Why candidates pick the wrong answer

A

Candidates may think that increasing the priority number makes the rule more important, but in Azure, a lower priority number means higher priority. They might also confuse priority with rule order or assume that a higher number overrides a lower one.

C

Candidates may think that if the rule is not matching, widening the protocol to 'Any' will make it match. They overlook that the deny rule with higher priority is the actual blocker, not the protocol specificity.

D

Candidates may think that a public IP allows direct internet access, overlooking that Azure Firewall still intercepts traffic unless explicitly bypassed via routing.

554
MCQmedium

A team enabled Azure Files for a Windows-based application. The app can reach the storage account, but the mount fails because users cannot authenticate with the share. The team does not want to use the storage account key. What is the best next step?

A.Turn off the storage account firewall and retry the mount anonymously.
B.Grant the VM or user an Azure Files data-plane role, such as Storage File Data SMB Share Contributor, and use identity-based authentication.
C.Create a network security group rule that allows TCP 445 to the share.
D.Convert the storage account to a premium block blob account.
AnswerB

When Azure Files is accessed over SMB without storage keys, the administrator should use identity-based authentication and assign the appropriate Azure Files data-plane role. This provides the permissions needed to mount and use the share while avoiding storage account keys. It is the correct fix when network access works but authorization fails.

Why this answer

Azure Files supports identity-based authentication over SMB using either on-premises Active Directory Domain Services (AD DS) or Azure Active Directory Domain Services (Azure AD DS). By granting the VM or user the Storage File Data SMB Share Contributor role, the team enables Kerberos-based authentication, eliminating the need for the storage account key. This approach allows the mount to succeed while meeting the requirement to avoid using the shared key.

Exam trap

The trap here is that candidates often confuse network-level connectivity (TCP 445) with authentication requirements, assuming that opening the port alone will fix the mount failure, when in fact the issue is the lack of a valid identity-based authentication mechanism.

Why the other options are wrong

A

Turning off the storage account firewall and mounting anonymously would bypass authentication entirely, which is insecure and not a supported method for Azure Files SMB access. Azure Files requires proper authentication, and anonymous access is not available for SMB shares.

C

The mount failure is due to authentication, not network connectivity. NSG rules control network traffic but do not address identity-based authentication required for accessing Azure Files without the storage account key.

D

Converting to a premium block blob account does not address authentication for Azure Files; block blobs are for object storage, not SMB file shares, and the issue is identity-based access, not performance.

When would these options actually be correct?

A

If the question stated that the storage account firewall is blocking access and the goal is to allow access from a specific trusted network or IP range, then adjusting the firewall rules (not turning it off completely) would be appropriate. However, the question's issue is authentication, not network connectivity.

C

This option would be correct if the question described a scenario where the VM cannot reach the storage account due to a network restriction, such as a blocked port 445, and the goal is to enable SMB connectivity for Azure Files.

D

This option would be correct if the question asked how to improve performance for a blob storage workload requiring low latency and high IOPS, such as a media streaming application, where upgrading to premium block blob storage is appropriate.

Why candidates pick the wrong answer

A

Candidates may think that disabling the firewall simplifies connectivity, assuming the mount failure is due to network restrictions rather than authentication. They might overlook that Azure Files SMB requires identity-based authentication or a storage account key.

C

Candidates may confuse network connectivity issues with authentication issues, assuming that allowing port 445 will resolve all Azure Files mount problems, especially since SMB requires this port.

D

Candidates may think 'premium' solves all problems or confuse Azure Files with blob storage, assuming a premium tier would fix access issues without understanding the fundamental difference between file and blob services.

555
Multi-Selecteasy

A storage account's platform logs must be searchable later with KQL in a central workspace. Which two actions should the administrator take? Select two.

Select 2 answers
A.Create a diagnostic setting on the storage account
B.Configure a NAT gateway on the storage subnet
C.Send the logs to a Log Analytics workspace
D.Assign the Reader role on the subscription
E.Enable a VM backup policy
AnswersA, C

This is the foundational action: a diagnostic setting is a resource-level rule that tells Azure which storage platform log categories (such as StorageRead, StorageWrite, and StorageDelete) and metrics to export, and to which destination. Without it, the logs are not captured anywhere and are simply discarded. You must specify the desired categories and choose a Log Analytics workspace as the target so that the logs can be queried later. This setting is the critical enabler for log retention and searchability.

Why this answer

A diagnostic setting on the storage account is required to route platform logs (e.g., storage read/write/delete operations) to a destination. Option C is correct because a Log Analytics workspace is the destination that enables KQL-based searching and analysis of those logs. Without both, the logs cannot be stored in a central, queryable repository.

Exam trap

The trap here is that candidates may think simply enabling logging on the storage account (e.g., via the 'Logging' blade) is sufficient, but without a diagnostic setting and a Log Analytics workspace destination, the logs are not searchable with KQL in a central workspace.

Why the other options are wrong

B

A NAT gateway provides outbound internet connectivity for private subnets, but it does not collect, route, or store platform logs. Logs must be sent to a destination like Log Analytics via diagnostic settings, not through a NAT gateway.

D

Assigning the Reader role on the subscription does not enable log collection or routing; it only grants read access to Azure resources, not the ability to send logs to a Log Analytics workspace.

E

Enabling a VM backup policy is unrelated to making storage account platform logs searchable with KQL. VM backup policies protect virtual machine data, not storage account logs.

When would these options actually be correct?

B

This option would be correct in a scenario requiring secure outbound internet access from a private subnet (e.g., to download updates or access external APIs) while preventing inbound traffic from the internet.

D

When the question asks for the minimum permission needed to view diagnostic settings or read logs from a storage account in a central workspace, assigning the Reader role on the subscription would be correct.

E

This option would be correct in a question asking how to ensure Azure VM data is recoverable after accidental deletion or corruption, where the requirement is to configure Azure Backup for the VM.

Why candidates pick the wrong answer

B

Candidates may confuse network connectivity components (NAT gateway) with log routing mechanisms, assuming that logs need network egress to reach a central workspace, but logs are sent via Azure Monitor's internal pipeline, not through a NAT gateway.

D

Candidates may confuse permissions with data collection, thinking that granting read access (Reader role) is sufficient to configure log routing, or they may assume the role is needed to access the Log Analytics workspace.

E

Candidates may confuse backup and logging, thinking that backing up the storage account ensures log retention and searchability, or they may associate 'backup' with data protection in general.

556
Multi-Selecthard

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

C

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

D

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

E

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

When would these options actually be correct?

C

If the question asked 'Which Azure feature prevents accidental deletion of a resource?' then a CanNotDelete lock would be the correct answer.

D

If the question asked which Azure feature can be used to audit resource configurations without granting access, Azure Policy would be correct. For example: 'Which Azure service can evaluate VM compliance without granting read permissions?'

E

If the question were about granting network-level access to a VM without exposing it to the public internet, a private endpoint would be the correct answer. For example: 'Which Azure resource allows a VM to be accessed securely from a virtual network without a public IP?'

Why candidates pick the wrong answer

C

Candidates may confuse locks with access control, thinking that a lock that prevents deletion also implies permission to view the resource.

D

Candidates may confuse Azure Policy's ability to evaluate resources with granting access, thinking that compliance evaluation implies read permissions.

E

Candidates may confuse network connectivity with access control, thinking that a private endpoint, which enables private access, also implies read permissions.

557
Multi-Selectmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

C

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

D

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

E

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

When would these options actually be correct?

C

If the compliance team needed to enforce the presence of the Environment tag and block any resources that lack it, then using an Azure Policy with the Deny effect would be correct.

D

In a scenario where the compliance team needs to review resource configurations without making changes, and the goal is simply to grant them visibility into existing resources, granting Reader role at the subscription level would be correct.

E

If the question required preventing accidental deletion or modification of critical resources while still allowing read access, applying a ReadOnly lock to resource groups would be correct. For example, 'You need to ensure that no one can delete or modify resources in a production resource group, but the operations team must still be able to view them.'

Why candidates pick the wrong answer

C

Candidates may think that enforcing compliance requires blocking non-compliant actions, but the question explicitly states they do not want to stop users, so Deny is too restrictive.

D

Candidates may think that giving the compliance team read access is sufficient for them to manually check for missing tags, overlooking that Azure Policy provides automated compliance assessment and reporting.

E

Candidates may confuse 'identifying resources' with 'preventing changes' and think a lock is a safe, non-intrusive way to enforce compliance without understanding that locks block all write operations.

558
Multi-Selecteasy

A development team needs one storage account to host blob containers, Azure Files shares, and blob lifecycle management rules. Which two statements about the account are correct? Select two.

Select 2 answers
A.It should be a General-purpose v2 storage account.
B.It must be a BlobStorage account.
C.It can host both blob containers and Azure Files shares.
D.It must use only zone-redundant storage to use lifecycle rules.
E.It cannot use lifecycle management for blobs.
AnswersA, C

A General-purpose v2 storage account is the current, Azure-recommended account type because it provides a unified service model that supports blobs, Azure Files, queues, and tables, along with full blob lifecycle management rules. Unlike legacy BlobStorage or GPv1 accounts, GPv2 offers all modern features at the lowest price point and works with every access tier and replication option. For a team needing a single account to host blobs and manage their lifecycle, GPv2 is the only type that satisfies both requirements without compromising on service breadth.

Why this answer

A General-purpose v2 (GPv2) storage account is required because it supports the latest storage features, including blob lifecycle management rules, blob containers, and Azure Files shares. GPv2 accounts provide the necessary REST API endpoints and management capabilities for lifecycle policies, which are not available in older account types like BlobStorage or General-purpose v1.

Exam trap

The trap here is that candidates often confuse the BlobStorage account type as a universal blob solution, forgetting it cannot host Azure Files shares, and they may also incorrectly assume lifecycle management requires a specific replication redundancy like ZRS.

Why the other options are wrong

B

A BlobStorage account is specialized for block blobs and append blobs only; it cannot host Azure Files shares or support lifecycle management rules for blobs in the same way as a general-purpose v2 account.

D

Lifecycle management rules do not require zone-redundant storage (ZRS); they work with any replication type, including LRS, GRS, and RA-GRS.

E

Lifecycle management policies are specifically designed for blobs and are supported in General-purpose v2 and BlobStorage accounts, so the statement that it cannot use lifecycle management for blobs is false.

When would these options actually be correct?

B

This option would be correct if the question specified that the account is only for storing block blobs and append blobs, with no requirement for Azure Files or lifecycle management, and the exam asks for the most cost-effective or performance-optimized account type for blob-only workloads.

D

If a question specifically asks for the highest durability for blobs in a single region with automatic failover, and the scenario mandates zone-redundant storage to protect against zone failures, then ZRS would be correct.

E

This option would be correct if the question stated that the storage account must support NFS v3 or have a hierarchical namespace enabled (Azure Data Lake Storage Gen2), as lifecycle management is not supported for blobs in such accounts.

Why candidates pick the wrong answer

B

Candidates may assume that since the team needs blob containers and lifecycle management, a BlobStorage account is sufficient, overlooking that it lacks support for Azure Files shares and that general-purpose v2 accounts also support lifecycle management.

D

Candidates may mistakenly associate lifecycle management with high availability or think that advanced features require ZRS, not realizing lifecycle rules are independent of replication choice.

E

Candidates may mistakenly think that lifecycle management is only for certain premium tiers or that it requires additional configuration, leading them to believe it's not available in a standard account.

559
MCQmedium

Based on the exhibit, which Azure service should you deploy to provide browser-based administrative access to the VM without assigning it a public IP address?

A.Azure Bastion
B.Azure VPN Gateway
C.Public IP address on the VM
D.Azure Load Balancer
AnswerA

Azure Bastion is a fully managed PaaS service deployed inside an Azure virtual network; it brokers RDP and SSH sessions from the Azure portal over TLS/443 to a VM using only its private IP address. Because the VM never receives a public IP and Bastion establishes the connection from its own subnet, the management ports stay hidden from the internet. It supports Microsoft Entra ID credential validation, clipboard file transfer, and can be secured with RBAC roles and NSGs on the Bastion subnet.

Why this answer

Azure Bastion provides secure, seamless RDP/SSH connectivity to virtual machines directly in the Azure portal over TLS, without requiring a public IP address on the VM. It uses a hardened bastion host in your virtual network that brokers the connection, eliminating exposure of the VM to the internet.

Exam trap

The trap here is that candidates often confuse Azure Bastion with a VPN Gateway, thinking both provide secure remote access, but Bastion is specifically for browser-based administrative sessions without a public IP, while VPN Gateway extends the network for full client-to-site or site-to-site connectivity.

Why the other options are wrong

B

Azure VPN Gateway provides site-to-site or point-to-site VPN connectivity, not browser-based RDP/SSH access to a VM without a public IP. It requires a public IP on the gateway and does not offer a native browser-based administrative interface.

C

Assigning a public IP address to the VM would expose it directly to the internet, which contradicts the requirement for browser-based administrative access without a public IP. Azure Bastion provides secure RDP/SSH access via the Azure portal without a public IP.

D

Azure Load Balancer distributes incoming network traffic across multiple VMs, but it does not provide browser-based administrative access (RDP/SSH) to a VM without a public IP. It requires backend VMs to have routeable IPs or be reachable via other means.

When would these options actually be correct?

B

A question requiring secure connectivity from an on-premises network to an Azure VNet, such as 'You need to connect your on-premises network to Azure VNet over the internet with encrypted traffic. Which service should you use?'

C

A question that asks for the simplest way to enable direct RDP or SSH access from the internet to a VM, with no requirement to avoid public IPs or provide browser-based access. For example: 'Which resource must be associated with a VM to allow direct RDP connections from the internet?'

D

You need to distribute incoming web traffic across multiple VMs in a backend pool to ensure high availability and scalability for a web application. The VMs are in a virtual network, and you want to expose them via a single public endpoint.

Why candidates pick the wrong answer

B

Candidates may confuse VPN Gateway with Bastion because both provide secure remote access; they might think a VPN tunnel eliminates the need for a public IP on the VM, but VPN Gateway itself requires a public IP and does not provide browser-based access.

C

Candidates may think a public IP is necessary for any remote access, overlooking Azure Bastion's ability to provide browser-based access without exposing the VM to the internet.

D

Candidates may think a load balancer can be used as a jump box or proxy for administrative access, confusing its traffic distribution role with a bastion host's secure access functionality.

560
Multi-Selectmedium

You are responsible for managing a large Azure environment with multiple subscriptions. You need to ensure compliance with company policies by auditing resource changes and enabling automated remediation for non-compliant resources. Which three of the following Azure services or features should you use? (Choose three.)

Select 3 answers
.Azure Policy to define and enforce rules for resource configurations.
.Azure Activity Log to record and review all management operations on resources.
.Azure Automation with runbooks to automatically remediate non-compliant resources.
.Azure Security Center (Defender for Cloud) to monitor for security threats.
.Azure Resource Graph to query and visualize resource properties across subscriptions.
.Azure Blueprints to package and deploy environment definitions.

Why this answer

Azure Policy is correct because it allows you to define and enforce rules for resource configurations, ensuring compliance with company policies. The Activity Log is correct because it records all management operations, providing an audit trail for resource changes. Azure Automation with runbooks is correct because it can be triggered by Azure Policy or Activity Log alerts to automatically remediate non-compliant resources, such as stopping an unapproved VM or applying a required tag.

Exam trap

The trap here is that candidates often confuse Azure Policy with Azure Blueprints, thinking Blueprints provides ongoing auditing, when in fact Blueprints is only for initial deployment and does not monitor or remediate changes after deployment.

561
MCQeasy

A VM-based application needs to read from Azure Storage without storing a password, access key, or other secret in code or configuration. The identity should also be removed automatically if the VM is deleted. What should you enable?

A.A system-assigned managed identity
B.A user-assigned managed identity
C.A storage account access key
D.A shared access signature
AnswerA

A system-assigned managed identity is created directly on the VM and has the same lifetime as the VM, so it is automatically cleaned up when the VM is deleted. It is an Azure AD identity that can be granted only the necessary RBAC role (e.g., Storage Blob Data Reader) on the storage account, enabling truly secretless access. The platform automatically rotates its credentials, and the SDK can obtain tokens via the Azure Instance Metadata Service without any secrets stored in code or configuration.

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 VM to authenticate to Azure Storage without storing any secrets in code or configuration, using Azure AD tokens obtained via the Azure Instance Metadata Service (IMDS) endpoint at 169.254.169.254.

Exam trap

The trap here is that candidates often confuse user-assigned managed identities with system-assigned ones, overlooking the key requirement that the identity must be automatically removed when the VM is deleted, which only system-assigned identities guarantee.

How to eliminate wrong answers

Option B is wrong because a user-assigned managed identity is a standalone Azure resource that is not automatically deleted when the VM is deleted; it must be manually cleaned up, which violates the requirement for automatic removal. Option C is wrong because a storage account access key is a static secret that must be stored in code or configuration, directly contradicting the requirement to avoid storing secrets. Option D is wrong because a shared access signature (SAS) is a token that must be generated and stored in code or configuration, and it does not provide automatic identity removal tied to the VM lifecycle.

562
MCQhard

After a bad script ran, one file at C:\Finance\Q4.xlsx was deleted from a Windows VM. The VM is still running, and the team wants only that file restored without replacing the operating system disk or restarting the VM. What should the administrator use from Azure Backup?

A.Restore the entire VM to a new instance so the deleted file comes back automatically.
B.Perform a file-level restore from the recovery point and copy only the missing file back.
C.Restore the managed disks and replace the existing disks on the running VM.
D.Use Azure Monitor logs to reconstruct the file because the backup vault stores telemetry.
AnswerB

File-level restore is the correct Azure Backup workflow when only a specific file or folder must be recovered. The administrator mounts the recovery point, browses the backed-up file system, and copies back the missing file without replacing disks or redeploying the VM. This keeps the running server intact and minimizes recovery time and operational risk. It is the least disruptive way to recover a single deleted file.

Why this answer

Azure Backup for Azure VMs supports file-level restore (FLR) from recovery points without requiring a full VM restore or disk replacement. This allows you to mount the recovery point as a drive on the running VM, browse the file system, and copy only the missing file (C:\Finance\Q4.xlsx) back to its original location. The VM remains online and no OS disk replacement or restart is needed.

Exam trap

The trap here is that candidates often assume file-level restore requires the VM to be stopped or that only full VM or disk restore options are available, but Azure Backup's file-level restore feature is specifically designed for granular recovery on a running VM.

Why the other options are wrong

A

Restoring the entire VM to a new instance is unnecessary and inefficient for recovering a single file; it would create a new VM, not restore the file to the existing running VM without restart.

D

Azure Monitor logs collect performance and diagnostic data, not file contents. They cannot reconstruct deleted files, and the backup vault does not store telemetry for file recovery.

When would these options actually be correct?

A

If the question required recovering a VM that is completely corrupted or unavailable, and the goal is to restore the entire system to a new VM for testing or replacement, then restoring the entire VM to a new instance would be correct.

D

If the question asked how to investigate the cause of a VM performance issue or to analyze historical CPU/memory usage, Azure Monitor logs would be the correct tool to query telemetry data.

Why candidates pick the wrong answer

A

Candidates may think that restoring the entire VM is the only way to recover deleted files, not knowing that Azure Backup supports file-level restore for Windows VMs.

D

Candidates may confuse Azure Monitor's logging capabilities with backup data storage, assuming that telemetry logs contain file content or that backup vaults store operational logs.

563
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

A system-assigned managed identity would be correct if the question required each VM to have its own unique identity and the script only needed access from that specific VM, with no requirement for identity sharing or persistence across redeployments.

C

If the question required using a specific Azure AD application identity for external integrations (e.g., with a third-party SaaS) and the VMs were not in Azure (e.g., on-premises), a service principal with certificate stored in a configuration file would be appropriate.

D

This option would be correct if the question asked for a simple, low-security method to allow a script running on a single VM to access a storage account without using Azure AD or managed identities, and the script is not shared across VMs.

Why candidates pick the wrong answer

A

Candidates may confuse system-assigned and user-assigned managed identities, assuming both can be shared, or they may think that each VM having its own identity is sufficient for the scenario.

C

Candidates may think a service principal is the standard way to grant permissions to Azure resources, overlooking that managed identities are the recommended approach for Azure VMs to avoid managing credentials.

D

Candidates might think storing an access key in the script is an easy way to grant access without understanding that it's not an identity, doesn't support multiple VMs with the same identity, and violates security best practices.

564
MCQmedium

Based on the exhibit, the team wants a single notification setup that can be reused by several alert rules across different subscriptions. What should the administrator create?

A.A Log Analytics workspace with custom tables
B.An action group
C.A management group
D.A resource lock
AnswerB

An action group is the correct reusable notification mechanism in Azure Monitor. It centralizes email, SMS, push, voice, webhook, ITSM, and Automation actions so the same set of recipients can be associated with many alert rules across multiple subscriptions. Rather than configuring notification endpoints separately for each alert, an alert rule references an action group by its Azure resource ID, making one definition the single point of management for delivery behavior.

Why this answer

An action group is the correct choice because it is a reusable Azure Monitor resource that defines notification preferences (e.g., email, SMS, webhook, ITSM) and can be associated with multiple alert rules across different subscriptions. This allows the team to create a single notification setup once and reference it from any alert rule, ensuring consistent notification behavior without duplicating configuration.

Exam trap

The trap here is that candidates often confuse management groups (which organize subscriptions) with action groups (which handle notifications), mistakenly thinking a management group can centralize alert notifications across subscriptions when it cannot.

Why the other options are wrong

A

A Log Analytics workspace with custom tables is used for collecting and analyzing log data, not for reusing notification configurations across alert rules in different subscriptions.

C

A management group is a container for managing access, policy, and compliance across multiple subscriptions, not for configuring notification settings for alert rules. It cannot be reused as a notification setup for alert rules.

D

A resource lock prevents accidental deletion or modification of resources, but it does not provide a reusable notification setup for alert rules across subscriptions. The question specifically asks for a notification mechanism, not a protection mechanism.

When would these options actually be correct?

A

An administrator needs to collect custom log data from multiple sources, parse it into structured tables, and run queries for monitoring across subscriptions. Creating a Log Analytics workspace with custom tables would be correct.

C

A management group would be correct if the question asked for a way to apply policies or RBAC permissions across multiple subscriptions, or to organize subscriptions for governance and compliance management.

D

A resource lock would be the correct answer if the question asked: 'What should an administrator create to prevent accidental deletion of a critical alert rule across multiple subscriptions?'

Why candidates pick the wrong answer

A

Candidates may confuse the data collection and analysis capabilities of Log Analytics workspaces with the notification routing functionality of action groups, especially when dealing with alert rules.

C

Candidates may confuse management groups with a way to centrally manage alert notifications across subscriptions, because management groups provide hierarchical organization and policy application, but they do not handle notification routing.

D

Candidates may confuse resource locks with governance controls that apply broadly, mistakenly thinking they can be used to enforce notification settings across subscriptions.

565
MCQhard

VM-Web01 is connected to Subnet-Web in VNet-Prod. Users on the internet cannot access the website hosted on TCP port 443. You confirm that VM-Web01 has a public IP address and the web service is running. You need to allow inbound HTTPS traffic with the least administrative effort. What should you do?

A.Add an inbound NSG rule allowing TCP 443.
B.Create a user-defined route to the internet.
C.Configure VNet peering with another virtual network.
D.Create a private endpoint for VM-Web01.
AnswerA

The VM can accept HTTPS traffic only if an inbound security rule explicitly permits TCP 443. Azure network security groups (NSGs) are stateful and default to deny all inbound internet traffic, so even if the VM has a public IP address and a web server running, connections on port 443 will be dropped until a rule with a higher priority (e.g., 100) is added. This rule should specify Source as 'Internet', Destination port range as '443', Protocol as 'TCP', and Action as 'Allow'. Because NSGs are stateful, the corresponding outbound return traffic on the ephemeral port will be automatically allowed, making this the only action listed that directly resolves the problem.

Why this answer

The VM has a public IP and the web service is running, but internet users cannot access it. The most common reason is that the Network Security Group (NSG) associated with the subnet or NIC is blocking inbound traffic. Adding an inbound NSG rule to allow TCP 443 is the least administrative effort to permit HTTPS traffic from the internet.

Exam trap

The trap here is that candidates may think a public IP alone is sufficient for internet access, forgetting that NSGs act as a stateful firewall that blocks all inbound traffic by default unless explicitly allowed.

Why the other options are wrong

B

A user-defined route (UDR) controls traffic routing within a virtual network, not inbound access control. It cannot allow or deny traffic to a VM; that is the function of network security groups (NSGs).

C

VNet peering connects two virtual networks, but it does not allow inbound internet traffic to a VM. Internet access requires an NSG rule or a public IP with proper security, not peering.

D

A private endpoint is used to securely connect to Azure PaaS services (like Azure SQL, Storage) over a private IP address, not to allow inbound internet traffic to a VM. It does not expose a VM to the internet.

When would these options actually be correct?

B

You need to force all internet-bound traffic from a subnet to go through a network virtual appliance (NVA) for inspection. Creating a UDR with 0.0.0.0/0 next hop set to the NVA's IP address would be correct.

C

You need to enable communication between VMs in two different virtual networks (e.g., VNet-A and VNet-B) without using a gateway or public internet. VNet peering provides low-latency, private connectivity.

D

When you need to access an Azure PaaS service (e.g., Azure SQL Database) from a virtual network without exposing it to the public internet, you would create a private endpoint to enable private connectivity.

Why candidates pick the wrong answer

B

Candidates may confuse routing with security filtering, thinking that directing traffic to the internet via a route could somehow enable access, or they may overcomplicate the solution when a simple NSG rule suffices.

C

Candidates may think peering provides internet access or mistakenly believe it can replace NSG rules for inbound traffic from the internet.

D

Candidates may confuse private endpoints with public IP or NSG concepts, thinking that creating a private endpoint somehow enables internet access, or they may misunderstand the purpose of private endpoints as a general security feature.

566
Drag & Dropmedium

Order the steps to configure Azure DNS for a custom domain.

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

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

Why this order

The correct sequence for configuring Azure DNS for a custom domain is: create the DNS zone, retrieve the Azure-assigned name servers, update your domain registrar to use those name servers, add the required DNS records (e.g., A, CNAME) to the zone, and finally verify domain resolution. This order ensures that delegation is properly set before records are queried, and avoids common pitfalls such as updating the registrar without the correct name servers or trying to retrieve name servers before the zone exists.

567
MCQhard

Your company wants to know when an Azure service outage in the region might affect subscribed resources, even if no metric threshold has been crossed yet. Which alert type should you configure?

A.A metric alert
B.A Service Health alert
C.A budget alert
D.A boot diagnostics alert
AnswerB

Service Health alerts are Azure Monitor alerts that subscribe to Azure Service Health notifications, including active service incidents, planned maintenance, and health advisories relevant to your subscription. You can filter by service, region, and event type, and deliver these alerts through email, SMS, webhook, or ITSM tools. This is the authoritative mechanism for being notified about Azure service outages because it directly consumes Microsoft's official health signals.

Why this answer

Service Health alerts are designed to notify you about Azure service incidents, maintenance, health advisories, and security advisories that may impact your subscribed resources. Unlike metric alerts, they trigger based on Azure's own health status rather than any metric threshold you configure, making them ideal for detecting region-wide outages before they affect your specific metrics.

Exam trap

The trap here is that candidates often confuse metric alerts (which require a threshold) with Service Health alerts (which are event-driven from Azure's own health signals), leading them to choose metric alerts when the question explicitly states 'no metric threshold has been crossed yet.'

Why the other options are wrong

A

A metric alert triggers based on a specific metric threshold (e.g., CPU > 80%). The question asks for alerts when an Azure service outage affects resources, even without any metric threshold being crossed. Metric alerts do not detect service health issues.

C

A budget alert monitors spending against cost thresholds, not service health or outages. It cannot detect Azure service outages affecting resources.

D

Boot diagnostics alerts monitor VM boot failures, not Azure service outages affecting subscribed resources. They are irrelevant to detecting region-wide service health issues.

When would these options actually be correct?

A

A metric alert would be correct if the question asked: 'You need to be notified when the average CPU usage of a virtual machine exceeds 90% for 5 minutes.'

C

When the question asks about configuring alerts to notify when spending exceeds a predefined budget amount or forecast, such as for cost management and governance.

D

A boot diagnostics alert would be correct when the question asks: 'You need to be notified if a specific Azure VM fails to boot after a restart. Which alert type should you configure?'

Why candidates pick the wrong answer

A

Candidates often associate all Azure alerts with metrics, but Service Health alerts are a separate category for platform-level issues, not resource-level metrics.

C

Candidates may confuse budget alerts with health alerts because both involve proactive notification, but they focus on different domains (cost vs. service health).

D

Candidates may confuse 'diagnostics' with 'health monitoring' and assume boot diagnostics can detect service outages, not realizing it is limited to VM boot issues.

568
MCQhard

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

Assign the Owner role at the RG-Dev scope when the engineer needs full control over all resources and user access, including role assignments, for that resource group.

C

If the requirement were to allow a user to manage user access to Azure resources, including assigning roles at a scope, then User Access Administrator would be correct.

D

Assign the Reader role at the RG-Dev scope when the requirement is to allow a user to view virtual machines and their properties but not make any changes or create new resources.

Why candidates pick the wrong answer

A

Candidates may assume Owner is needed to create VMs, overlooking that Virtual Machine Contributor provides sufficient VM management permissions without the extra role assignment capability.

C

Candidates may confuse the ability to create VMs with managing access, or think that any administrative task requires the User Access Administrator role.

D

Candidates might mistakenly think Reader provides sufficient permissions for VM creation, or they confuse it with Contributor due to similar naming patterns.

569
MCQhard

A web application runs in Azure App Service and uploads files to Azure Blob Storage. The storage account has shared key access disabled, and the app must not store secrets in configuration. If the App Service is deleted and recreated later, the storage access should be removed automatically with the app. What should you configure?

A.A system-assigned managed identity with Blob Data Contributor permissions on the container.
B.A user-assigned managed identity with Blob Data Reader permissions on the storage account.
C.A shared access signature generated from the storage account key.
D.A storage account access key stored in an application setting.
AnswerA

A system-assigned managed identity is tied directly to the App Service instance and disappears when the app is deleted, which satisfies the automatic cleanup requirement. Because shared key access is disabled and secrets are not allowed in configuration, the app should authenticate through Microsoft Entra ID using the managed identity. Assigning Blob Data Contributor at the appropriate scope allows upload access without storing credentials.

Why this answer

A system-assigned managed identity is tied to the App Service lifecycle, so when the app is deleted, the identity is automatically removed, revoking access to Blob Storage. Granting Blob Data Contributor permissions on the container allows the app to upload files without storing any secrets, satisfying the requirement that shared key access is disabled and no secrets are stored in configuration.

Exam trap

The trap here is that candidates might choose a user-assigned managed identity (Option B) because it also avoids secrets, but they overlook the requirement that access must be automatically removed when the app is deleted, which only a system-assigned identity guarantees.

Why the other options are wrong

B

The question requires the app to upload files (write access), but Blob Data Reader only allows read access. Also, a user-assigned managed identity persists independently of the App Service lifecycle, so deleting the App Service would not automatically remove storage access.

C

Shared access signatures (SAS) require a secret (the storage account key or user delegation key) to generate, and the question states the app must not store secrets in configuration. Additionally, SAS tokens do not automatically revoke when the App Service is deleted unless a stored access policy is used, which still requires secret management.

D

Shared key access is disabled, so storage account access keys cannot be used. Additionally, storing the key in an application setting violates the requirement to not store secrets in configuration.

When would these options actually be correct?

B

A user-assigned managed identity with Blob Data Reader permissions would be correct in a scenario where the app only needs to read blobs (e.g., a reporting tool that reads files) and the identity must be shared across multiple Azure resources (e.g., multiple App Services and a Function App) to avoid managing separate identities.

C

A question where the app needs to grant time-limited, delegated access to specific blobs or containers without using managed identities, and the app can securely generate SAS tokens at runtime using a stored access policy or user delegation key (e.g., from Azure AD). The scenario would not prohibit secret storage and would require granular, temporary access.

D

If the question stated that shared key access is enabled and the app can securely store secrets (e.g., in Key Vault), then using a storage account access key in an application setting could be a valid approach for authentication.

Why candidates pick the wrong answer

B

Candidates may confuse user-assigned with system-assigned managed identities, or think that any managed identity automatically ties to the resource lifecycle, not realizing that user-assigned identities are separate resources.

C

Candidates may think SAS tokens are a secure, secret-free way to grant access because they can be generated without storing the account key in the app, but they still require a secret to generate and do not automatically revoke upon resource deletion.

D

Candidates may be familiar with using access keys for storage authentication and think storing them in app settings is a standard practice, overlooking the constraints of disabled shared key access and the no-secrets requirement.

570
MCQmedium

A lifecycle rule moved old audit logs to the Archive tier. A support engineer now needs to read one archived blob, and the download request fails with a message that the blob is archived. The engineer can wait several hours for the data to become available. What should the administrator do?

A.Enable versioning on the storage account so the archived blob can be read immediately.
B.Change the blob tier from Archive to Hot or Cool to start rehydration.
C.Move the blob to a different container in the same storage account.
D.Switch the storage account replication from LRS to ZRS.
AnswerB

Archived blobs are offline and cannot be read until they are rehydrated. Changing the access tier to Hot or Cool begins the rehydration process, after which the blob becomes available again. Because the engineer can wait, this is the correct administrative action rather than copying the data elsewhere or changing account settings.

Why this answer

Archived blobs in Azure Storage are offline and cannot be read directly. To access the data, the blob must first be rehydrated by changing its tier to Hot or Cool, which initiates an asynchronous copy of the blob data to an online tier. This process can take up to 15 hours, matching the engineer's ability to wait several hours.

Exam trap

The trap here is that candidates may confuse storage account settings (versioning, replication, container moves) with blob-tier operations, failing to recognize that only a tier change initiates rehydration for archived blobs.

Why the other options are wrong

A

Enabling versioning does not allow immediate reading of an archived blob; the blob must be rehydrated to a hot or cool tier before it can be accessed.

C

Moving a blob to a different container does not change its access tier; the blob remains in the Archive tier and cannot be read until rehydrated.

D

Switching replication from LRS to ZRS does not change the blob's tier; the blob remains in Archive tier and still requires rehydration before it can be read.

When would these options actually be correct?

A

If the question asked for a way to protect against accidental deletion or overwrite of blobs, enabling versioning would be correct.

C

If the question asked how to organize blobs into separate containers for lifecycle management or access control, moving a blob to a different container would be correct.

D

An administrator needs to increase data durability and availability across zones for a storage account that currently uses LRS, and the change can be made without downtime.

Why candidates pick the wrong answer

A

Candidates may think versioning provides a way to access different versions of the blob, but it does not bypass the need to rehydrate archived blobs.

C

Candidates may think that moving the blob to a new container resets its tier or bypasses the archive restriction, confusing container operations with tier changes.

D

Candidates may think that changing replication affects data accessibility, but it does not alter the blob's access tier or initiate rehydration.

571
MCQhard

A company has VNet-A with address space 10.20.0.0/16 and active workloads in several subnets. The team must peer VNet-A with VNet-B, but VNet-B currently uses 10.20.128.0/17 and cannot be rebuilt from scratch. What should the administrator do first to make peering possible without interrupting current workloads?

A.Create the peering now and let Azure automatically route overlapping prefixes.
B.Add a new non-overlapping address space to VNet-B, create replacement subnets there, and migrate workloads gradually.
C.Attach a route table to VNet-B so traffic to VNet-A is forced through a firewall appliance.
D.Create a private endpoint between the two VNets so Azure ignores the overlap during connectivity checks.
AnswerB

Adding a second, non-overlapping address space to VNet-B is the correct remediation because Azure permits multiple address ranges per VNet as long as they do not collide with peered networks. You create fresh subnets in the new range, migrate workloads onto them, and then remove the old overlapping range once it is empty. This resolves the conflict and lets peering succeed without downtime or IP fragmentation.

Why this answer

Azure Virtual Network peering requires that the address spaces of the peered VNets do not overlap. VNet-A uses 10.20.0.0/16, which fully contains VNet-B's 10.20.128.0/17, creating an overlap. Since VNet-B cannot be rebuilt, the correct first step is to add a new non-overlapping address space (e.g., 10.30.0.0/16) to VNet-B, create subnets in that new range, migrate workloads gradually, and then remove the overlapping address space before establishing the peering.

This ensures no IP conflicts and avoids disrupting existing workloads.

Exam trap

The trap here is that candidates assume Azure can handle overlapping address spaces through routing tricks (like route tables or firewalls), but Azure VNet peering strictly prohibits any address overlap and will reject the peering request outright, forcing you to resolve the conflict by adding a non-overlapping address space and migrating workloads.

Why the other options are wrong

A

Azure does not automatically route overlapping prefixes; overlapping address spaces prevent VNet peering from being established. Creating the peering without resolving the overlap will fail.

C

Route tables cannot resolve address space overlap; Azure VNet peering requires non-overlapping address spaces, and forcing traffic through a firewall does not change the underlying conflict.

D

Private endpoints are used for secure access to PaaS services over a private IP, not for resolving VNet peering address overlap. They do not bypass the requirement for non-overlapping address spaces in peering.

When would these options actually be correct?

A

If the question described a scenario where both VNets have non-overlapping address spaces but need to exchange routes, and the administrator wants to simplify routing, then creating the peering and letting Azure automatically manage routes (via system routes) would be correct.

C

If the question involved controlling traffic flow between peered VNets (e.g., to inspect or filter traffic), attaching a route table with a firewall appliance would be correct to enforce routing policies.

D

When you need to connect to an Azure PaaS service (e.g., Storage, SQL Database) from a VNet without exposing it to the public internet, and you want the traffic to stay within the Microsoft backbone.

Why candidates pick the wrong answer

A

Candidates may mistakenly believe Azure can handle overlapping IP ranges automatically, similar to how it handles route propagation, or they assume peering will work and Azure will prioritize routes.

C

Candidates may think that a firewall can 'hide' the overlap by redirecting traffic, but Azure's peering validation checks address spaces at the VNet level, not at the route level.

D

Candidates may confuse private endpoints with a way to 'ignore' overlapping address spaces, thinking they provide a direct private connection that bypasses peering restrictions.

572
MCQmedium

After a custom image is applied, a VM restarts to a black screen and never reaches the login prompt. The administrator needs the fastest way to inspect what happened during boot without logging into the guest OS. What should be enabled or reviewed first?

A.Boot diagnostics
B.Azure Monitor metric alert
C.VM extension status
D.Network Watcher IP flow verify
AnswerA

Boot diagnostics captures a screenshot and serial log data that help diagnose failures before the guest OS loads.

Why this answer

Boot diagnostics captures serial console output and screenshots of the VM during boot, allowing you to inspect boot failures like a black screen without guest OS access. This is the fastest method because it provides immediate, out-of-band visibility into the boot process, including kernel panics or driver issues, without requiring RDP or SSH connectivity.

Exam trap

The trap here is that candidates often confuse Boot diagnostics (which captures boot-time logs and screenshots) with VM extension status or metrics, mistakenly thinking they can diagnose a boot failure from post-boot telemetry or network checks.

Why the other options are wrong

B

Azure Monitor metric alerts monitor performance metrics (e.g., CPU, memory) and trigger notifications, but they do not provide boot-time logs or screenshots to diagnose a black screen issue during VM startup.

D

Network Watcher IP flow verify checks connectivity and security rules for network traffic, not boot issues or OS startup logs. It cannot inspect what happened during VM boot.

When would these options actually be correct?

B

When a VM is experiencing intermittent high CPU or memory usage that affects performance, and you need to be notified proactively to investigate before users report issues.

D

When a VM cannot connect to another resource (e.g., a database) and you need to verify if a network security rule is blocking traffic, IP flow verify would be the correct tool to use.

Why candidates pick the wrong answer

B

Candidates may think any monitoring tool can help diagnose boot problems, but metric alerts are designed for performance thresholds, not boot diagnostics.

D

Candidates may confuse network connectivity checks with boot diagnostics, thinking that boot problems are caused by network misconfigurations, or they may overestimate the scope of Network Watcher capabilities.

573
MCQmedium

A business-critical application uses an Azure storage account. The company requires that data remain available even if an entire Azure region becomes unavailable. Which redundancy option should you choose?

A.LRS
B.ZRS
C.GRS
D.GZRS
AnswerD

GZRS (Geo-Zone-Redundant Storage) is correct because it synchronously replicates your data across three Azure availability zones in the primary region, and then asynchronously replicates to a secondary region. This gives you both multi-zone protection against complete zone failures and geo-redundancy against a full regional outage. For a business-critical application that must tolerate both local area disruptions and a datacenter/region-level disaster, GZRS is the only storage redundancy option that satisfies both requirements simultaneously.

Why this answer

D (GZRS) is correct because it combines zone-redundant storage (ZRS) within a primary region with geo-redundant replication to a secondary region, ensuring data remains available even if an entire Azure region becomes unavailable. This meets the business-critical requirement for regional disaster recovery while maintaining high durability and availability.

Exam trap

The trap here is that candidates often confuse GRS with GZRS, thinking GRS provides zone redundancy, but GRS only uses LRS in the primary region, making it vulnerable to zone-level failures within that region.

Why the other options are wrong

A

LRS (Locally Redundant Storage) replicates data three times within a single data center in a single region, so it cannot survive an entire Azure region becoming unavailable.

B

ZRS replicates data synchronously across three availability zones within a single region, so it does not protect against a full regional outage.

C

GRS provides region-level redundancy but only within a single secondary region, not across multiple regions. The question requires availability even if an entire Azure region becomes unavailable, which GZRS meets by replicating to a secondary region with zone redundancy.

When would these options actually be correct?

A

A question that asks for the lowest-cost redundancy option while still protecting against local hardware failures within a single data center, with no requirement for regional or zonal disaster recovery.

B

When the requirement is to protect data within a single region against zone-level failures (e.g., datacenter failure), but the application can tolerate a regional outage or uses a separate disaster recovery mechanism.

C

If the question specified that the application requires geo-redundancy but does not need zone-level redundancy within the primary region, and cost is a concern, GRS would be the correct choice. For example: 'You need to replicate data to a secondary region for disaster recovery, but you do not require availability zone support in the primary region.'

Why candidates pick the wrong answer

A

Candidates may choose LRS because it is the cheapest redundancy option and they might overlook the requirement for region-level availability, assuming 'redundancy' alone is sufficient.

B

Candidates may confuse 'zone-redundant' with 'region-redundant' or assume that availability zones span multiple regions, leading them to believe ZRS provides regional failover.

C

Candidates may think GRS is sufficient because it replicates to a secondary region, overlooking that GRS lacks zone redundancy in the primary region, which GZRS provides. They might also confuse GRS with GZRS due to similar names.

574
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

B

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

D

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

When would these options actually be correct?

A

If the question required granting full administrative control over a subscription, including managing role assignments and all resources, then the Owner role would be correct. For example, 'You need to assign a role to a senior administrator who will manage access and resources in a subscription.'

B

A question where junior administrators need to create and manage all resources in a subscription, but not assign access to others (e.g., 'You need to grant a team the ability to deploy and manage virtual machines, but not grant access to other users. Which role should you assign?').

D

A question that asks: 'You need to grant a user read-only access to Azure Monitor data, alerts, and diagnostic settings, but not to other resources. Which role should you assign?'

Why candidates pick the wrong answer

A

Candidates may mistakenly think Owner is necessary for viewing resources, or they may overlook the 'cannot create, modify, or delete' constraint and focus only on the 'view all resources' part.

B

Candidates may confuse 'view all resources' with 'manage all resources' and think Contributor is the standard role for full access, overlooking the specific restriction against modifications.

D

Candidates may confuse 'view all resources' with 'view monitoring data,' assuming Monitoring Reader covers all read operations, or they may not fully understand the scope of each built-in role.

575
MCQeasy

Based on the exhibit, you need to return only the failed operations from the log entries. Which KQL query should you use?

A.AzureActivity | where ActivityStatusValue == "Failed" | project TimeGenerated, OperationName, Caller
B.AzureActivity | summarize count() by Caller
C.AzureActivity | top 10 by TimeGenerated
D.AzureActivity | where ActivityStatusValue == "Succeeded"
AnswerA

This query first applies a row-level filter on the AzureActivity table for entries where ActivityStatusValue equals 'Failed', then projects only TimeGenerated, OperationName, and Caller. It directly satisfies the requirement to return only failed operations and trims the result set to the columns needed for triage, making it both correct and efficient.

Why this answer

The KQL query filters the AzureActivity table using the `where` clause to return only rows where `ActivityStatusValue` equals 'Failed', then projects the relevant columns `TimeGenerated`, `OperationName`, and `Caller`. This directly meets the requirement to return only failed operations from the log entries.

Exam trap

The trap here is that candidates may confuse the `ActivityStatusValue` field with other status fields like `Status` or `ResultType`, or mistakenly choose an aggregation query (Option B) that summarizes data without filtering, failing to meet the precise requirement to return only failed operations.

Why the other options are wrong

B

This query summarizes the count of operations by Caller, but does not filter for failed operations, so it does not meet the requirement to return only failed operations.

C

This query returns the 10 most recent log entries by TimeGenerated, not filtering for failed operations. The question specifically requires returning only failed operations, which this query does not address.

D

This query filters for successful operations, but the question requires returning only failed operations, so it returns the opposite of what is needed.

When would these options actually be correct?

B

This query would be correct if the question asked: 'You need to determine which users initiated the most operations in the log entries. Which KQL query should you use?'

C

This option would be correct if the question asked: 'You need to display the 10 most recent Azure Activity log entries. Which KQL query should you use?'

D

If the question asked to return only successful operations from the log entries, this query would be correct.

Why candidates pick the wrong answer

B

Candidates might think summarizing by Caller is a way to identify failed operations, or they may overlook the requirement to filter for failures and focus on grouping data.

C

Candidates may think 'top 10' is a common way to sample data and overlook the specific requirement to filter by failure status, or they may confuse 'top' with a filtering operation.

D

Candidates might misread the question or confuse 'failed' with 'succeeded', especially under time pressure, leading them to choose the filter that seems familiar but is opposite.

576
MCQeasy

A workload needs more CPU and memory than the current Azure VM size provides. The administrator wants to increase compute capacity without redeploying the application. What should be done?

A.Resize the VM to a larger size
B.Move the VM into an availability set
C.Replace the VM with a snapshot
D.Assign a user-assigned managed identity
AnswerA

Resizing the VM to a larger size is the direct method to scale up because it changes the VM's SKU to a size with more vCPUs and memory while retaining the same OS disk, data disks, and installed applications. In Azure, you can initiate a resize either while the VM is running (for most size families) or after stopping/deallocating it if the target size is in a different hardware cluster. This preserves the VM identity, IP, and configuration, making it the proper way to satisfy increased CPU and memory demands.

Why this answer

Resizing the Azure VM to a larger size (option A) directly increases the CPU and memory resources allocated to the VM without requiring redeployment of the application. Azure supports resizing VMs within the same hardware family or to a different family, provided the new size is available in the current region and the VM is not part of a VMSS with overprovisioning constraints. The resize operation updates the VM's SKU, and after a reboot, the new resources are available to the OS and applications.

Exam trap

The trap here is that candidates may confuse 'increasing compute capacity' with high availability features (availability set) or identity management, leading them to select options that do not address resource scaling.

Why the other options are wrong

B

Moving a VM into an availability set does not increase its CPU or memory capacity; it only provides high availability by distributing VMs across fault domains and update domains.

C

Replacing the VM with a snapshot does not increase compute capacity; it creates a new VM from a snapshot, which still requires selecting a VM size. The goal is to increase CPU and memory without redeploying, and resizing the existing VM achieves that directly.

D

Assigning a user-assigned managed identity does not increase CPU or memory; it only provides an identity for Azure resource authentication.

When would these options actually be correct?

B

When the question asks how to ensure high availability for a set of VMs running the same workload, such as a web application that must remain accessible during planned maintenance or hardware failures, moving them into an availability set would be the correct answer.

C

This would be correct if the question asked: 'An administrator needs to create a new VM in a different region using the current VM's configuration. What should be done?' In that case, taking a snapshot of the OS disk and creating a new VM from it is a valid approach.

D

A question asks: 'You need to allow a VM to authenticate to Azure Key Vault without storing credentials in the application. What should you do?' In that context, assigning a managed identity is correct.

Why candidates pick the wrong answer

B

Candidates may confuse high availability with scalability, thinking that adding redundancy (availability set) can somehow increase compute capacity, or they may misremember the purpose of availability sets.

C

Candidates might think that replacing the VM with a snapshot is a way to 'upgrade' the VM, confusing the process of creating a new VM from a snapshot with resizing an existing one. They may overlook that resizing is simpler and avoids redeployment.

D

Candidates may confuse 'managed identity' with 'managed instance' or think it can manage resources to improve performance, or they may misread the question as needing to add identity-based access.

577
Multi-Selectmedium

A customer-facing application has two goals: it must keep running if one datacenter in the region fails, and it must be able to scale out automatically during daily peaks. Which two Azure compute choices best match those requirements? Select two.

Select 2 answers
A.Deploy the workload across Availability Zones
B.Place all instances in one Availability Set
C.Use a Virtual Machine Scale Set with autoscale
D.Run a single VM behind a load balancer
E.Use a proximity placement group
AnswersA, C

Deploying the workload across Availability Zones is correct because each zone is an isolated datacenter with independent power, cooling, and networking. If one zone fails, the other zones continue serving traffic, eliminating a single datacenter as a point of failure. Azure offers a 99.99% availability SLA when instances are distributed across two or more zones, directly supporting the goal of keeping the application running during an outage.

Why this answer

Deploying across Availability Zones provides datacenter-level fault tolerance: each zone is an isolated physical datacenter with independent power, cooling, and networking. If one zone fails, the application continues running in the other zones. Option C is correct because a Virtual Machine Scale Set with autoscale automatically adjusts the number of VM instances based on CPU or memory metrics, enabling the application to scale out during daily peaks and scale in during off-peak hours.

Exam trap

The trap here is that candidates often confuse Availability Sets (which protect against rack failures) with Availability Zones (which protect against datacenter failures), and they may overlook that a single VM behind a load balancer still has a single point of failure.

Why the other options are wrong

B

An Availability Set only protects against rack-level failures within a single datacenter, not against a full datacenter outage. It also does not provide automatic scaling.

D

A single VM cannot survive a datacenter failure because it is a single point of failure, and it cannot scale out automatically since scaling requires multiple instances.

E

A proximity placement group reduces network latency between VMs but does not provide datacenter failure resilience or automatic scaling, which are the two key requirements.

When would these options actually be correct?

B

If the question required high availability for a workload within a single datacenter (e.g., protecting against hardware failures) and did not require cross-datacenter resilience or autoscaling, placing VMs in an Availability Set would be correct.

D

If the question asked for a cost-effective solution for a low-traffic application that requires high availability within a single datacenter (e.g., during planned maintenance), running a single VM behind a load balancer with an Availability Set would be correct.

E

For a latency-sensitive application (e.g., high-performance computing) where all VMs must be in close proximity to minimize network latency, and the question does not require fault tolerance across datacenters or autoscaling.

Why candidates pick the wrong answer

B

Candidates may confuse Availability Sets with Availability Zones, thinking both provide datacenter-level fault tolerance, or they may overlook the requirement for automatic scaling.

D

Candidates may think a load balancer provides automatic failover and scaling, but a load balancer alone does not create redundancy or autoscaling without multiple VMs.

E

Candidates may confuse proximity placement groups with high availability features, thinking that grouping VMs together ensures resilience, or they may overemphasize low latency without considering the explicit requirements for fault tolerance and scaling.

578
MCQmedium

A container group in Azure Container Instances must pull a private image from Azure Container Registry without embedding registry credentials in the template. What should you configure?

A.A managed identity for the container group and the AcrPull role on the registry
B.An admin user account on the Azure Container Registry
C.A shared access signature in a container environment variable
D.A public network access rule that allows all Azure services
AnswerA

A user-assigned or system-assigned managed identity provides the container group with an Azure AD-backed identity that ACR accepts for authentication, entirely avoiding embedded secrets. The identity must be explicitly assigned the AcrPull role on the registry so the container group has permission to pull the image; without that role, ACR rejects the token despite a valid identity. This is the recommended and only credential-free method for ACI-to-ACR authentication.

Why this answer

Azure Container Instances (ACI) can authenticate to Azure Container Registry (ACR) using a managed identity assigned to the container group. By granting the managed identity the AcrPull role on the registry, ACI can pull private images without embedding any credentials in the deployment template, leveraging Azure AD authentication and RBAC for secure access.

Exam trap

The trap here is that candidates often confuse network access controls (like 'Allow Azure Services' or service endpoints) with authentication mechanisms, assuming that enabling network rules alone grants pull access, when in fact a managed identity with AcrPull is required for credential-free authentication.

Why the other options are wrong

B

Using an admin user account embeds credentials in the template or requires manual entry, which violates the requirement to avoid embedding registry credentials.

C

A shared access signature (SAS) is used to grant limited access to Azure resources like storage blobs, not to authenticate a container group to pull images from Azure Container Registry. The question requires pulling a private image without embedding credentials, which is achieved via managed identity and AcrPull role, not SAS.

D

Configuring a public network access rule that allows all Azure services does not address authentication for pulling a private image; it only controls network access, not identity-based authorization.

When would these options actually be correct?

B

If the question asked for the simplest way to authenticate to a container registry without requiring Azure AD integration or managed identities, enabling the admin user and using its credentials would be correct.

C

This option would be correct if the question asked about accessing a private container image stored in Azure Blob Storage (not ACR) using a SAS token passed as an environment variable. For example: 'A container group needs to download a private container image from Azure Blob Storage. What should you configure?'

D

This option would be correct if the question asked how to allow a container group to pull an image from a registry that has public network access disabled, but the container group needs to connect from within the same Azure region or via a service endpoint.

Why candidates pick the wrong answer

B

Candidates may think admin accounts are the standard way to authenticate to ACR, not realizing that managed identities provide a more secure, credential-free method.

C

Candidates may confuse SAS tokens with a method to grant access to private resources, not realizing that SAS is for storage accounts (blobs, files) and not for authenticating to Azure Container Registry, which requires Azure AD authentication or admin credentials.

D

Candidates may think that allowing all Azure services is a simple way to grant access, confusing network-level access with authentication and authorization requirements.

579
MCQmedium

A support engineer must download a blob that was moved to the Archive tier by a lifecycle rule. The file must be available as soon as possible for an investigation. What should the engineer do first?

A.Download the blob directly from the Archive tier because archived blobs are always online.
B.Change the blob's tier to Hot or Cool and wait for rehydration to complete.
C.Move the blob to a different container in the same account to make it downloadable immediately.
D.Disable the lifecycle rule so the blob becomes immediately readable again.
AnswerB

Archived blobs are stored offline, so they must be rehydrated before the data can be read or downloaded. Changing the tier to Hot or Cool starts that process. If the engineer needs the blob available as quickly as possible, the appropriate administrative action is to initiate rehydration rather than trying to access the file directly from Archive.

Why this answer

Blobs in the Archive tier are offline and must be rehydrated to a Hot or Cool tier before they can be accessed. Rehydration can take up to 15 hours, but setting the tier to Hot or Cool initiates the process, making the blob available as soon as possible for investigation.

Exam trap

The trap here is that candidates may assume archived blobs are still accessible for download or that lifecycle rules can be disabled to instantly restore access, but Azure requires explicit tier change and rehydration before any read operation.

Why the other options are wrong

A

Azure Archive tier blobs are offline and cannot be downloaded directly; they must first be rehydrated to Hot or Cool tier, which takes time.

C

Moving a blob to a different container does not change its tier; the blob remains in the Archive tier and is still offline, requiring rehydration before download.

D

Disabling the lifecycle rule does not change the blob's current tier; the blob remains in the Archive tier and is still offline. The blob must be rehydrated to a hot or cool tier before it can be read.

When would these options actually be correct?

A

If the blob were in the Hot or Cool tier, or if the question specified that the blob was already rehydrated, then downloading directly would be correct.

C

If the question asked how to organize blobs into different containers for lifecycle management or access control, moving a blob to another container would be a valid step, but not for immediate download of an archived blob.

D

This would be correct if the question asked how to prevent future blobs from being automatically archived to the Archive tier, and the current blob was already in a readable tier (e.g., Hot or Cool).

Why candidates pick the wrong answer

A

Candidates may mistakenly believe that all Azure blob tiers are immediately accessible, or they may confuse 'Archive' with 'Cool' tier, which is online but has lower availability.

C

Candidates may think that moving the blob to a new container resets its state or bypasses the archive restriction, confusing storage container operations with blob tier changes.

D

Candidates may think that disabling the rule reverses the tier change or makes the blob immediately accessible, misunderstanding that lifecycle rules only affect future operations, not the current state of already-tiered blobs.

580
MCQeasy

Based on the exhibit, the VPN gateway deployment fails during validation. What resource is missing?

A.A public IP address resource associated with the VPN gateway.
B.A network security group attached to GatewaySubnet.
C.A route table with a default route to the on-premises network.
D.A private endpoint for the on-premises VPN device.
AnswerA

A VPN gateway needs a public IP resource so the on-premises VPN device can establish encrypted tunnels to Azure. The exhibit already has GatewaySubnet, so the missing piece is the public-facing IP on the gateway itself. Once that resource is created and attached during deployment, the gateway can be provisioned successfully.

Why this answer

A VPN gateway requires a dedicated public IP address resource to establish the IPsec tunnel with the on-premises VPN device. During validation, Azure checks that a public IP address is associated with the gateway; if missing, the deployment fails because the gateway cannot route traffic over the internet or terminate the VPN connection.

Exam trap

The trap here is that candidates often confuse the requirement for a public IP on the VPN gateway with the need for an NSG or route table on GatewaySubnet, but Azure explicitly blocks NSG association on GatewaySubnet and route tables are optional for site-to-site VPNs.

Why the other options are wrong

C

A route table with a default route to the on-premises network is not required for VPN gateway deployment validation; the gateway automatically handles routing. The missing resource is a public IP address, which is mandatory for the gateway to establish connectivity.

D

A private endpoint is used for secure access to Azure PaaS services over a private IP, not for VPN gateway connectivity. The VPN gateway requires a public IP for establishing the IPsec tunnel with the on-premises VPN device.

When would these options actually be correct?

C

This option would be correct in a scenario where a VPN gateway is already deployed but traffic is not flowing to on-premises, and the question asks why. The missing route table with a default route (0.0.0.0/0) pointing to the on-premises network via the VPN gateway would be the cause.

D

In a scenario where an Azure service (e.g., Storage Account) must be accessed privately from on-premises without traversing the internet, and a VPN or ExpressRoute is already in place, a private endpoint would be the correct resource to deploy.

Why candidates pick the wrong answer

C

Candidates may think that a route table is needed to direct traffic to on-premises, but the VPN gateway itself creates necessary routes; the public IP is a prerequisite for the gateway resource.

D

Candidates may confuse 'private endpoint' with 'private IP' or think that a private connection to on-premises requires a private endpoint, not realizing that VPN gateways use public IPs for tunnel endpoints.

581
Multi-Selecthard

A build agent VM is recreated from image every night. The OS can be lost on reimage, but build caches and artifacts must persist across rebuilds. The team also wants the cheapest OS storage option that supports this pattern. Which two choices should you make? Select two.

Select 2 answers
A.Use an ephemeral OS disk.
B.Place build caches and artifacts on a separate managed data disk.
C.Use a Premium SSD OS disk so the reimage is preserved.
D.Store the caches only on the temporary resource disk.
E.Use an availability set to make the OS disk persistent.
AnswersA, B

An ephemeral OS disk is the cheapest OS storage choice for a VM that can be recreated from image often. It is acceptable here because the scenario explicitly says the OS can be lost on reimage.

Why this answer

An ephemeral OS disk uses the local VM storage or temp SSD, which is destroyed when the VM is deallocated or reimaged. This matches the requirement that the OS can be lost on reimage. Option B is correct because placing build caches and artifacts on a separate managed data disk ensures they persist independently of the OS disk lifecycle; data disks are not affected by OS reimaging and can be reattached to the new VM instance.

Exam trap

The trap here is that candidates often confuse the temporary resource disk (which is also ephemeral) with a managed data disk, or assume that Premium SSD or availability sets provide persistence, when in fact only a separate managed data disk ensures data survives OS reimaging.

Why the other options are wrong

C

Premium SSD OS disks persist data across VM recreations, but the question requires the cheapest OS storage option that supports nightly reimaging. Ephemeral OS disks are free and discard OS changes on deallocation, meeting the cost and reimage pattern requirements.

D

The temporary resource disk is not persistent; its contents are lost when the VM is reimaged or redeployed, so build caches and artifacts would not survive nightly rebuilds.

E

An availability set ensures VM availability during maintenance or failures, but does not make the OS disk persistent. The OS disk is still subject to reimaging, so caches and artifacts would be lost.

When would these options actually be correct?

C

In a scenario where the VM must retain OS disk data across redeployments (e.g., custom software installed on the OS disk must survive), and cost is not the primary constraint, a Premium SSD OS disk would be correct.

D

If the question required storing temporary build files that do not need to persist across rebuilds, and the goal was to minimize cost by using the free temporary disk, then storing caches there would be correct.

E

In a scenario where you need to ensure high availability for a VM running a critical application, and you want to guarantee that at least one instance remains running during planned or unplanned downtime, you would use an availability set.

Why candidates pick the wrong answer

C

Candidates may assume Premium SSD is always better for performance and persistence, overlooking the specific requirement for cheap, disposable OS storage and the need to separate persistent data onto a data disk.

D

Candidates may confuse the temporary resource disk with a persistent data disk, or assume that because it is local and fast, it is suitable for persistent storage, overlooking its non-persistent nature.

E

Candidates may confuse availability sets with disk persistence, thinking that grouping VMs in an availability set somehow protects the OS disk from being reimaged or deleted.

582
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

D

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

When would these options actually be correct?

A

This would be correct if the question required centralized management with no billing separation, and the policy needed to apply to all resources within a single subscription regardless of business unit.

D

This would be correct if the question required all business units to share a single subscription and the policy needed to be applied to all resources within that subscription, with resource groups used only for organizational purposes.

Why candidates pick the wrong answer

A

Candidates may think resource groups are sufficient for separation and policy assignment, overlooking the need for distinct subscriptions for billing and admin delegation.

D

Candidates may think resource groups can serve as a substitute for subscriptions for policy assignment and delegation, not realizing that policy assignments at the resource group level do not cover future resources in other resource groups or subscriptions.

583
Multi-Selecthard

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

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

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

Why this answer

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

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

Exam trap

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

Why the other options are wrong

B

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

D

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

E

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

When would these options actually be correct?

B

If the question asked which operations would fail under a Delete lock (which prevents deletions and modifications), listing resources would still succeed, so it would not be correct. However, if the lock were a CanNotDelete lock, deleting resources would fail, but listing would still work. This option would never be correct for a lock that blocks operations.

D

If the lock were a CanNotDelete lock, reading tags would still be allowed. However, if the question asked which operations are blocked by a ReadOnly lock, reading tags would be incorrect. A scenario where reading tags fails would require a custom role that denies read access, not a lock.

E

If the question asked about a CanNotDelete lock applied to the resource group, then viewing the VM power state would still be allowed (not blocked), so it would be a wrong answer. However, if the lock were a Delete lock (custom lock that blocks delete but allows modifications), viewing power state would still be allowed. This option is never correct for a lock that blocks read operations.

Why candidates pick the wrong answer

B

Candidates may confuse 'read' operations with 'write' operations, thinking that any action on resources is blocked by a ReadOnly lock, or they may misremember the effects of different lock types.

D

Candidates may confuse ReadOnly lock with a deny read permission, or think that any lock restricts all operations including reads.

E

Candidates may confuse 'viewing' with 'modifying' or think that any operation on a locked resource is blocked, not realizing that read operations are permitted under ReadOnly locks.

584
MCQmedium

You need to synchronize an on-premises Windows file server with an Azure file share so that branch offices can continue using the local server while keeping cloud-based copies of the files. Which service should you configure?

A.Azure File Sync
B.Blob versioning
C.Azure NetApp Files
D.Storage account failover
AnswerA

Azure File Sync extends Windows Server by synchronizing local file servers with Azure file shares through the Storage Sync Service. It provides a cache of the share on the on-premises server, supports cloud tiering to keep frequently accessed files local, and can replicate data across multiple sites. This is the only option that natively performs continuous file synchronization from an existing Windows file server to Azure.

Why this answer

Azure File Sync is the correct service because it enables you to centralize your on-premises file shares in Azure Files while maintaining local access to the data. It uses a sync agent installed on the Windows file server to replicate files to an Azure file share, allowing branch offices to continue using the local server with cloud-based copies for backup, disaster recovery, or multi-site access. This directly meets the requirement of keeping the on-premises server operational while maintaining cloud copies.

Exam trap

The trap here is that candidates often confuse Azure File Sync with Azure NetApp Files or Blob storage features, mistakenly thinking that any cloud storage service can synchronize on-premises data, but only Azure File Sync provides bidirectional sync with an on-premises Windows file server.

Why the other options are wrong

B

Blob versioning preserves previous versions of blobs in Azure Storage, but it does not synchronize data between on-premises servers and Azure. It lacks the two-way sync, tiering, and cloud backup capabilities required for hybrid file server scenarios.

C

Azure NetApp Files provides high-performance NFS/SMB file shares for enterprise workloads, but it does not offer cloud sync or tiering with on-premises servers. The question requires bidirectional synchronization with an on-premises Windows file server, which is a feature of Azure File Sync, not Azure NetApp Files.

D

Storage account failover is a disaster recovery feature for Azure Storage that switches from the primary to a secondary region in case of an outage. It does not synchronize on-premises file servers with Azure file shares.

When would these options actually be correct?

B

Blob versioning would be correct if the question asked: 'You need to protect against accidental deletion or overwrite of blobs in an Azure Storage account. Which feature should you enable?'

C

A question that asks for a high-performance, low-latency file share for a latency-sensitive application (e.g., SAP HANA or Oracle database) running in Azure, where the solution must support NFS or SMB protocols and provide advanced data management features like snapshots and cloning. In that case, Azure NetApp Files would be the correct choice.

D

You need to ensure high availability for a storage account by automatically failing over to a paired region during a regional outage. Which feature should you enable?

Why candidates pick the wrong answer

B

Candidates may confuse blob versioning with file synchronization because both involve maintaining multiple copies of data, but versioning is a data protection feature, not a sync solution.

C

Candidates may confuse Azure NetApp Files with Azure Files, assuming both support sync capabilities. The name 'NetApp' suggests enterprise file services, leading them to believe it can handle sync scenarios, but it lacks the sync engine that Azure File Sync provides.

D

Candidates may confuse failover with synchronization, thinking it keeps data in sync between locations, but failover is for redundancy, not continuous sync.

585
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

B

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

D

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

When would these options actually be correct?

A

A user-assigned managed identity would be correct if the question asked for an identity that can be shared across multiple Azure resources (e.g., multiple VMs or apps) and must persist even after one resource is deleted, or if the identity needs to be pre-created and assigned to resources in different regions.

B

This option would be correct if the question required an identity that can be used for authentication outside of Azure (e.g., for an on-premises application) and the administrator is willing to manage the secret lifecycle manually, with no requirement for automatic cleanup.

D

When the question asks for a method to grant time-limited, delegated access to a specific Azure Storage resource (e.g., blob or queue) without sharing account keys, and the access should be revocable by expiry or policy.

Why candidates pick the wrong answer

A

Candidates may confuse user-assigned with system-assigned managed identities, or think that all managed identities are automatically deleted with the resource, overlooking the key difference that user-assigned identities have a separate lifecycle.

B

Candidates may confuse service principals with managed identities, thinking both provide similar functionality, and may not realize that service principals require manual secret management and deletion.

D

Candidates may confuse SAS with managed identities because both involve temporary access, but SAS is for storage access, not for app identity or automatic lifecycle management.

586
Multi-Selectmedium

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

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

Why this answer

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

Exam trap

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

587
MCQhard

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

B

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

C

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

D

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

When would these options actually be correct?

B

This option would be correct if the question required restricting operators from deploying any VMs at all (e.g., deny the write action for VM resources) while still allowing other Contributor tasks. A custom RBAC role with explicit 'NotActions' for VM write permissions would achieve that.

C

A CanNotDelete lock would be correct if the question asked: 'The administrator needs to prevent accidental deletion of a critical resource group containing production VMs, while still allowing operators to modify resources within it.'

D

If the requirement was to prevent accidental modifications to existing VMs while allowing read access, and the operators only need to view resources, assigning Reader permissions would be correct.

Why candidates pick the wrong answer

B

Candidates may think RBAC can filter by resource properties because they confuse Azure Policy (which evaluates resource configurations) with RBAC (which controls access). The similarity in names and the concept of 'restricting' leads to this misconception.

C

Candidates may confuse resource locks with policy enforcement, thinking that locking a resource group can also prevent changes like deploying unauthorized VM sizes, when locks only affect deletion or modification of existing resources.

D

Candidates may think that portal validation provides enforcement, but it is only a client-side check that can be bypassed via CLI or API.

588
MCQmedium

A company merged with another business, and two Azure virtual networks need to be peered for shared application access. One VNet uses 10.20.0.0/16 and the other uses 10.20.128.0/17. The administrator must make the peering work with minimal operational complexity. What should be done first?

A.Create a route table on both VNets and point the overlapping prefixes to a virtual appliance.
B.Renumber one VNet to a non-overlapping address range before creating the peering.
C.Enable gateway transit on both VNets so overlapping ranges can be routed around.
D.Create a private endpoint in each VNet for the applications that need access.
AnswerB

Peering requires non-overlapping CIDR ranges, so one network must be redesigned first.

Why this answer

Azure VNet peering requires non-overlapping address spaces. The two VNets (10.20.0.0/16 and 10.20.128.0/17) overlap because 10.20.128.0/17 is a subset of 10.20.0.0/16. Peering will fail with an error about overlapping address ranges.

Renumbering one VNet to a non-overlapping range (e.g., 10.21.0.0/16) is the only way to satisfy the prerequisite for peering with minimal operational complexity.

Exam trap

The trap here is that candidates assume overlapping ranges can be handled with routing or network virtual appliances, but Azure VNet peering has a hard requirement for non-overlapping address spaces at creation time, and no post-peering configuration can override this.

Why the other options are wrong

A

Azure VNet peering requires non-overlapping address spaces. Overlapping ranges (10.20.0.0/16 and 10.20.128.0/17) cannot be directly peered; route tables cannot resolve the conflict because Azure peering does not support overlapping prefixes.

C

Gateway transit does not resolve overlapping IP address ranges; it only allows one VNet to use the other's VPN gateway for connectivity to on-premises networks. Overlapping ranges prevent peering from being established at all.

D

Private endpoints provide secure access to Azure PaaS services from a VNet, but they do not resolve IP address overlap between two VNets. Peering requires non-overlapping address spaces, and private endpoints cannot route traffic between overlapping ranges.

When would these options actually be correct?

A

In a scenario where two VNets have overlapping address spaces but must communicate without renumbering, and a network virtual appliance (NVA) is used for traffic forwarding. Creating route tables to direct overlapping traffic to the NVA would be correct, assuming the NVA performs NAT or routing.

C

If the VNets had non-overlapping address ranges and the goal was to enable a hub VNet to provide VPN connectivity to on-premises for a spoke VNet, enabling gateway transit on the hub and using it in the spoke would be correct.

D

This option would be correct in a scenario where two VNets need to securely access a shared Azure PaaS service (e.g., Azure SQL Database) without exposing it to the public internet, and the VNets have non-overlapping address ranges. The question would ask for a solution to enable private connectivity to the service from both VNets.

Why candidates pick the wrong answer

A

Candidates may think route tables can override peering limitations, or they confuse VNet peering with hub-and-spoke topologies where NVAs handle overlapping ranges.

C

Candidates may confuse gateway transit with a feature that can route around overlapping addresses, or think that enabling transit allows traffic to bypass the overlap via a gateway.

D

Candidates may think private endpoints can isolate traffic and solve routing issues, or they confuse private endpoints with VNet peering as a method to connect VNets with overlapping addresses.

589
MCQhard

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

A question asks how to isolate resources for different business units within a single subscription, ensuring each unit's resources are logically separated and can be managed independently without affecting others.

C

A question where the requirement is to prevent accidental deletion or modification of critical resources (e.g., a production database) across multiple subscriptions, without needing to enforce policies or inherit rules. For example: 'A company wants to ensure that critical resources in all subscriptions cannot be deleted by administrators. Which construct should they use?'

D

This would be correct if the question asked: 'An organization has a policy that must apply to all subscriptions except a few sandbox subscriptions. Which construct should be used to exclude the sandbox subscriptions from the policy?'

Why candidates pick the wrong answer

A

Candidates may confuse resource groups as a governance tool because they are used to group resources for management, but they lack cross-subscription policy enforcement and automatic inheritance capabilities.

C

Candidates may confuse resource locks with policy enforcement, thinking locks can enforce rules like allowed regions or tags, when locks only provide a delete/change protection mechanism.

D

Candidates may think a policy exemption can define separate governance rules, but exemptions only remove policy enforcement; they cannot apply different baselines to different subscription groups.

590
Multi-Selectmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

D

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

E

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

When would these options actually be correct?

D

In a scenario where the script must authenticate from an external system (e.g., a CI/CD pipeline) that cannot use managed identities, and the use of a client secret is allowed, creating a service principal and storing its secret securely would be correct.

E

In a scenario where the requirement is only to monitor or audit resources in a resource group (e.g., list VMs or check tags), and the script uses read-only commands, Reader would be sufficient.

Why candidates pick the wrong answer

D

Candidates often default to service principals for automation because they are a common pattern, overlooking the specific requirement to avoid secrets and the availability of managed identities.

E

Candidates may confuse Reader with Contributor, thinking that any role allows resource creation, or they underestimate the permissions needed for Azure CLI deployment commands.

591
MCQeasy

You are creating a new Ubuntu VM and want it to create a local admin account and install packages automatically on the first boot. Which approach should you use?

A.Use an availability set so the script runs during placement.
B.Use cloud-init to run first-boot configuration in Linux.
C.Use a snapshot of the operating system disk.
D.Use a custom image and manually log in later.
AnswerB

cloud-init is the standard Linux first-boot provisioning tool, supported natively by Azure. By supplying a cloud-init script (in YAML or shell) at VM creation, you can automate creating local users with SSH keys, installing packages, running arbitrary commands, and applying system settings automatically on the first boot—before the OS is fully available for login. This directly fulfills the requirement to create a local user and configure the VM without manual intervention, making it the correct option.

Why this answer

Cloud-init is the standard method for automating first-boot configuration on Linux VMs in Azure. It processes user-data (such as cloud-config YAML) to create users, install packages, and run scripts during initial boot, making it the correct choice for creating a local admin account and installing packages automatically.

Exam trap

The trap here is that candidates may confuse availability sets with orchestration features or assume snapshots can trigger automation, missing that cloud-init is the Azure-native solution for first-boot configuration in Linux.

Why the other options are wrong

A

An availability set ensures high availability by distributing VMs across fault and update domains, but it does not execute scripts or automate first-boot configuration.

D

Manually logging in later does not automate the creation of a local admin account or package installation on first boot; cloud-init is designed for that purpose.

When would these options actually be correct?

A

When the question asks for a method to ensure that two or more VMs are not placed on the same physical hardware or are updated simultaneously to maintain application availability during planned or unplanned maintenance.

D

If the question asked for a method to deploy a VM with pre-configured software and settings that require manual post-deployment steps, such as compliance verification or custom application setup, using a custom image and logging in later would be appropriate.

Why candidates pick the wrong answer

A

Candidates may confuse availability sets with automation features, thinking that placing a VM in an availability set triggers configuration scripts, or they may overestimate the capabilities of availability sets.

D

Candidates might think that using a custom image is a valid way to pre-configure a VM, overlooking that cloud-init provides automated first-boot configuration without manual intervention.

592
Multi-Selecthard

A development team wants to publish an internet-facing application directly from source code. The solution must support built-in HTTPS, deployment slots for safe testing, and autoscale as demand changes. Which two choices should the administrator select? Select two.

Select 2 answers
A.Use Azure App Service.
B.Choose an App Service plan at Standard tier or higher.
C.Use Azure Container Instances for the public application.
D.Deploy the app on a virtual machine scale set.
E.Use an availability set for the application instances.
AnswersA, B

Azure App Service is a fully managed PaaS offering specifically built for hosting internet-facing web applications. It provides automatic OS patching, built-in load balancing, TLS/SSL termination, source-control integration, and health checking, so the development team does not have to provision or maintain any underlying VMs. This makes it the correct platform choice for a public web app that requires deployment slots and autoscale functionality.

Why this answer

Azure App Service is a fully managed platform for building, deploying, and scaling web apps. It natively supports publishing directly from source code (via continuous deployment from GitHub, Azure Repos, or Bitbucket), built-in HTTPS (with automatic certificate management), deployment slots for staging and swapping, and autoscale based on metrics or schedules. These features directly satisfy all the requirements stated in the question.

Exam trap

The trap here is that candidates often confuse Azure Container Instances or virtual machine scale sets as simpler alternatives, but they lack the integrated deployment slots and built-in HTTPS management that App Service provides out of the box.

Why the other options are wrong

C

Azure Container Instances does not provide built-in HTTPS, deployment slots, or autoscaling; it is designed for simple container workloads without these features.

D

Virtual machine scale sets require manual configuration of HTTPS, deployment slots, and autoscale rules, and do not support direct source code deployment with built-in HTTPS and deployment slots like App Service.

E

An availability set provides high availability for VMs within a datacenter but does not support built-in HTTPS, deployment slots, or autoscaling for internet-facing applications from source code.

When would these options actually be correct?

C

When the requirement is to run a containerized application quickly without managing orchestration, and features like HTTPS termination are handled by a separate front-end (e.g., Azure Application Gateway), and autoscaling is not needed.

D

A question requiring a highly customizable, multi-tier application with specific OS-level configurations, custom software installations, or need for full control over the VM environment, where scaling out VMs is needed and deployment slots are not a requirement.

E

An administrator needs to ensure high availability for a set of virtual machines hosting a critical application within a single region, requiring at least two VMs in different fault and update domains.

Why candidates pick the wrong answer

C

Candidates may think container instances are a modern, scalable option for web apps, overlooking that Azure App Service offers the required built-in features like slots and autoscale.

D

Candidates may think VMSS provides autoscaling and is suitable for internet-facing apps, but overlook the specific requirements for built-in HTTPS and deployment slots that are native to App Service.

E

Candidates may confuse availability sets with high-availability features of PaaS services like App Service, or think that availability sets provide scaling and HTTPS capabilities.

593
MCQmedium

An administrator archives monthly log exports in a blob container to reduce storage cost. During an audit, one archived blob must be downloaded and opened later the same day. What must the administrator do before the blob can be read?

A.Read the blob directly from the Archive tier because archive data remains immediately online
B.Change the blob tier from Archive to Hot or Cool and wait for rehydration to finish
C.Copy the blob to a new container in the same account to bypass the archive restriction
D.Assign an Azure RBAC role to the auditor so the archived blob becomes available immediately
AnswerB

Changing the blob's access tier from Archive to Hot or Cool invokes a rehydration operation, during which the blob's data is moved from offline storage to an online tier. You must wait for this rehydration to complete; the operation can take from under an hour with High priority to up to 15 hours with Standard priority, during which read attempts fail. Once the blob's tier status shows it has rehydrated (no longer 'rehydrate-pending'), you can read it immediately. This is the intended way to make archived data accessible.

Why this answer

Blobs stored in the Archive tier are offline and must be rehydrated to the Hot or Cool tier before they can be read. Rehydration can take up to 15 hours, so the administrator must initiate a tier change and wait for completion before downloading the blob. Option B correctly identifies this required step.

Exam trap

The trap here is that candidates assume Archive tier blobs are always accessible with the right permissions, but Azure explicitly keeps Archive blobs offline to minimize cost, requiring a manual rehydration step before any read or copy operation.

Why the other options are wrong

A

Blobs in the Archive tier are offline and cannot be read directly; they must first be rehydrated to Hot or Cool tier, which takes time.

C

Copying a blob from Archive tier does not bypass the rehydration requirement; the copy operation itself triggers rehydration, and the blob remains inaccessible until rehydration completes.

D

Assigning an Azure RBAC role does not change the blob's access tier; archived blobs remain offline until rehydrated, regardless of permissions.

When would these options actually be correct?

A

If the question specified that the blob is in the Cool or Hot tier, or if the archive tier supported immediate reads (which it does not), then reading directly would be correct.

C

If the question asked how to move a blob between storage accounts without changing its tier, or how to create a duplicate blob in the same account while keeping the original in Archive, then copying would be a valid approach.

D

If the question asked how to grant an auditor read access to a blob that is already in Hot or Cool tier (i.e., online), assigning the appropriate RBAC role (e.g., Storage Blob Data Reader) would be the correct step.

Why candidates pick the wrong answer

A

Candidates may mistakenly believe that Archive tier data is still immediately accessible, confusing it with the Cool or Hot tiers, or assume that 'archived' means simply stored rather than taken offline.

C

Candidates may think copying avoids the rehydration delay because they assume the copy operation reads the data directly, not realizing that reading from Archive requires prior rehydration.

D

Candidates may confuse access control (RBAC) with data availability, assuming that granting permissions automatically makes archived data accessible.

594
MCQmedium

You need to notify the security team whenever anyone deletes a resource group in the subscription. Which alert type should you configure?

A.A metric alert on CPU percentage
B.A budget alert
C.An activity log alert
D.A log alert based only on guest OS event logs
AnswerC

An activity log alert is purpose-built for Azure control-plane events such as resource-group deletions. The Activity Log records operational events at the subscription level, including the Delete Resource Group operation, and a rule can be configured to fire immediately when that operation occurs. This directly triggers a security-team notification via email, webhook, ITSM, or an action group, making it the correct solution.

Why this answer

An activity log alert monitors subscription-level events recorded in the Azure Activity Log, including resource group deletion operations. When a user deletes a resource group, the 'Microsoft.Resources/subscriptions/resourceGroups/delete' operation is logged, and an activity log alert can be configured to trigger on that specific operation, sending notifications to the security team.

Exam trap

The trap here is that candidates often confuse activity log alerts with log alerts based on guest OS logs, not realizing that resource group deletions are control plane events captured in the Activity Log, not in guest OS event logs.

Why the other options are wrong

A

A metric alert on CPU percentage monitors performance metrics like CPU usage, not resource deletion events. It cannot detect administrative operations such as deleting a resource group.

B

Budget alerts monitor spending against cost thresholds, not resource deletion events. They cannot detect operational actions like deleting resource groups.

D

A log alert based only on guest OS event logs cannot detect Azure resource-level operations like resource group deletion because it monitors events within the virtual machine's operating system, not Azure Resource Manager activities.

When would these options actually be correct?

A

You need to notify the operations team when a specific virtual machine's CPU usage exceeds 90% for more than 5 minutes to trigger auto-scaling actions.

B

A budget alert would be correct if the question asked: 'You need to notify the finance team when subscription spending exceeds $10,000.'

D

You need to be alerted when a specific application running on a virtual machine crashes, based on events logged in the Windows System event log. A log alert querying the Event table for Application Error events would be correct.

Why candidates pick the wrong answer

A

Candidates may confuse metric alerts with activity log alerts, thinking that any alert type can monitor resource changes, or they may default to common performance monitoring without reading the question carefully.

B

Candidates may confuse budget alerts with activity alerts because both involve monitoring, but budget alerts focus on cost, not resource operations.

D

Candidates may confuse guest OS logs with Azure activity logs, thinking that OS-level alerts can capture all administrative actions, or they may not understand the scope limitation of guest OS monitoring.

595
Multi-Selectmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

B

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

C

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

E

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

When would these options actually be correct?

B

If the requirement was to prevent any changes to resources (e.g., during a security audit or compliance hold) while still allowing read access, a ReadOnly lock at the resource group scope would be correct.

C

In a scenario where the requirement is to prevent deletion of specific virtual machines only, while allowing deletion of other resources in the same resource group, applying a CanNotDelete lock at the individual VM level would be correct.

E

In a scenario where you need to categorize resources for cost tracking or policy enforcement (e.g., apply a policy that prevents deletion of resources with a 'production' tag), tags would be the correct choice.

Why candidates pick the wrong answer

B

Candidates may confuse 'prevent deletion' with 'prevent changes' and think ReadOnly is safer, or they may not realize that update/scale/restart are write operations blocked by ReadOnly.

C

Candidates may think that locking only the most critical resources (VMs) is sufficient, overlooking that the requirement applies to all resources in the group, not just VMs.

E

Candidates may think tags can be used with Azure Policy to prevent deletion, but the question asks for a direct action, not a policy setup, and tags alone have no effect on deletion permissions.

596
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

If the question required the team to manage all VMs across multiple resource groups within the subscription, and the built-in Virtual Machine Contributor role exactly matched the needed permissions, then assigning it at subscription scope would be appropriate.

C

This combination would be correct if the team needed to both read VM properties (Reader) and perform all VM management actions including create/delete (Virtual Machine Contributor) at the resource group scope.

D

A scenario where the team needs full administrative control over the resource group, including the ability to manage access and all resource operations, and the principle of least privilege is not a concern.

Why candidates pick the wrong answer

A

Candidates may think Virtual Machine Contributor is the closest built-in role for VM management and assume subscription scope is acceptable because it's simpler than creating a custom role.

C

Candidates may think combining Reader with Virtual Machine Contributor limits permissions to only read and start/stop/deallocate, but Virtual Machine Contributor includes broader VM management capabilities.

D

Candidates may think Owner is a simple way to avoid future access issues, overlooking that it provides excessive permissions beyond the required actions.

597
MCQhard

Your operations team needs to run Kusto queries across collected sign-in logs, VM performance counters, and Azure Activity Log data in a central location. What should you deploy?

A.A Log Analytics workspace
B.An availability zone
C.A NAT gateway
D.A standard public IP address
AnswerA

A Log Analytics workspace is the Azure Monitor service designed specifically for centralized log retention, indexing, and KQL-based analysis. It ingests telemetry from Azure resources, operating systems, and applications, then stores that data in queryable tables. Running Kusto queries across collected logs requires this workspace as the analytical backend, making it the only valid choice here.

Why this answer

A Log Analytics workspace is the central repository in Azure that ingests and stores diagnostic data from multiple sources, including sign-in logs (Azure AD), VM performance counters (Azure Monitor for VMs), and Azure Activity Logs. It supports Kusto Query Language (KQL) for running complex queries across all collected data, making it the correct choice for this requirement.

Exam trap

The trap here is that candidates may confuse a Log Analytics workspace with other networking or compute resources, thinking a NAT gateway or public IP is needed for data ingestion, when in fact Azure Monitor agents and diagnostic settings send data directly to the workspace without requiring public internet exposure.

Why the other options are wrong

B

An availability zone is a physically separate datacenter within an Azure region, used for high availability and disaster recovery, not for centralizing and querying log data from multiple sources.

C

A NAT gateway is used to enable outbound internet connectivity for virtual networks, not to centralize and query logs. It does not store or analyze log data.

D

A standard public IP address is used for outbound connectivity and inbound access to Azure resources, not for centralizing and querying log data from multiple sources like sign-in logs, VM performance counters, and Activity Logs.

When would these options actually be correct?

B

You need to deploy a solution that ensures your application remains available even if one Azure datacenter fails. Deploying VMs across multiple availability zones provides fault tolerance and high availability.

C

You need to provide secure outbound internet access for resources in a virtual network while preventing inbound connections from the internet. Deploying a NAT gateway would be the correct solution.

D

When a question asks for a resource that provides a static public IPv4 address for outbound internet access from a virtual machine or load balancer, or for inbound access to a resource without a public endpoint, a standard public IP address is the correct answer.

Why candidates pick the wrong answer

B

Candidates may confuse 'availability zone' with a centralized data repository, or think it provides a central location for data, but it is actually a high-availability feature.

C

Candidates may confuse 'gateway' with a central collection point, or think NAT is involved in log routing due to its role in network traffic.

D

Candidates may confuse public IP addresses with the concept of a 'central location' for data, thinking that a public IP could be used to aggregate logs from different sources via network endpoints.

598
Multi-Selecteasy

A team needs an alert that emails the operations group whenever a VM's average CPU percentage stays above 85% for 10 minutes. Which two Azure Monitor components must you configure? Select two.

Select 2 answers
A.A metric alert rule on the VM CPU metric
B.An action group with an email receiver
C.A Recovery Services vault
D.A private endpoint for the virtual machine
E.A blob lifecycle management policy
AnswersA, B

A metric alert rule for the VM's CPU metric is the correct alerting mechanism because it continuously samples the 'Percentage CPU' performance counter from the virtual machine's Azure Monitor metrics. You define a threshold (e.g., >80% for 10 minutes), and Azure Monitor evaluates that condition on a configured frequency, generating a triggered alert when the condition is met. This rule is the trigger that invokes notifications and is the foundation of the team's requirement.

Why this answer

A metric alert rule on the VM CPU metric is required because it continuously monitors the 'Percentage CPU' metric and triggers when the average value exceeds 85% for a duration of 10 minutes. This rule evaluates the condition using the aggregation type 'Average' and the window size set to PT10M (ISO 8601 format). Without this rule, no alert condition exists to detect the threshold breach.

Exam trap

The trap here is that candidates often forget that an action group (with email, SMS, or webhook receivers) is a separate, required component that must be linked to the metric alert rule to actually send the notification; without it, the alert rule fires but no one gets emailed.

Why the other options are wrong

C

A Recovery Services vault is used for Azure Backup and Site Recovery, not for configuring alerts based on VM performance metrics like CPU percentage.

D

A private endpoint is used to securely connect to Azure services over a private IP address, not for monitoring or alerting on VM CPU metrics. It does not help configure alerts or notifications.

E

A blob lifecycle management policy manages the tiering or deletion of blob data in Azure Storage, not VM CPU alerts. It is irrelevant to monitoring VM performance metrics.

When would these options actually be correct?

C

When the question asks for configuring backup or disaster recovery for Azure VMs, such as 'You need to enable daily backups of a virtual machine. Which resource must you create first?'

D

A question asks: 'You need to ensure that traffic to an Azure SQL database from a virtual network does not traverse the public internet. Which component should you configure?' In that scenario, a private endpoint would be correct.

E

An exam question asks: 'You need to automatically move blobs older than 30 days to cool tier and delete blobs older than 90 days. Which Azure feature should you configure?' In that scenario, a blob lifecycle management policy is the correct answer.

Why candidates pick the wrong answer

C

Candidates may confuse Recovery Services vault with a monitoring or alerting component because both are associated with VM management and protection.

D

Candidates may confuse private endpoints with monitoring endpoints or think that private connectivity is needed for alerting, but alerts use Azure Monitor's public endpoints by default.

E

Candidates may confuse 'lifecycle' with alerting or think it applies to VM resource management, not realizing it is specific to Azure Storage blob data.

599
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

B

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

C

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

D

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

When would these options actually be correct?

B

This option would be correct if the question asked for assigning a role to a specific subscription only, without requiring inheritance to other subscriptions, and the audit team only needs access to that one subscription.

C

This would be correct if the question asked: 'An audit team needs to review resources within a specific resource group across multiple subscriptions, but only for that resource group. Where should Reader access be assigned?'

D

This would be correct if the question asked: 'An audit team needs to inspect a specific virtual machine and should have read-only access to that VM only, without access to any other resources. Where should the role be assigned?'

Why candidates pick the wrong answer

B

Candidates may mistakenly believe that Azure RBAC role assignments at one subscription propagate to all subscriptions in the same management group, confusing subscription-level inheritance with management group-level inheritance.

C

Candidates may think resource groups are the most granular scope that still allows inheritance to multiple resources, but they overlook that inheritance does not span across subscriptions or management groups.

D

Candidates may think that assigning at a resource is sufficient for the audit team's needs, misunderstanding that the requirement is for all subscriptions, not a single resource.

600
MCQmedium

Based on the exhibit, the VM backup item was accidentally deleted from the vault yesterday, but the VM itself still exists. What should you do to resume protection with the existing backup item?

A.Delete the VM and recreate it so the backup can start again.
B.Recover or undelete the backup item from the vault before the soft-delete retention expires.
C.Create a new action group so the vault can re-enable protection.
D.Disable diagnostic settings on the vault and then re-enable them.
AnswerB

Because soft delete is enabled and the retention window is still open, the deleted backup item can be recovered from the Recovery Services vault. Undeleting the item restores the backup relationship without requiring a new protection configuration or a rebuild of the VM.

Why this answer

Azure Backup uses soft-delete for backup items, which retains deleted backup data for 14 days by default. Since the backup item was accidentally deleted yesterday, it is still in the soft-delete state and can be recovered or undeleted from the vault before the retention period expires. Once recovered, protection can be resumed on the existing VM without data loss or reconfiguration.

Exam trap

The trap here is that candidates may think deleting a backup item permanently removes all data, but Azure Backup's soft-delete feature retains the data for 14 days, allowing recovery without recreating the VM or backup configuration.

Why the other options are wrong

A

Deleting the VM would cause loss of data and is unnecessary because the backup item can be recovered from soft-delete state without recreating the VM.

C

Creating a new action group does not restore a deleted backup item or re-enable protection. Action groups define notification settings for alerts, not backup item recovery.

D

Disabling and re-enabling diagnostic settings on the vault does not restore a soft-deleted backup item or resume protection; it only affects logging and monitoring data sent to Azure Monitor.

When would these options actually be correct?

A

If the VM itself is corrupted or compromised and cannot be recovered, and the backup data is also lost or unavailable, then deleting and recreating the VM might be the only way to start fresh protection.

C

If the question were about configuring alerts for backup failures or restoring a backup job that failed due to missing notification settings, creating a new action group would be correct to receive alerts.

D

If the question were about troubleshooting backup failure due to misconfigured diagnostic settings (e.g., missing or incorrect Log Analytics workspace), disabling and re-enabling them could reset the data flow and resolve the issue.

Why candidates pick the wrong answer

A

Candidates may think that a deleted backup item requires a fresh start, and deleting the VM seems like a clean way to re-establish protection from scratch.

C

Candidates may confuse action groups with backup protection policies, thinking that a new action group can somehow re-enable backup protection after deletion.

D

Candidates may confuse diagnostic settings with backup configuration, thinking that toggling settings can 'reset' the backup service or re-establish protection without understanding the soft-delete feature.

Page 7

Page 8 of 14

Page 9