Courseiva

AZ-104 (AZ-104) — Questions 151225

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

Page 2

Page 3 of 14

Page 4
151
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

A question that asks for the simplest method to authenticate to a storage account from a VM, with no restrictions on storing keys or automatic identity removal, would make the storage account access key correct.

C

A shared access signature would be correct when you need to grant time-limited, delegated access to a storage account for a client that does not support managed identities (e.g., an external application) and you can securely manage the token lifecycle outside the VM.

D

A user-assigned managed identity would be correct if the question required a single identity to be shared across multiple Azure resources (e.g., multiple VMs and a function app) that all need to access the same storage account, and the identity must remain available even after one VM is deleted.

Why candidates pick the wrong answer

A

Candidates may think the access key is the easiest and most familiar authentication method, overlooking the security and lifecycle management requirements specified in the question.

C

Candidates may think SAS eliminates the need for identity management because it provides token-based access without requiring a user or service principal, but they overlook the requirement to avoid storing secrets and the automatic cleanup condition.

D

Candidates may confuse user-assigned with system-assigned managed identities, assuming both are automatically deleted with the VM, or they may think user-assigned is more flexible and still meets the deletion requirement.

152
Matchingmedium

Match each Azure VM administration requirement on the left with the most appropriate Azure CLI command on the right. Use each answer once.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

az vm deallocate

az vm redeploy

az vm resize

az snapshot create

az vm disk attach

Why these pairings

Azure CLI commands for VM administration: 'az vm create' deploys, 'az vm resize' changes size, 'az vm start/stop/restart' controls state, and 'az vm delete' removes the VM.

153
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

B

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

D

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

When would these options actually be correct?

A

An exam question asks: 'Which policy effect should be used to log non-compliant resources without blocking deployment?' Audit would be correct because it creates a compliance log entry without preventing resource creation.

B

When the requirement is to automatically add a missing tag (e.g., 'Environment') with a default value to all new resources during deployment, without blocking the deployment.

D

A question asks: 'You need to temporarily disable a policy assignment without deleting it, to test the impact of a new policy effect. Which effect should you set?' In that case, 'Disabled' is correct because it deactivates the policy while preserving the assignment.

Why candidates pick the wrong answer

A

Candidates may confuse Audit with Deny, thinking that logging non-compliance is sufficient to enforce tagging, or they may not fully understand that Audit does not block deployment.

B

Candidates may think Append can enforce tagging by adding the tag automatically, but they overlook that Append does not prevent deployment of resources that lack the tag—it only modifies them after creation.

D

Candidates might think 'Disabled' means the policy is inactive and thus won't block anything, but they fail to realize the question requires an effect that actively blocks deployment, not one that does nothing.

154
MCQmedium

A VM-based app must upload invoices to a blob container every hour. Security prohibits storing account keys or SAS tokens on the VM. The app should authenticate with Microsoft Entra ID and be allowed only to write blobs in one container. What should you configure?

A.Create an account SAS token and store it in the VM's application settings.
B.Enable a managed identity on the VM and assign Storage Blob Data Contributor at the container scope.
C.Assign Reader on the storage account so the VM can reach the container securely.
D.Grant Storage Account Contributor at the subscription scope so the app can manage all storage resources.
AnswerB

A managed identity lets the VM authenticate to Azure Storage through Microsoft Entra ID without storing credentials on the server. Assigning Storage Blob Data Contributor at the container scope gives the app the ability to upload and modify blob data only where needed. This is the least-privilege approach and aligns with secure operational practice for Azure administrators.

Why this answer

Enabling a managed identity on the VM allows the app to authenticate with Microsoft Entra ID without storing any secrets. Assigning the Storage Blob Data Contributor role at the container scope grants the VM’s managed identity the minimum required permission to write blobs only to that specific container, adhering to the principle of least privilege.

Exam trap

The trap here is that candidates often confuse the Reader role (which only allows read access to the storage account's control plane) with the ability to write data, or they incorrectly assume that a broad role like Storage Account Contributor is acceptable because it 'covers' the storage account, ignoring the security constraint and the need for data-plane permissions at the container scope.

Why the other options are wrong

A

Storing an account SAS token on the VM violates the security requirement that prohibits storing account keys or SAS tokens on the VM. The question explicitly forbids this approach.

C

The Reader role only allows read access to the storage account, not write access to a blob container. The app needs to upload invoices (write blobs), so Reader is insufficient.

D

Storage Account Contributor at subscription scope grants full management access to all storage accounts in the subscription, far exceeding the principle of least privilege required for the app to only write blobs in one container. It also does not restrict the app to blob write operations only.

When would these options actually be correct?

A

If the security requirement did not prohibit storing SAS tokens on the VM, and the app needed to access a specific container with write-only permissions, an account SAS token scoped to that container would be a valid solution.

C

If the requirement was to allow a user or application to list or read blobs in a container (e.g., for auditing or reporting) without write permissions, assigning Reader at the storage account scope would be correct.

D

This option would be correct if the question required a user or application to have full administrative control over a specific storage account (e.g., to create, delete, or configure storage resources) and the scope was limited to that storage account rather than the entire subscription.

Why candidates pick the wrong answer

A

Candidates may think a SAS token is a secure way to grant limited access without keys, and overlook the explicit prohibition in the question against storing tokens on the VM.

C

Candidates may think Reader provides enough access for the app to reach the container, confusing read access with the ability to write blobs, or they may underestimate the need for a specific write role.

D

Candidates may think that granting a high-level contributor role is a simple way to ensure the app has the necessary permissions, without understanding the security implications of over-privileging or the need for scoped access.

155
MCQhard

A finance operations team manages virtual machines in RG-App. They must start, stop, deallocate, and view VM properties for any VM in that resource group. They must not be able to delete VMs, read NIC settings, or manage disks. What should the administrator do?

A.Assign the built-in Virtual Machine Contributor role at the subscription scope.
B.Create a custom role with only the required VM actions and assign it at the RG-App scope.
C.Assign the built-in Reader role at the RG-App scope and let the team use portal buttons.
D.Assign the built-in Contributor role at the resource group scope.
AnswerB

Creating a custom role that includes only the specific VM actions the finance operations team needs (such as Microsoft.Compute/virtualMachines/start/action, /restart/action, and /deallocate/action) and assigning that role at the RG-App resource group scope is the correct implementation of least privilege. This confines every permission to the exact resource group and to the precise VM operations required, preventing the team from modifying other resource groups or unrelated resource types while still allowing them to perform their daily start/stop/deallocate tasks.

Why this answer

The required permissions (start, stop, deallocate, view properties) are a subset of the built-in Virtual Machine Contributor role, but that role also includes delete and other management actions. A custom role allows you to grant only the specific Microsoft.Compute/virtualMachines/start/action, Microsoft.Compute/virtualMachines/deallocate/action, and Microsoft.Compute/virtualMachines/read permissions, while explicitly excluding delete, NIC read, and disk management actions. Assigning this custom role at the RG-App scope ensures the team can manage VMs without broader access.

Exam trap

The trap here is that candidates often assume the built-in Virtual Machine Contributor role is sufficient because it covers VM management, but they overlook that it includes delete and other broader permissions that must be explicitly excluded via a custom role.

Why the other options are wrong

A

Assigning Virtual Machine Contributor at subscription scope grants permissions to all VMs in the subscription, not just RG-App, and includes actions like delete VM and manage disks, exceeding the required permissions.

C

The built-in Reader role only allows viewing resources, not starting, stopping, or deallocating VMs. Portal buttons for these actions require write permissions, so the team would be unable to perform the required operations.

D

The built-in Contributor role includes permissions to delete resources, read NIC settings, and manage disks, which violates the requirement to restrict these actions.

When would these options actually be correct?

A

If the requirement was to manage all VMs across multiple resource groups in the subscription (e.g., start, stop, deallocate, view properties) without restricting deletion or disk management, and the scope needed to be subscription-wide.

C

This option would be correct if the question required read-only access to all resources in the resource group, with no need to perform any management actions like start/stop/deallocate.

D

In a scenario where the team needs full management capabilities (including deletion, NIC reading, and disk management) for all resources in the resource group, assigning the Contributor role at the resource group scope would be appropriate.

Why candidates pick the wrong answer

A

Candidates may think Virtual Machine Contributor is the closest built-in role for VM management, overlooking that it includes unwanted permissions and that scope can be narrowed to a resource group.

C

Candidates may mistakenly believe that the Reader role combined with portal buttons provides sufficient permissions, overlooking that portal actions require underlying RBAC write permissions.

D

Candidates may assume Contributor provides sufficient VM management permissions without realizing it also grants broader resource management rights that exceed the specified restrictions.

156
Multi-Selecteasy

Which two statements about a Log Analytics workspace are correct? Select two.

Select 2 answers
A.It can store logs collected from Azure resources
B.It supports KQL queries
C.It creates backups of Azure virtual machines
D.It assigns permissions to Azure resources at scope
E.It blocks resource creation that violates a rule
AnswersA, B

A Log Analytics workspace is the central repository in Azure Monitor for telemetry and diagnostic data collected from Azure resources such as virtual machines, App Services, and Azure Active Directory. Data enters via diagnostic settings, agents, and other connectors, and is stored in structured tables that can be retained based on your retention policies for analysis and troubleshooting.

Why this answer

A Log Analytics workspace is a centralized repository that can ingest and store log data from various Azure resources, including virtual machines, Azure Activity logs, and resource diagnostics, enabling monitoring and analysis. Option B is correct because Log Analytics workspaces support Kusto Query Language (KQL) queries, which allow users to perform complex searches, aggregations, and visualizations on the stored log data.

Exam trap

The trap here is that candidates often confuse the monitoring and log storage capabilities of Log Analytics workspaces with other Azure services like Azure Backup, Azure Policy, or RBAC, leading them to select options that describe those separate services instead.

Why the other options are wrong

C

A Log Analytics workspace is for collecting and analyzing log data, not for creating backups of Azure virtual machines. Backup functionality is provided by Azure Backup, not Log Analytics.

D

Log Analytics workspace is a monitoring and log management service, not an identity and access management tool. It does not assign permissions to Azure resources at any scope; that is the role of Azure RBAC (Role-Based Access Control) applied to management groups, subscriptions, resource groups, or individual resources.

E

A Log Analytics workspace is used for collecting and querying log data, not for blocking resource creation. Azure Policy, not Log Analytics, enforces rules to block non-compliant resource creation.

When would these options actually be correct?

C

This option would be correct in a question about Azure Backup or Azure Site Recovery, where the service's primary function is to create and manage backups of Azure virtual machines.

D

This option would be correct if the question were about Azure RBAC or Azure Policy. For example: 'Which tool allows you to assign permissions to Azure resources at a specific scope?' — then Azure RBAC role assignments would be the correct answer.

E

This option would be correct if the question asked about Azure Policy, which can block resource creation that violates a rule. For example, 'Which Azure service can prevent deployment of resources that do not meet compliance rules?'

Why candidates pick the wrong answer

C

Candidates may confuse Log Analytics with Azure Backup because both are management services, or they might think that storing logs implies backup capabilities.

D

Candidates may confuse the concept of 'workspace' with a management scope, or think that Log Analytics workspaces can control access to resources because they are often used in conjunction with Azure Policy or RBAC for monitoring purposes.

E

Candidates may confuse Log Analytics with Azure Policy because both are used in monitoring and governance scenarios, and the idea of 'blocking' aligns with security controls, but Log Analytics does not enforce policies.

157
MCQhard

A production VM must generate an alert when average CPU exceeds 80 percent for 10 minutes. The alert must be evaluated continuously, but email notifications should be suppressed outside 08:00 to 18:00 on weekdays. What should the administrator configure?

A.A log query alert only, with the query scheduled to run during business hours
B.A metric alert rule with an action group and an alert processing rule that suppresses actions outside business hours
C.A diagnostic setting that sends CPU logs to a storage account and a Logic App for email delivery
D.An action group with an email receiver and a virtual machine extension to pause the workload outside business hours
AnswerB

A metric alert rule natively evaluates the host's average CPU every minute using a stateless threshold check, so it detects sustained load 24x7 even if you're not watching. To avoid knocking people at night for off-hours spikes, you add an alert processing rule (suppression effect) scoped to that action group; the rule can be configured with a recurrence for business hours so notifications are muted only then, while the underlying alert still fires and appears in the Azure Portal/API. This gives continuous monitoring with silent nights, which is exactly the requirement.

Why this answer

It combines a metric alert rule (which continuously evaluates the CPU threshold) with an alert processing rule that suppresses notifications outside business hours. The metric alert rule evaluates every minute by default, meeting the 'continuously evaluated' requirement, while the alert processing rule (formerly action rule) allows you to suppress actions based on a schedule without altering the alert rule itself.

Exam trap

The trap here is that candidates often confuse alert processing rules with action group schedules or diagnostic settings, failing to realize that alert processing rules are the correct mechanism to suppress notifications based on time without altering the alert rule's evaluation frequency.

Why the other options are wrong

A

A log query alert runs on a schedule (e.g., every 5 minutes) and evaluates historical data, not continuously. The requirement for continuous evaluation (real-time) is better met by a metric alert, which monitors metrics in near real-time.

C

This option does not meet the requirement for continuous evaluation of CPU metrics; it relies on logs sent to a storage account, which introduces latency and does not support real-time metric alerting. Additionally, it lacks a mechanism to suppress notifications outside business hours.

D

Option D is wrong because it suggests pausing the workload outside business hours, which is not required by the question. The requirement is to suppress email notifications, not to alter VM operation. Additionally, using a VM extension to pause workloads is an overly complex and inappropriate solution for notification suppression.

When would these options actually be correct?

A

If the question required alerting based on a complex KQL query (e.g., joining multiple tables or calculating custom metrics) and the evaluation frequency could be scheduled (e.g., every 5 minutes), then a log query alert would be appropriate. For example: 'Alert when average CPU exceeds 80% over the last 10 minutes, evaluated every 5 minutes.'

C

A question requiring long-term historical analysis of CPU usage for compliance or capacity planning, where the alert is not time-sensitive and can tolerate delays, and where email delivery is needed only during specific hours via a Logic App.

D

Option D would be correct in a scenario where the requirement is to automatically shut down or pause a non-production VM during off-hours to save costs, and an action group is used to notify administrators of the shutdown. For example: 'A development VM must be automatically stopped outside business hours and send an email notification when stopped.'

Why candidates pick the wrong answer

A

Candidates may think that scheduling the query to run only during business hours achieves the suppression requirement, but this fails the continuous evaluation requirement and does not properly suppress notifications outside hours.

C

Candidates may think that sending logs to a storage account and using a Logic App provides flexibility for custom processing and scheduling, but they overlook that metric alerts are simpler and more appropriate for real-time threshold monitoring.

D

Candidates may choose D because they think suppressing notifications requires modifying the VM's behavior, or they confuse the need to suppress actions with the need to stop the workload itself. The mention of 'pause the workload' might seem like a direct way to avoid high CPU alerts outside hours.

158
MCQmedium

A hub-and-spoke environment uses a DNS server VM in the hub VNet at 10.8.0.4 to resolve internal names such as app01.corp.local. The spoke VNet can reach hub VMs by IP after peering, but name resolution still fails from the spoke. What should the administrator configure so VMs in the spoke use the hub DNS server?

A.Add an inbound NSG rule on the spoke subnet to allow UDP and TCP 53 to 10.8.0.4.
B.Configure the spoke VNet to use 10.8.0.4 as a custom DNS server.
C.Create a service endpoint for Microsoft.Storage on the spoke subnet.
D.Add a user-defined route for 10.8.0.4/32 pointing to the virtual network gateway.
AnswerB

A spoke VNet can inherit DNS behavior from a custom DNS setting on the VNet itself. Once the spoke VNet is configured to use 10.8.0.4, its VMs will send name-resolution queries to the hub DNS server over the peering connection. This is the right fix when direct IP connectivity works but internal names do not resolve.

Why this answer

In Azure, a spoke VNet must explicitly be configured with a custom DNS server address to use a non-default DNS resolver. By setting the spoke VNet's DNS server to 10.8.0.4, all VMs in the spoke will send their DNS queries to that hub VM, resolving internal names like app01.corp.local. Without this configuration, the spoke VNet uses Azure-provided DNS, which cannot resolve custom private DNS zones hosted on the hub VM.

Exam trap

The trap here is that candidates assume VNet peering automatically forwards DNS queries to the hub's DNS server, but peering only provides IP-level connectivity, not DNS configuration; the spoke VNet must be explicitly set to use the custom DNS server address.

Why the other options are wrong

A

The issue is that the spoke VNet is not configured to use the hub DNS server for name resolution; NSG rules control traffic filtering, not DNS server assignment. Since connectivity via IP already works, an NSG rule is unnecessary and does not address the DNS configuration.

C

Service endpoints for Microsoft.Storage are used to secure Azure Storage resources to a VNet, not to configure DNS resolution. They do not affect how VMs resolve internal names like app01.corp.local.

D

A user-defined route for 10.8.0.4/32 pointing to the virtual network gateway would not help because name resolution fails due to the spoke VNet not being configured to use the hub DNS server, not due to routing issues. The spoke VMs can already reach 10.8.0.4 by IP after peering, so routing is fine.

When would these options actually be correct?

A

This option would be correct if the spoke VNet already had the hub DNS server configured, but VMs in the spoke could not reach it due to network security rules blocking DNS traffic (UDP/TCP 53). In that scenario, adding an inbound NSG rule on the spoke subnet to allow traffic to 10.8.0.4 would resolve the connectivity issue.

C

If the question were about securely accessing Azure Storage (e.g., a storage account) from a spoke VNet without using a public IP, configuring a service endpoint for Microsoft.Storage on the spoke subnet would be correct.

D

This option would be correct if the spoke VNet could not reach the hub DNS server by IP due to asymmetric routing or a missing route. For example, if the hub and spoke are connected via a VPN gateway and the spoke needs a specific route to send DNS traffic through the gateway to the hub DNS server.

Why candidates pick the wrong answer

A

Candidates may think that since DNS uses port 53, a firewall or NSG rule is needed to allow the traffic, overlooking that the actual problem is the VNet's DNS server setting, not network security.

C

Candidates may confuse service endpoints with DNS configuration because both involve network connectivity and IP addresses, leading them to think a service endpoint can direct DNS traffic to a specific server.

D

Candidates may think that name resolution failure is caused by network connectivity issues and that adding a route to the DNS server IP will fix it, overlooking that the real problem is the VNet's DNS configuration.

159
MCQmedium

A backend VM must accept TCP 8443 only from the web tier. The subnet NSG already has a deny-all inbound rule at priority 200. The administrator adds an allow rule for the web tier at priority 300, but the connection still fails. What should be changed?

A.Change the allow rule to a lower priority number than 200.
B.Change the allow rule protocol from TCP to Any.
C.Move the VM to a different subnet so the rule can apply.
D.Add a route table entry for TCP 8443 to bypass the NSG.
AnswerA

NSG rules are evaluated in ascending priority order, and the rule with the lowest priority number (highest precedence) is processed first. If the deny-all rule has priority 200 and the allow rule for TCP 8443 has a higher number like 300, the deny rule matches first and blocks the traffic. To permit the web tier, the allow rule must be assigned a priority lower than 200, such as 100, so it is evaluated before the deny-all rule.

Why this answer

Azure Network Security Groups (NSGs) process rules in priority order, with lower numbers evaluated first. The existing deny-all inbound rule at priority 200 is evaluated before the new allow rule at priority 300, so the deny rule blocks the traffic before the allow rule can be considered. To permit TCP 8443 from the web tier, the allow rule must have a priority number lower than 200 (e.g., 100) so it is evaluated first and allows the traffic.

Exam trap

The trap here is that candidates often assume higher priority numbers (like 300) override lower numbers (like 200), but in Azure NSGs, lower priority numbers are evaluated first, so a deny rule with a lower number will block traffic before a higher-numbered allow rule is ever checked.

How to eliminate wrong answers

Option B is wrong because changing the protocol from TCP to Any does not resolve the priority ordering issue; the deny rule at priority 200 would still block all inbound traffic regardless of protocol. Option C is wrong because moving the VM to a different subnet does not change the fact that the subnet's NSG still has a deny-all rule at priority 200 that would block the traffic; the NSG is applied at the subnet level, not per VM. Option D is wrong because route tables control traffic routing (next hop) and cannot bypass NSG rules; NSGs are stateful firewalls that are evaluated independently of routing, and a route table entry cannot override an NSG deny rule.

160
MCQmedium

Based on the exhibit, what should the administrator do to meet the performance requirement without rebuilding the server?

A.Attach an additional data disk and move the application binaries to it.
B.Resize the VM to a larger SKU that provides more vCPU and RAM.
C.Redeploy the VM from a different marketplace image.
D.Place the VM in an availability set to spread processing across hosts.
AnswerB

Resizing a VM is the standard way to increase compute capacity while preserving the existing OS disk and installed applications. The exhibit shows sustained high CPU and memory pressure, so moving to a larger size such as a higher D-series SKU addresses the bottleneck directly. This avoids rebuilding the server and keeps the workload on the same VM configuration with more resources.

Why this answer

Resizing the VM to a larger SKU with more vCPU and RAM directly addresses the performance requirement by providing additional compute and memory resources to the existing server without requiring a rebuild. This is the correct approach because the VM's current SKU is insufficient for the workload, and Azure allows resizing within the same hardware family or to a compatible series, preserving the OS and application state.

Exam trap

The trap here is that candidates confuse performance scaling with high availability or storage optimization, mistakenly choosing to add a data disk or use an availability set when the real need is to increase compute capacity.

Why the other options are wrong

A

Moving application binaries to a data disk does not increase vCPU or RAM, which are the likely bottleneck for performance. The question implies a need for more compute resources, not storage.

C

Redeploying the VM from a different marketplace image would not change the VM's SKU or performance characteristics; it would only replace the OS and software, not address the underlying resource constraints (vCPU/RAM).

D

Placing the VM in an availability set does not increase vCPU or RAM; it only provides high availability by distributing VMs across fault and update domains, which does not address the performance requirement for more compute resources.

When would these options actually be correct?

A

This would be correct if the performance requirement was to reduce I/O latency for application binaries, and the current disk is slow (e.g., HDD) while the new data disk is SSD. The question would specify that the VM has sufficient vCPU/RAM but disk performance is the issue.

C

This option would be correct if the question stated that the current VM image has a known performance bug or missing drivers, and the requirement is to fix the software environment without changing the VM size or rebuilding from scratch.

D

This option would be correct if the question asked how to ensure high availability for the application during Azure host maintenance or failures, without needing to increase performance.

Why candidates pick the wrong answer

A

Candidates may think that adding a disk and moving binaries can improve performance by separating data from OS, but they overlook that the core issue is likely CPU/memory, not disk I/O.

C

Candidates may think that a different marketplace image could provide better performance or newer drivers, confusing software optimization with hardware resource scaling.

D

Candidates may confuse high availability with performance scaling, thinking that spreading the VM across hosts will improve performance by distributing load, but availability sets do not affect resource allocation per VM.

161
MCQmedium

A security team requires all outbound traffic from a subnet to pass through an Azure Firewall at 10.1.0.4, including internet-bound traffic from the VMs. What should the administrator configure?

A.Assign a NAT gateway to the subnet and leave the default routing in place.
B.Create a route table with a 0.0.0.0/0 route to 10.1.0.4 and associate it with the subnet.
C.Enable service endpoints for the subnet so outbound traffic stays private.
D.Deploy a public IP on each VM and use NSG rules to inspect the traffic.
AnswerB

Forced tunneling is implemented with a user-defined route that sends the default route to a virtual appliance. By creating a 0.0.0.0/0 UDR that points to the Azure Firewall’s private IP and associating that route table with the subnet, all outbound traffic is steered through the firewall. This is the standard design when the firewall must inspect internet-bound traffic.

Why this answer

Creating a route table with a default route (0.0.0.0/0) pointing to the Azure Firewall private IP (10.1.0.4) and associating it with the subnet forces all outbound traffic, including internet-bound traffic, to be routed through the firewall. This ensures the firewall can inspect and control all egress traffic as required by the security team.

Exam trap

The trap here is that candidates often confuse NAT gateways or service endpoints as solutions for routing traffic through a firewall, but neither provides the forced routing and inspection required; only a UDR with a default route to the firewall's private IP achieves this.

Why the other options are wrong

A

A NAT gateway provides outbound internet access with source network address translation (SNAT), but it does not route traffic through the Azure Firewall at 10.1.0.4. The requirement is to force all outbound traffic via the firewall for inspection, which requires a custom route (UDR) pointing to the firewall's private IP.

C

Service endpoints do not route traffic through a firewall; they allow direct private access to Azure services, bypassing the firewall. This would not force all outbound traffic through the Azure Firewall at 10.1.0.4.

D

This option does not route traffic through the Azure Firewall; instead, it allows VMs to directly access the internet via their public IPs, bypassing the firewall and failing the requirement.

When would these options actually be correct?

A

A NAT gateway would be correct if the requirement is simply to provide outbound internet connectivity to VMs in a private subnet without needing traffic inspection or forced tunneling. For example, 'VMs in a subnet need to access the internet but must not be directly reachable from the internet; no firewall inspection is required.'

C

When the requirement is to ensure that traffic to a specific Azure service (e.g., Azure Storage or SQL Database) stays within the Azure backbone and does not go over the internet, enabling service endpoints on the subnet would be correct.

D

This would be correct if the requirement was to allow each VM to have its own public IP for direct outbound internet access, with NSG rules controlling inbound/outbound traffic at the network level, without a central firewall.

Why candidates pick the wrong answer

A

Candidates may confuse NAT gateway with a firewall, thinking it can also inspect traffic, or they may assume that default routing plus NAT is sufficient for outbound traffic, overlooking the explicit requirement to route through the firewall.

C

Candidates may confuse service endpoints with forcing traffic through a firewall, thinking that 'keeping traffic private' implies routing through a security appliance, but service endpoints actually bypass the firewall.

D

Candidates may think assigning public IPs and using NSGs provides similar security, but they overlook the need for centralized inspection and routing through the firewall.

162
MCQmedium

Based on the exhibit, web servers can reach a backend VM only after it is added to a specific group. What should the administrator change to allow the traffic to match the existing NSG rule?

A.Add api01's NIC to ASG-Api.
B.Move the deny rule to priority 100.
C.Change the source of the allow rule from ASG-Web to VirtualNetwork.
D.Place api01 in the same subnet as web01.
AnswerA

The NSG rule is already written to permit traffic from ASG-Web to ASG-Api on TCP 8443. The backend NIC is not in the destination ASG, so the allow rule never matches. Adding api01 to ASG-Api makes the existing rule effective without broadening access to the entire subnet.

Why this answer

The exhibit shows that the NSG rule allows traffic from ASG-Web to ASG-Api. Since web01 is in ASG-Web, traffic from web01 to api01 is only permitted if api01 is a member of ASG-Api. Adding api01's NIC to ASG-Api ensures the destination matches the NSG rule, allowing the traffic.

Exam trap

The trap here is that candidates may think subnet placement or rule priority is the issue, but the core concept is that ASG membership must match the rule's destination to allow traffic.

Why the other options are wrong

B

The deny rule at priority 100 would block all traffic before the allow rule is evaluated, preventing the intended traffic from reaching the backend VM. The question requires allowing traffic, not blocking it.

C

Changing the source from ASG-Web to VirtualNetwork would allow traffic from any virtual network resource, not just web servers, which violates the requirement that only web servers should reach the backend VM.

D

Placing api01 in the same subnet as web01 would change its IP address and potentially break existing configurations, but the question states that web servers can reach the backend VM only after it is added to a specific group. The issue is about NSG rule matching based on application security groups, not subnet placement.

When would these options actually be correct?

B

If the question asked to block all traffic from the web servers to the backend VM, moving a deny rule to priority 100 would ensure it is evaluated first and blocks the traffic.

C

This option would be correct if the requirement was to allow traffic from all resources within the virtual network (e.g., for internal management or monitoring) instead of restricting to a specific application group like web servers.

D

This option would be correct if the question described a scenario where the NSG rule allows traffic from a specific subnet (e.g., subnet A) and the backend VM is in a different subnet. Moving the backend VM to the same subnet as the web servers would make it reachable without additional NSG rule changes.

Why candidates pick the wrong answer

B

Candidates may think that increasing the priority of a deny rule ensures it is evaluated before allow rules, but they overlook that the goal is to allow traffic, not deny it.

C

Candidates may think that using 'VirtualNetwork' as source is a broader and simpler approach, overlooking the specific need to limit access to only web servers as per the question's constraint.

D

Candidates may think that placing VMs in the same subnet automatically allows traffic between them, overlooking that NSGs can still block traffic within the same subnet. They might also confuse subnet-level NSG association with application security group membership.

163
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

If the question asked for a single rule (e.g., 'require a cost-center tag') to be applied to all subscriptions, a single Azure Policy definition would be the correct answer.

C

If the question asked for a way to organize multiple subscriptions under a common hierarchy for administrative purposes without applying any governance rules, then creating a management group would be correct.

D

When the question asks for a way to deny specific actions (e.g., 'Deny deletion of resources' or 'Deny creation of VMs without encryption') across all subscriptions, and the rules are about controlling permissions rather than resource configuration.

Why candidates pick the wrong answer

A

Candidates may think a single policy definition can contain multiple rules because they confuse it with an initiative, or they underestimate the need for grouping related policies.

C

Candidates may confuse management groups as a tool for applying governance, but they are only a logical container; policies must be assigned to them to take effect.

D

Candidates may confuse 'deny' permissions with policy enforcement, thinking that a custom role can block non-compliant resources, but RBAC controls access, not resource properties.

164
MCQmedium

A storage account hosts blobs used by a public website. You need to reduce the risk of accidental deletion by developers while allowing updates to existing blobs. What should you configure?

A.Enable blob soft delete.
B.Enable immutable storage for the container.
C.Move the account to premium performance.
D.Enable static website hosting only.
AnswerA

Enabling blob soft delete in the storage account preserves a soft-deleted copy for a configurable retention interval (typically 1 to 365 days) when a blob is deleted. Because it only intercepts delete operations, normal HTTP PUT and overwrite requests from the public website continue to succeed without modification or versioning overhead. This directly meets the requirement to maintain availability for updates while providing rollback capability after accidental deletion.

Why this answer

Blob soft delete protects against accidental deletion by retaining deleted blobs for a specified retention period, allowing recovery. This meets the requirement to reduce risk from developers while still permitting updates to existing blobs, as soft delete only applies to delete operations, not overwrites.

Exam trap

The trap here is that candidates confuse blob soft delete with immutable storage, assuming both prevent deletion, but immutable storage also blocks updates, which violates the requirement to allow modifications to existing blobs.

Why the other options are wrong

B

Immutable storage prevents any modifications or deletions to blobs during the retention period, which conflicts with the requirement to allow updates to existing blobs.

C

Moving the account to premium performance does not address accidental deletion; it only improves latency and throughput for workloads requiring consistent low-latency access, not data protection against deletion.

D

Enabling static website hosting only does not prevent accidental deletion; it merely configures the storage account to serve static content. It provides no protection against blob deletion.

When would these options actually be correct?

B

When the requirement is to prevent deletion or modification of blobs for a specified retention period, such as for regulatory compliance (e.g., SEC 17a-4) or legal hold, and no updates are needed.

C

A question asks: 'You need to ensure low-latency access for frequently accessed blobs in a storage account. What should you configure?' In that case, enabling premium performance (Azure Premium Blob Storage) would be correct.

D

If the question asked how to host a static website (e.g., HTML, CSS, JS) from Azure Storage with a custom domain, enabling static website hosting would be the correct answer.

Why candidates pick the wrong answer

B

Candidates may think immutable storage protects against accidental deletion, but they overlook that it also blocks updates, which is explicitly required in this scenario.

C

Candidates may think premium performance implies better data protection or durability, confusing performance tiers with data management features like soft delete.

D

Candidates may confuse the requirement to reduce deletion risk with the need to configure the storage account for public website access, assuming that hosting configuration inherently includes protection.

165
MCQmedium

An application writes transaction logs to a storage account in a region that supports availability zones. The business wants the account to stay available if one datacenter or zone fails, but it does not need a secondary region replica. Which redundancy option should you choose?

A.LRS, because it keeps three copies within a single datacenter and is enough for any zone failure.
B.ZRS, because it replicates synchronously across zones in the same region and survives a zone outage.
C.GRS, because it adds a geographically replicated secondary region for disaster recovery.
D.RA-GRS, because read access to the secondary region is the best protection against a zone failure.
AnswerB

ZRS keeps data synchronously replicated across multiple availability zones within one region. That design helps the storage account remain available when a zone or datacenter becomes unavailable, which matches the requirement. It avoids the added complexity and cost of geo-replication because a secondary region is not required.

Why this answer

B is correct because Zone-Redundant Storage (ZRS) synchronously replicates data across three Azure availability zones within the same region. This design ensures that if one datacenter or zone fails, the storage account remains available and durable without requiring a secondary region replica, exactly matching the business requirement.

Exam trap

The trap here is that candidates often confuse LRS's three-copy replication within one datacenter as sufficient for zone failures, not realizing that a zone can contain multiple datacenters and LRS does not span zones, while ZRS is specifically designed for zone-level resilience.

Why the other options are wrong

A

LRS replicates data three times within a single datacenter, so it cannot survive a zone failure because an entire zone (which includes multiple datacenters) could be lost.

C

GRS replicates data to a secondary region, but the question explicitly states that a secondary region replica is not needed. The requirement is only to survive a zone failure within the same region, which ZRS handles.

When would these options actually be correct?

A

LRS would be correct if the question specified that the storage account is in a region without availability zones, or if the requirement was to protect against individual disk failures within a single datacenter, with no need for zone-level resilience.

C

Choose GRS when the business requires data durability and availability even during a region-wide disaster, and is willing to pay for geo-redundancy. For example, a financial application that must survive a complete regional outage.

Why candidates pick the wrong answer

A

Candidates may think that three copies in one datacenter provide sufficient redundancy, not realizing that a zone failure can take out the entire datacenter, and LRS does not span zones.

C

Candidates may think that more redundancy (geo-replication) is always better, overlooking the specific requirement that only zone-level failure protection is needed, not regional disaster recovery.

166
Multi-Selecthard

A production Azure VM farm runs customer-facing APIs. Operations wants an automatic notification when the average Percentage CPU on any VM stays above 85 percent for 10 minutes, and the notification must reach both email and SMS recipients. Which two Azure Monitor items must be configured? Select two.

Select 2 answers
A.Metric alert rule
B.Action group
C.Diagnostic setting
D.Workbook
E.Service health alert
AnswersA, B

Metric alert rules evaluate numeric platform metrics and trigger when thresholds are crossed.

Why this answer

A Metric alert rule is correct because it monitors the 'Percentage CPU' metric on Azure VMs and can trigger when the average value exceeds 85% for a duration of 10 minutes. This rule evaluates the metric over a specified time window and fires an alert based on the threshold condition, meeting the requirement for automatic notification based on performance metrics.

Exam trap

The trap here is that candidates often confuse a Metric alert rule with a Diagnostic setting, thinking that streaming metrics to a destination automatically triggers notifications, or they mistakenly select a Service health alert because they associate 'notification' with Azure service health, not VM-level performance.

Why the other options are wrong

C

A diagnostic setting controls collection and routing of resource logs and metrics to destinations like Log Analytics or storage, but it does not define alerting actions (email/SMS). The question requires notification actions, which are configured in an action group, not a diagnostic setting.

D

Workbooks are for creating interactive reports and visualizations from Azure Monitor data, not for configuring notifications. They cannot send alerts to email or SMS.

E

Service health alerts notify about Azure service issues, outages, or planned maintenance, not about VM performance metrics like Percentage CPU. This question requires monitoring VM-level metrics, not Azure platform health.

When would these options actually be correct?

C

A diagnostic setting would be correct if the question asked: 'Which Azure Monitor item must be configured to stream VM metrics to a Log Analytics workspace for long-term analysis?' or 'Which item enables sending platform logs to an Event Hub for integration with a SIEM?'

D

A question asks: 'You need to create a custom dashboard that displays the average CPU usage of all VMs in a resource group over the last 24 hours, with the ability to filter by VM name.' In that scenario, a Workbook would be the correct tool.

E

A question asks: 'You need to be notified when Azure experiences a service outage that affects your virtual machines. Which Azure Monitor item should you configure?' In that scenario, a Service health alert would be correct.

Why candidates pick the wrong answer

C

Candidates may confuse diagnostic settings with alert rules because both involve metrics and can trigger actions, but diagnostic settings only route data; they do not evaluate conditions or send notifications directly.

D

Candidates may confuse Workbooks with alert rules because both are part of Azure Monitor, and Workbooks can display metrics, leading them to think they can also trigger notifications.

E

Candidates may confuse 'service health' with 'health of the VM service' or think it covers all health-related notifications, but it specifically refers to Azure platform health, not VM performance.

167
MCQmedium

Based on the exhibit, the OS disk on a production VM is corrupted, but the VM must stay in place and keep its NIC and data disks. Which restore option should you choose?

A.Restore the VM as a new virtual machine and delete the existing one immediately.
B.Restore the disk, then attach or swap it as needed to repair the existing VM.
C.Use Azure Monitor to roll back the last deployment automatically.
D.Enable a diagnostic setting on the VM so the OS disk will be repaired.
AnswerB

When the VM still exists but one disk is corrupted, restoring the disk is the correct approach. It lets you recover the damaged OS disk from a backup point and then attach or swap it without rebuilding the VM identity, NIC, or data disk layout. This is a common recovery pattern for targeted repair.

Why this answer

When an OS disk is corrupted, you can restore just the disk from a recovery point and then either attach it as a data disk to the existing VM or swap the OS disk. This approach preserves the VM's NIC, data disks, and IP configuration, meeting the requirement to keep the VM in place.

Exam trap

The trap here is that candidates often confuse Azure Monitor with Azure Backup or Site Recovery, assuming monitoring can perform recovery actions, when in fact only backup-based disk restoration can repair a corrupted OS disk while keeping the VM in place.

Why the other options are wrong

A

Restoring the VM as a new virtual machine and deleting the existing one would change the VM's identity, NIC, and data disk attachments, violating the requirement to keep the VM in place with its NIC and data disks.

C

Azure Monitor is a monitoring and diagnostics service, not a backup or restore tool. It cannot roll back deployments or repair corrupted OS disks.

D

Enabling a diagnostic setting on the VM does not repair a corrupted OS disk; it only collects logs and metrics. It cannot restore or fix disk corruption.

When would these options actually be correct?

A

This option would be correct if the question required replacing the VM entirely (e.g., due to severe corruption) and the new VM could be configured with the same NIC and data disks, or if the original VM's resources were to be released immediately after restoration.

C

If a VM deployment fails due to a configuration error and you need to revert to the last successful deployment state, you could use Azure Monitor to trigger a rollback via Azure Automation or a runbook, but this is not a standard restore operation.

D

This option would be correct if the question asked: 'You need to collect boot diagnostics logs to troubleshoot why a VM is not starting. Which action should you take?'

Why candidates pick the wrong answer

A

Candidates may think that creating a new VM from a restore point is the only way to recover, overlooking the ability to restore just the disk and swap it into the existing VM.

C

Candidates may confuse Azure Monitor's diagnostic and alerting capabilities with recovery features, or think it can automatically fix issues like a corrupted disk.

D

Candidates may confuse diagnostic settings with repair capabilities, thinking that enabling diagnostics can automatically fix disk issues.

168
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

A user-assigned managed identity would be correct in a scenario where multiple Azure resources (e.g., VMs, App Services) need to share the same identity to access the same Key Vault secrets, and you want to manage the identity independently from the resource lifecycle.

C

If the VM needs to authenticate to an external service that does not support managed identities (e.g., a third-party API), and the client secret can be securely stored in Azure Key Vault and retrieved at runtime without persisting on the VM, then using a service principal with a secret retrieved from Key Vault would be correct.

D

A question asks how to grant a client application temporary, restricted access to a specific Azure Storage blob or container without exposing the storage account key. In that scenario, using a SAS token in the application code or startup script would be correct.

Why candidates pick the wrong answer

A

Candidates may think a user-assigned identity is more flexible or reusable, but they overlook that the question's specific requirement (no secrets stored on VM) is already satisfied by any managed identity, and the system-assigned identity is simpler for a single VM.

C

Candidates may be familiar with service principals for authentication and think they are required for Key Vault access, not realizing that managed identities provide a simpler, secretless alternative for Azure resources.

D

Candidates may confuse SAS with a secure token or think it can be used generically for any Azure service authentication, not realizing it is specific to Storage.

169
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

B

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

D

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

When would these options actually be correct?

A

A question where the requirement is to allow operators to view resources and their configurations in a resource group without making any changes, and no role management is needed.

B

A question where operators need to manage resources (create, modify, delete) but not manage access, and the scope is a resource group. For example: 'Which role allows a team to deploy and manage VMs and storage accounts in a resource group?'

D

A question that asks which role allows operators to manage resource tags (e.g., add, modify, or delete tags) but not create, modify, or delete the resources themselves. The Tag Contributor role would be correct for that scenario.

Why candidates pick the wrong answer

A

Candidates may think Reader is the most restrictive role and assume it can be combined with other permissions, but it lacks the role management capability needed for granting and removing RBAC access.

B

Candidates may confuse Contributor with a role that can manage both resources and access, or they may think Contributor is the default role for operational tasks without reading the restriction carefully.

D

Candidates may associate 'governance tasks' with both tagging and role management, incorrectly assuming that a role focused on tagging also includes permissions for managing RBAC assignments.

170
MCQeasy

An administrator accidentally deletes a VM backup item from a Recovery Services vault. The company wants a built-in protection feature that helps recover the deleted backup item during the retention window. Which feature is this?

A.Archive tier
B.Availability zones
C.Private endpoint
D.Soft delete
AnswerD

In Azure Backup, soft delete retains a deleted backup item in a recoverable state for 14 days after the delete action is performed on the Recovery Services vault. During this retention window, an administrator can use the Undelete operation to restore the protected VM backup and resume normal protection. This is the intended safety net for accidental deletion, though disabling soft delete forfeits that protection.

Why this answer

Soft delete is a built-in protection feature for Azure Recovery Services vaults that preserves deleted backup data for an additional 14 days (default retention period) after deletion. When a backup item is accidentally deleted, soft delete retains the data in a 'soft deleted' state, allowing administrators to recover it within the retention window before permanent deletion occurs. This feature is enabled by default for new vaults and helps prevent data loss from accidental or malicious deletions.

Exam trap

The trap here is that candidates may confuse soft delete with other data protection features like archive tier or private endpoint, not realizing that soft delete is specifically designed to recover accidentally deleted backup items within the retention window.

Why the other options are wrong

A

Archive tier is a storage tier for long-term retention of backup data, not a feature to recover accidentally deleted backup items within the retention window.

B

Availability zones protect against datacenter-level failures by distributing resources across zones, but they do not provide recovery of accidentally deleted backup items within a Recovery Services vault.

C

Private endpoints provide secure connectivity to the Recovery Services vault over a private IP address, but they do not offer any protection or recovery for accidentally deleted backup items.

When would these options actually be correct?

A

A question asks: 'Which feature reduces backup storage costs for data that is rarely accessed and must be retained for years?' Archive tier would be the correct answer.

B

In a question asking for a feature that ensures high availability and resilience for Azure resources (e.g., VMs) by replicating them across physically separate locations within a region, Availability zones would be the correct answer.

C

An organization requires that all traffic to the Recovery Services vault must traverse a private network and not the public internet to meet compliance requirements. In this scenario, enabling a private endpoint would be the correct answer.

Why candidates pick the wrong answer

A

Candidates might confuse 'archive' with a recovery feature because archiving can involve retrieving deleted data, but in Azure Backup, archive tier is purely for cost optimization, not recovery of deleted items.

B

Candidates may confuse 'availability' with 'recoverability' and assume that zones provide backup protection, not realizing that soft delete is the specific feature for recovering deleted backup items.

C

Candidates may confuse private endpoints with a security or protection feature, assuming that restricting network access could prevent deletion or aid in recovery, but private endpoints do not affect backup item retention or deletion recovery.

171
MCQmedium

An application running on a VM in a subnet must access an Azure Storage account. The security team wants the storage account to accept traffic only from that subnet, but they do not want a private IP address in the VNet and they do not want to change DNS records. What should the administrator configure?

A.Create a private endpoint and a private DNS zone for the storage account.
B.Enable a service endpoint for Microsoft.Storage on the subnet and restrict the storage firewall to that subnet.
C.Allow access only from the VM public IP address.
D.Place the storage account in the same resource group as the VM.
AnswerB

A service endpoint extends the subnet identity to the Azure Storage service without creating a private IP address in the VNet. It also avoids DNS changes because clients continue to use the normal public endpoint name, while the storage firewall can be configured to allow only the selected subnet. This matches the requirement for subnet-only access while keeping the service on its public endpoint architecture.

Why this answer

A service endpoint for Microsoft.Storage allows the subnet to send traffic to the storage account over the Azure backbone network using the storage account's public endpoint, without requiring a private IP address or DNS changes. The storage firewall then restricts access to only that subnet's traffic, meeting the security team's requirements.

Exam trap

The trap here is that candidates often confuse service endpoints with private endpoints, assuming that any restriction to a VNet requires a private IP address, but service endpoints achieve subnet-level restriction using the public endpoint without private IPs or DNS changes.

Why the other options are wrong

A

The question explicitly states the security team does not want a private IP address in the VNet and does not want to change DNS records. A private endpoint assigns a private IP to the storage account within the VNet and requires a private DNS zone to resolve the storage account FQDN to that private IP, which violates both constraints.

C

The security team does not want to change DNS records, and using the VM's public IP address would require the storage account to accept traffic from that public IP, which is not restricted to the subnet and does not leverage Azure's network infrastructure for secure access.

D

Placing the storage account in the same resource group as the VM does not restrict network access; resource groups are logical containers and do not enforce network security.

When would these options actually be correct?

A

This option would be correct if the question required the storage account to be accessible only from a specific VNet using a private IP address, and the candidate was allowed to manage DNS records (e.g., by creating a private DNS zone). For example: 'An application on a VM must access a storage account using a private IP to avoid traversing the internet. The team can update DNS records.

What should they configure?'

C

If the question required restricting access to a storage account from a specific VM with a static public IP, and the security team was okay with using public IP addresses without subnet-level restrictions, then configuring the storage firewall to allow only that VM's public IP would be correct.

D

An administrator needs to apply the same tag to a storage account and a VM for cost tracking, and the question specifies that resources in the same resource group should inherit a policy requiring that tag.

Why candidates pick the wrong answer

A

Candidates may confuse private endpoints with service endpoints, thinking both provide subnet-level access control. They might also overlook the explicit constraints about private IP and DNS changes, focusing only on the requirement to restrict access to a subnet.

C

Candidates may think that restricting by public IP is a straightforward way to limit access, overlooking the requirement for subnet-level restriction and the desire to avoid public IP exposure.

D

Candidates may mistakenly think that same resource group implies same network or security boundary, confusing logical grouping with network segmentation.

172
MCQhard

An analytics platform stores daily export files in Azure Blob Storage. The business wants the storage account to survive a failure of any one availability zone and also keep a replicated copy in a paired region for disaster recovery. No one needs to read from the secondary region unless a disaster recovery event occurs. Which redundancy option should be used?

A.ZRS
B.GRS
C.GZRS
D.RA-GRS
AnswerC

GZRS is designed for workloads that need both zone resilience and geo-replication without requiring read access to the secondary region. It keeps the primary copy spread across zones in the region and replicates that data to a paired region for disaster recovery. That matches the requirement exactly.

Why this answer

C is correct because GZRS (Geo-Zone-Redundant Storage) combines zone-redundant storage (ZRS) within the primary region, ensuring the storage account survives any single availability zone failure, with geo-redundant replication to a paired region for disaster recovery. The secondary region copy is read-only unless a failover is initiated, matching the requirement that no one reads from the secondary region unless a disaster recovery event occurs.

Exam trap

The trap here is that candidates often confuse GZRS with RA-GZRS, assuming that geo-redundant storage always provides read-access to the secondary region, but GZRS does not—only RA-GZRS does, and the question explicitly states no one needs to read from the secondary region unless a disaster recovery event occurs.

Why the other options are wrong

A

ZRS replicates data synchronously across three availability zones within a single region, but it does not provide a copy in a paired region for disaster recovery, which is explicitly required.

B

GRS provides zone-redundant storage only in the primary region, not across availability zones, and replicates to a paired region for disaster recovery. However, it does not survive a failure of any one availability zone because GRS uses LRS in the primary region, which is not zone-redundant.

D

RA-GRS provides read access to the secondary region, but the question states no one needs to read from the secondary region unless a disaster recovery event occurs, so the extra read access is unnecessary and not the best fit.

When would these options actually be correct?

A

ZRS would be correct if the requirement is to survive a failure of any one availability zone within a single region, with no need for cross-region replication or disaster recovery to a paired region.

B

A question where the requirement is to survive a regional disaster (not a zonal failure) and no read access to the secondary region is needed unless a disaster occurs. For example: 'A company needs to protect against a regional outage and does not require read access to the secondary region. Which redundancy option should be used?'

D

A scenario where the business requires both geo-redundancy for disaster recovery and the ability to read data from the secondary region at any time (e.g., for reporting or low-latency reads) would make RA-GRS the correct choice.

Why candidates pick the wrong answer

A

Candidates may confuse ZRS with GZRS because both offer zone-level resilience, but they overlook the additional requirement for a paired region copy for disaster recovery.

B

Candidates may confuse GRS with GZRS, thinking that GRS also provides zone redundancy because it has 'redundant' in the name, or they may overlook the requirement to survive a zonal failure and focus only on the disaster recovery aspect.

D

Candidates may confuse RA-GRS with GZRS, thinking that read-access geo-redundancy is needed for disaster recovery, but the question explicitly says no read access is required in the secondary region unless a disaster occurs.

173
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

This option would be correct if the requirement was to grant read access to all resources under the Corp management group, including Sandbox, or if Sandbox was not under Corp.

C

If the requirement were to grant read access only to a specific application resource group (e.g., for a single app's operations team) and not to other resources in the subscription, assigning Reader at that resource group would be correct.

D

If the requirement was to grant read access only to existing subscriptions without any future subscriptions, or if the subscriptions were not under a management group hierarchy, assigning at each subscription individually would be appropriate.

Why candidates pick the wrong answer

A

Candidates may think assigning at a higher scope (Corp) is more efficient, overlooking that it would include unintended subscriptions like Sandbox.

C

Candidates may think that assigning at a resource group is sufficient and simpler, overlooking the need for broader scope across multiple subscriptions and future resources.

D

Candidates may think that assigning at the subscription level is sufficient and more direct, overlooking the need for inheritance to cover future subscriptions under the management group.

174
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

B

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

D

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

When would these options actually be correct?

A

If the question required only cost tracking and resource organization without separate administration or budgets, and the company wanted to use a single subscription with minimal overhead, then using tags to distinguish environments would be sufficient.

B

If the requirement was only to organize resources with different tags and apply the same policies, but without needing separate budgets or subscription administrators, then using one subscription with separate resource groups under a management group would be sufficient.

D

If the question required applying different policies to production and development environments without needing separate budgets or subscription administrators, and the environments were within the same subscription, then using a management group for production (with a dedicated policy) and a resource group for development (with a different policy) could be a valid approach to enforce distinct access controls.

Why candidates pick the wrong answer

A

Candidates may think tags are a flexible way to organize resources and assume they can be used for access control and billing, but tags lack the isolation and administrative boundaries that subscriptions provide.

B

Candidates may think resource groups provide sufficient separation for environments, overlooking that subscription-level features like billing and admin roles are not isolated at the resource group level.

D

Candidates may confuse management groups and resource groups as interchangeable containers for organizing workloads, or think that placing environments in different container types automatically provides separation of administration and budgets.

175
Multi-Selectmedium

A Windows VM needs a one-time command run immediately after deployment, and a second VM must automatically install an agent and copy configuration files during provisioning. Which two Azure compute features should the administrator use? Select two.

Select 2 answers
A.Run Command
B.Custom Script Extension
C.Azure Monitor agent
D.Azure Policy assignment
E.Azure Bastion
AnswersA, B

Run Command is a native Azure capability that lets you execute a script on a running Windows VM directly via the platform—no inbound RDP/SSH port, no agent-side interactive sign-in, and no need to deploy additional files. It is designed precisely for one-time, on-demand administrative actions (e.g., resetting config, installing a quick patch) and can be invoked from the portal, Azure CLI, or PowerShell, making it the fastest fit for 'run a command immediately'.

Why this answer

Run Command (A) is correct because it allows a one-time command to be executed immediately on a Windows VM after deployment, without requiring any agent or extension. Custom Script Extension (B) is correct because it enables automated installation of an agent and copying of configuration files during VM provisioning by running a script (e.g., PowerShell or Bash) as part of the deployment process.

Exam trap

The trap here is that candidates confuse Azure Monitor agent (a data-collection tool) with the ability to run scripts or install software, or they think Azure Policy can execute commands, when in fact it only audits or enforces configurations.

Why the other options are wrong

C

Azure Monitor agent is for collecting telemetry data from VMs, not for running one-time commands or installing agents during provisioning. The question requires immediate command execution and automated agent installation, which are not capabilities of Azure Monitor agent.

E

Azure Bastion provides secure RDP/SSH connectivity to VMs without public IPs, but it does not execute one-time commands or install agents during provisioning. The question requires features for post-deployment command execution and automated provisioning tasks.

When would these options actually be correct?

C

A question asks: 'You need to collect performance metrics and logs from Azure VMs and send them to a Log Analytics workspace. Which feature should you use?' Azure Monitor agent would be the correct answer.

E

An administrator needs to provide secure, browser-based RDP/SSH access to Azure VMs without exposing public IP addresses. The correct answer would be Azure Bastion when the question asks for a PaaS service that enables secure remote access to VMs in a virtual network.

Why candidates pick the wrong answer

C

Candidates may confuse Azure Monitor agent with the Custom Script Extension because both involve 'agents' and 'extensions', leading them to think it can install software or run scripts during provisioning.

E

Candidates may confuse Azure Bastion's ability to connect to VMs with the ability to run commands or configure VMs, assuming that secure access implies management capabilities.

176
Matchingeasy

Match each blob tier or protection feature to the correct description.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Best for data accessed frequently and kept immediately available.

Best for infrequently accessed data that still remains online.

Stores data offline and requires rehydration before it can be read.

Moves archived data back to an online tier so it can be accessed again.

Helps prevent modification or deletion for a retention period.

Why these pairings

The hot, cool, and archive tiers differ in access frequency and cost structure. Soft delete, immutable storage, and point-in-time restore are protection features that prevent data loss or tampering.

177
Multi-Selectmedium

A developer wants to keep application data separate from the operating system so the VM can be rebuilt without losing files. Before making a risky change, the administrator also wants a fast rollback point for that data disk. Which two actions should the administrator take? Select two.

Select 2 answers
A.Store the application data on a separate managed data disk
B.Create a snapshot of the data disk before the change
C.Use an ephemeral OS disk for the application files
D.Keep the files only on the OS disk and rely on reimaging
E.Delete and recreate the VM from the same image
AnswersA, B

A managed data disk is an independent virtual hard disk (VHD) attached to the VM via the Azure storage subsystem. Because it sits outside the OS disk, it survives VM reimaging, resize, or even deletion of the VM itself, as long as the disk is not deleted. This separation lets you rebuild or patch the OS without touching application data, and you can independently snapshot, back up, or replicate the data disk for disaster recovery. It is the canonical Azure best practice for durability and operational flexibility.

Why this answer

Storing application data on a separate managed data disk decouples the data from the OS disk. This allows the VM to be rebuilt or reimaged without affecting the application files, as the data disk persists independently. Option B is correct because a snapshot of the data disk provides a point-in-time, crash-consistent backup that can be used to quickly restore the data disk to its pre-change state, enabling fast rollback without needing to rebuild the entire VM.

Exam trap

The trap here is that candidates often confuse ephemeral OS disks with persistent data disks, mistakenly thinking ephemeral disks can retain data across VM rebuilds, or they overlook that a snapshot is the only fast rollback mechanism for a data disk, unlike VM reimaging or deletion.

Why the other options are wrong

C

Ephemeral OS disks are temporary and local to the host VM; data is lost on VM deallocation or redeployment, so they cannot provide persistent application data storage or a rollback point.

D

Keeping files only on the OS disk and relying on reimaging does not provide a separate data disk for application data, so rebuilding the VM would lose those files. Reimaging restores the OS disk to its original state, deleting any user data.

E

Deleting and recreating the VM from the same image would lose all application data on the data disk because the data disk is not preserved; the new VM would start with a fresh OS disk and no attached data disk.

When would these options actually be correct?

C

When the question asks for maximizing OS disk read/write performance for temporary workloads (e.g., cache or batch processing) and persistence is not required, an ephemeral OS disk is correct.

D

This option would be correct in a scenario where the question asks for the simplest way to reset a VM to its original state without preserving any application data, and the application data is stored externally (e.g., in Azure Files or a database).

E

This would be correct if the question asked for a way to reset the OS to a known good state without needing to preserve any data, such as when the OS is corrupted and you want to quickly redeploy the same configuration without data persistence.

Why candidates pick the wrong answer

C

Candidates may confuse 'ephemeral' with 'separate' or think it offers fast rebuild capability, not realizing ephemeral disks lack persistence and cannot be snapshotted for rollback.

D

Candidates may think reimaging is a quick rollback method, but they overlook that it only resets the OS disk and does not preserve or separate application data.

E

Candidates may think that recreating the VM from the same image is a fast rollback method, but they overlook that it does not preserve the data disk, which is required for keeping application data separate and recoverable.

178
MCQhard

Traffic from Subnet-App to the internet is being routed through a virtual appliance unexpectedly. You need to identify which route is being applied to the network interface of VM-App01. Which Azure feature should you use?

A.Effective routes for the network interface
B.NSG flow logs
C.Azure Policy compliance
D.The subscription activity log
AnswerA

Effective routes for a network interface are the authoritative, data-plane view of the actual routing decisions applied to a VM's NIC. They combine Azure system routes, user-defined routes, and BGP routes, and display the selected next hop for each address prefix. To confirm that traffic from the app subnet to the internet uses a specific next hop (e.g., Internet, VPN gateway, or NVA), this blade shows the computed route that is actually used, not just a configured route table.

Why this answer

Effective routes for the network interface (NIC) shows the actual routes applied to a specific VM's NIC after evaluating all route tables, virtual network gateway routes, and BGP routes. Since traffic from Subnet-App to the internet is unexpectedly going through a virtual appliance, you need to see which route (e.g., a user-defined route with next hop type VirtualAppliance or VirtualNetworkGateway) is being selected based on the longest prefix match. This tool directly displays the effective next hop for each destination prefix, allowing you to identify the misconfigured route causing the traffic to be redirected.

Exam trap

The trap here is that candidates confuse NSG flow logs (which show traffic filtering) with effective routes (which show routing decisions), leading them to pick NSG flow logs when the question is about path selection rather than security rule evaluation.

Why the other options are wrong

B

NSG flow logs record traffic that passes through a network security group, but they do not show the effective route applied to a network interface. The question asks for the route being applied, not the traffic logs.

C

Azure Policy compliance checks resource configurations against policies, but it does not show the actual applied routes for a network interface. The question asks for identifying which route is being applied, which requires effective routes, not policy compliance.

D

The subscription activity log tracks management-plane operations (e.g., creating or deleting resources), not data-plane routing decisions. It cannot show which route is applied to a specific network interface.

When would these options actually be correct?

B

When you need to analyze network traffic patterns, detect anomalies, or troubleshoot connectivity issues related to NSG rules, such as identifying denied or allowed traffic between VMs.

C

An exam question asks: 'You need to ensure that all network interfaces in a subscription have a specific tag. Which Azure feature should you use to audit compliance?' In that case, Azure Policy compliance would be correct.

D

You need to investigate who deleted a critical virtual network or changed a route table in your subscription. The subscription activity log would show the user, timestamp, and details of the management operation.

Why candidates pick the wrong answer

B

Candidates may confuse NSG flow logs with route analysis because both involve network troubleshooting, but flow logs focus on traffic flows through NSGs, not routing decisions.

C

Candidates may confuse Azure Policy with network troubleshooting tools, thinking policy can enforce or reveal routing behavior, when it only governs resource configurations.

D

Candidates may think the activity log records all network events, including routing, because it is a central auditing tool. They overlook that it only captures control-plane actions, not data-plane traffic paths.

179
MCQmedium

Based on the exhibit, the backup policy must support 30-day recovery for daily backups while keeping 12 months of monthly copies. Which setting should be changed?

A.Increase daily retention from 7 days to 30 days.
B.Increase weekly retention from 4 weeks to 30 weeks.
C.Change the backup schedule to every 30 days.
D.Turn on archive tier for the backup policy.
AnswerA

Increasing daily retention to 30 days directly extends the number of daily restore points kept by the Recovery Services vault backup policy from 7 to 30, thereby meeting the stated requirement to recover from any point within the last 30 days. Daily retention counts calendar-day restore points, and because the backup runs daily, this yields up to 30 distinct recovery points. Monthly retention is independent and remains unchanged, so the long-term 30-year monthly archive is unaffected. This is the only option that both preserves the existing daily schedule and extends the recoverable daily window to exactly 30 days.

Why this answer

The backup policy currently has daily retention set to 7 days, which only keeps daily recovery points for a week. To meet the requirement of 30-day recovery for daily backups, you must increase the daily retention to 30 days. This ensures that each daily backup is retained for 30 days, allowing point-in-time recovery within that window.

Exam trap

The trap here is that candidates may confuse retention duration with backup frequency or assume that archive tier extends retention, when in fact archive tier only changes storage tier without altering the retention count.

Why the other options are wrong

B

The requirement is for 30-day recovery of daily backups, not weekly. Increasing weekly retention to 30 weeks would keep weekly backups for 30 weeks, but daily backups would still only be retained for 7 days, failing the 30-day daily recovery goal.

C

Changing the backup schedule to every 30 days would only create one backup per month, failing the requirement for daily backups with 30-day recovery.

D

Enabling archive tier moves older backups to cold storage but does not change retention durations; the policy still needs daily retention set to 30 days to meet the 30-day recovery requirement.

When would these options actually be correct?

B

If the question required keeping weekly backups for 30 weeks (e.g., for long-term weekly recovery points) while daily retention was already sufficient, then increasing weekly retention to 30 weeks would be correct.

C

This option would be correct if the requirement was to have only monthly backups for long-term retention, such as 'keep one backup per month for 12 months' with no daily recovery needed.

D

If the question required reducing storage costs for long-term backups (e.g., monthly copies retained for 12 months) while keeping them recoverable, enabling archive tier would be correct to move older backups to cheaper storage.

Why candidates pick the wrong answer

B

Candidates may confuse 'weekly retention' with 'daily retention' or think that extending weekly retention covers daily recovery needs, not realizing that daily backups are separate and have their own retention setting.

C

Candidates may confuse backup frequency with retention duration, thinking that setting the schedule to 30 days automatically satisfies the 30-day recovery period.

D

Candidates may think archive tier extends retention or automatically meets recovery point objectives, confusing cost optimization with retention duration settings.

180
MCQmedium

A finance department shares a resource group containing a critical VM and a storage account. Administrators must still be able to update settings and apply patches, but no one should accidentally delete the resources. Which lock should be applied at the resource group level?

A.ReadOnly lock, because it is the most restrictive option.
B.CanNotDelete lock.
C.A policy assignment that denies delete operations.
D.No lock, because RBAC permissions already prevent deletion.
AnswerB

CanNotDelete is the appropriate lock when administrators must continue making changes but want to prevent accidental deletion. Applied at the resource group level, it protects the VM and storage account from removal while allowing normal management operations to continue.

Why this answer

The CanNotDelete lock (option B) is correct because it prevents users from deleting the resource group or its resources, while still allowing read and update operations. This meets the requirement that administrators can update settings and apply patches, but accidental deletion is blocked. ReadOnly locks would block all write operations, including patching, which is too restrictive for this scenario.

Exam trap

The trap here is that candidates often confuse ReadOnly locks with the most restrictive option and assume it is the best choice, without considering that it blocks all write operations, including necessary updates and patching.

Why the other options are wrong

A

A ReadOnly lock prevents all write operations, including updates and patching, which contradicts the requirement that administrators must still be able to update settings and apply patches.

C

A policy assignment denies delete operations but does not prevent modification of settings or patching; however, the question specifically asks for a lock, not a policy. Locks are simpler and apply uniformly, while policies require explicit definition and can be overridden by RBAC if not properly configured.

D

RBAC permissions alone do not prevent accidental deletion; users with Contributor or Owner roles can delete resources. A lock is needed to enforce deletion protection beyond RBAC.

When would these options actually be correct?

A

A ReadOnly lock would be correct if the requirement were to prevent any changes to resources, including configuration updates, while still allowing read access. For example, a compliance scenario where a resource's configuration must remain immutable for auditing purposes.

C

If the question required preventing deletion of specific resource types (e.g., only VMs) while allowing deletion of others, or if the organization needed to enforce additional compliance rules beyond simple deletion prevention, a custom policy assignment would be the correct answer.

D

If the question stated that all users have only Reader role and no one has delete permissions, then no lock would be needed because RBAC already prevents deletion.

Why candidates pick the wrong answer

A

Candidates may choose ReadOnly because it is the most restrictive lock type, assuming that more restriction is better for preventing accidental deletion, without considering that it also blocks necessary administrative updates.

C

Candidates may confuse Azure Policy with resource locks, thinking policies can achieve the same result, or they may over-engineer the solution by choosing a more complex option when a simpler one suffices.

D

Candidates may overestimate RBAC's ability to prevent deletion, assuming that proper role assignments eliminate the need for locks, especially when 'least privilege' is emphasized.

181
MCQeasy

Based on the exhibit, which restore option should the administrator choose?

A.Recreate VM, because it restores the entire virtual machine from the backup point.
B.File recovery, because it restores individual files or folders from the VM backup.
C.Backup policy, because it defines which files are included in the restore operation.
D.Recovery point, because it is the portal action used to mount a deleted file directly.
AnswerB

File recovery is the right choice when only specific files or folders must be restored from an Azure VM backup. The exhibit states that one Excel file was deleted and the rest of the VM should remain unchanged, which matches file-level recovery exactly.

Why this answer

File recovery is the correct option because the administrator needs to restore a specific deleted file from a VM backup without restoring the entire VM. Azure Backup's file-level recovery allows mounting the backup as a drive (via iSCSI) to browse and copy individual files or folders, which directly addresses the requirement.

Exam trap

The trap here is that candidates may confuse 'Recreate VM' (a full restore) with the more granular file-level recovery, assuming that any restore of a deleted file requires rebuilding the entire VM, when in fact Azure Backup provides a direct file recovery option.

Why the other options are wrong

A

The question asks for restoring individual files or folders, not the entire VM. Option A describes recreating the entire VM, which is excessive and not the required restore action.

C

The question asks for a restore option, but 'Backup policy' is a configuration setting that defines backup schedules and retention, not a restore action. It does not perform any restoration of data.

D

In the context of restoring a deleted file from a VM backup, the 'Recovery point' is not an action; it is a point in time from which you restore. The correct action is 'File recovery', which allows mounting the backup to retrieve specific files.

When would these options actually be correct?

A

Option A would be correct if the question specified that the entire VM needs to be restored, such as after a VM deletion or corruption, and the goal is to recover the full virtual machine from a backup point.

C

An administrator needs to modify which files are included in future backups for a VM. The correct action would be to update the backup policy to include or exclude specific file paths or extensions.

D

A question asks: 'Which component of Azure Backup should an administrator select to view available restore points for a VM?' In that case, 'Recovery point' would be correct as it refers to the list of backup snapshots or points from which you can restore.

Why candidates pick the wrong answer

A

Candidates may confuse 'restore entire VM' with the general concept of backup restoration, not realizing the question specifically requires file-level recovery.

C

Candidates may confuse backup policy with restore options because policies can control backup content, leading them to think it also governs restore operations.

D

Candidates may confuse the term 'Recovery point' with the restore action itself, thinking that selecting a recovery point directly performs the file restore, rather than understanding it is just a selection step before choosing a restore method.

182
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

If the question asked for enforcing two controls with a single assignment and no future expansion needed, a policy assignment with multiple rules would be correct.

C

A question asking how to grant a security team read-only access to all resources under a management group for auditing purposes would make a role assignment at the management group scope the correct answer.

D

A question asks: 'An organization wants to prevent accidental deletion of a critical resource group. What should they use?' Resource locks (e.g., CanNotDelete) would be correct.

Why candidates pick the wrong answer

A

Candidates may think a single policy assignment can bundle rules, overlooking that initiatives provide better manageability and scalability for adding controls later.

C

Candidates may confuse role-based access control (RBAC) with Azure Policy, thinking that assigning a role can enforce rules, or they may assume that management group scope automatically applies governance.

D

Candidates may confuse resource locks with policy enforcement, thinking locks can restrict resource creation or configuration, when they only protect existing resources from changes.

183
Multi-Selecthard

A legal team stores scanned contracts in Blob Archive. Auditors will need to open several files next week for about five days and then the documents should return to the lowest practical storage cost. Which two actions should the administrator plan? Select two.

Select 2 answers
A.Download the blobs directly from Archive with a normal read operation.
B.Initiate a rehydration to the Cool tier before the review window.
C.Set the blobs to the Hot tier permanently as soon as the review starts.
D.Move the blobs back to Archive after the review window ends.
E.Change the storage account redundancy to RA-GRS so the files can be read.
AnswersB, D

Rehydrating an archived blob involves changing its access tier from Archive to an online tier such as Cool. Cool tier is the appropriate choice for auditor access because it offers extremely low per-GB storage costs while still making data immediately readable, and the review window is a short, infrequent-access period. Because rehydration from Archive can take up to 15 hours with standard priority, you must initiate it well before the start of the review window to ensure files are online in time. This approach balances retrieval latency and cost, avoiding the higher expense of a Hot-tier rehydration.

Why this answer

Blobs in the Archive tier are offline and cannot be read directly; they must first be rehydrated to a hot or cool tier. Rehydrating to the Cool tier is appropriate for a five-day access window and avoids the higher cost of the Hot tier. After the review, moving the blobs back to Archive (Option D) ensures the lowest practical storage cost for long-term retention.

Exam trap

The trap here is that candidates assume Archive blobs can be read directly (like a normal download) or that changing redundancy (RA-GRS) somehow bypasses the offline nature of Archive, when in fact rehydration is mandatory and redundancy settings only affect replication, not tier accessibility.

Why the other options are wrong

A

Blobs in Archive tier are offline and cannot be read directly; a normal read operation fails. You must first rehydrate the blob to an online tier (e.g., Cool) before downloading.

C

Setting blobs to Hot tier permanently increases costs significantly, as Archive is the cheapest tier for long-term storage. The requirement is to return to the lowest practical storage cost after the review, not to keep them in Hot tier.

E

RA-GRS provides geo-redundant read access, but Archive blobs are offline and cannot be read directly regardless of redundancy. The blobs must first be rehydrated to an online tier.

When would these options actually be correct?

A

If the blobs were stored in the Cool or Hot tier (not Archive), a normal read operation would work. For example, a question where data is in Cool tier and needs to be accessed immediately without rehydration.

C

This option would be correct if the question specified that the blobs need to be accessed frequently and immediately after the review, with no requirement to minimize long-term storage costs. For example, if auditors need ongoing access to the contracts for several months.

E

If the question required ensuring high availability and disaster recovery for frequently accessed data (e.g., Hot tier blobs) with read access from a secondary region, then changing to RA-GRS would be correct.

Why candidates pick the wrong answer

A

Candidates may assume Archive blobs are still readable like other tiers, not realizing Archive is offline and requires rehydration before any read operation.

C

Candidates may think Hot tier provides the fastest access and assume it's necessary for the review, overlooking the cost implications and the ability to rehydrate temporarily to Cool tier.

E

Candidates may confuse redundancy options with access capabilities, thinking RA-GRS allows reading archived blobs, or they overestimate the role of redundancy in making offline data accessible.

184
MCQmedium

You need to redeploy an Azure virtual machine to a new host while keeping the VM configuration and attached disks. Which action should you use in the Azure portal?

A.Resize
B.Redeploy
C.Capture
D.Reapply
AnswerB

Redeploy is the correct Azure VM troubleshooting action when the host itself is unhealthy or experiencing connectivity issues (e.g., RDP/SSH failures, intermittent hangs). The Azure fabric shuts down the VM, moves it to a new physical node within the same region, and then restarts it while preserving the OS disk, data disks, virtual networks, and public/internal IP addresses. This operation is specifically designed to resolve host-level problems without deleting or recreating the VM, making it the proper choice for relocating to a new host.

Why this answer

The Redeploy action moves the VM to a new Azure host node while preserving the VM configuration, attached managed disks, and network resources. This is used to recover from underlying host failures or performance issues without losing the VM's state or data.

Exam trap

The trap here is that candidates confuse 'Redeploy' with 'Reapply' or 'Resize', assuming any action that changes the host qualifies, but only Redeploy explicitly moves the VM to a new host while keeping all configuration and disks intact.

Why the other options are wrong

A

Resize changes the VM's size (e.g., vCPUs, RAM) but does not redeploy it to a new host. It cannot resolve host-level issues or move the VM to different physical hardware.

C

Capture creates an image of the VM, which deallocates and generalizes it, making it unusable for redeployment to a new host while keeping the existing configuration and disks.

D

Reapply is used to reapply the current configuration of the VM, such as extensions and settings, but it does not move the VM to a new host. It only reapplies the existing state without changing the underlying host.

When would these options actually be correct?

A

When the question asks to increase or decrease the VM's performance specifications (e.g., from Standard_D2s_v3 to Standard_D4s_v3) without changing the underlying host or disks.

C

When you need to create a reusable image from a generalized VM to deploy multiple identical VMs, such as for scaling out a web application, you would use Capture.

D

Reapply would be correct when a VM's extensions or configuration are in a failed state and you need to reapply the current configuration without redeploying or restarting the VM, such as after a failed extension installation.

Why candidates pick the wrong answer

A

Candidates may confuse resizing with redeploying, thinking that changing the size forces a host migration, but Azure typically performs resizing on the same host if possible.

C

Candidates may confuse 'capturing' the VM state with 'redeploying' it, thinking that capturing preserves the VM for later use on a new host.

D

Candidates may confuse 'reapply' with 'redeploy' because both involve resetting the VM state, but reapply does not change the host and is used for configuration issues, not for host-level problems.

185
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

This option would be correct if the requirement was to provide read-only access to all resources within the entire subscription, and the contractor's access could be managed individually (e.g., via a separate process for immediate removal).

C

If the contractor needed to deploy and manage resources (e.g., create VMs, modify settings) within the resource group, Contributor at the resource group scope would be correct, and immediate removal could be achieved by removing the user from the group.

D

This option would be correct if the question required granting read-only access to all resources across multiple subscriptions under a management group, and the access should be removed when the user is removed from the contractor group. For example: 'A contractor needs read-only access to all resources in all subscriptions under the Production management group. Access must be removed when the contractor leaves the contractor team.'

Why candidates pick the wrong answer

A

Candidates may think that assigning the Reader role at a higher scope (subscription) is simpler and still provides read-only access, overlooking the need to restrict access to a single resource group. They might also underestimate the importance of using groups for access management.

C

Candidates may confuse Contributor with Reader, or think that a higher privilege is safer for 'immediate removal' scenarios, not realizing that least privilege should still apply.

D

Candidates may think management group scope is appropriate because it covers the resource group indirectly, or they may confuse management groups with resource groups. They might also assume that assigning at a higher scope is more efficient without considering the principle of least privilege.

186
MCQmedium

A web app running in Azure App Service must read blobs from a storage account. The app must authenticate without storing secrets or SAS tokens, and administrators should grant only blob data permissions, not storage management permissions. What should you configure?

A.The storage account access key in an application setting, because it works with any blob operation.
B.A system-assigned managed identity for the app with Storage Blob Data Reader assigned at the storage scope.
C.The Contributor role on the storage account, because it includes both management and data permissions.
D.A service endpoint on the subnet, because service endpoints are used for application authentication.
AnswerB

A managed identity lets the app authenticate to Azure Storage without storing credentials, and the Storage Blob Data Reader role grants only blob data read access. Assigning the role at the storage account scope keeps the permission focused on the intended resource while avoiding management-plane rights. This is the most secure operational pattern for an Azure-hosted app that only needs to read blobs.

Why this answer

A system-assigned managed identity allows the App Service to authenticate to Azure Storage without storing any secrets or SAS tokens. By assigning the Storage Blob Data Reader role at the storage account scope, you grant only the necessary blob read permissions while explicitly excluding any storage management permissions (e.g., creating or deleting storage accounts). This aligns with the principle of least privilege and eliminates credential management overhead.

Exam trap

The trap here is that candidates often confuse RBAC roles like Contributor (which grants management permissions only) with data plane roles like Storage Blob Data Reader, or they mistakenly think service endpoints provide authentication instead of network-level access control.

Why the other options are wrong

A

Using the storage account access key grants full management access to the storage account, not just blob data permissions, and requires storing a secret in the application settings, violating the requirement to avoid storing secrets.

C

The Contributor role grants full management access to the storage account, including the ability to delete or modify the account itself, which violates the requirement to grant only blob data permissions and not storage management permissions.

D

Service endpoints secure traffic to the storage account from a virtual network but do not authenticate the app or grant data permissions; they are a network-level control, not an identity-based authentication mechanism.

When would these options actually be correct?

A

A question where the app needs full access to all storage operations (e.g., create/delete containers) and storing a key in an application setting is acceptable, such as when the app is in a trusted environment and key rotation is handled externally.

C

A question requiring an Azure role that allows both management and data plane operations on a storage account, such as 'You need to grant a user full access to manage the storage account and read/write blobs. What role should you assign?'

D

A question requiring secure access to a storage account from a specific VNet, where the goal is to restrict network access to only trusted subnets, and authentication is handled separately (e.g., via managed identity or keys).

Why candidates pick the wrong answer

A

Candidates may think the access key is a simple, familiar way to authenticate, and overlook that it provides excessive permissions and requires secret storage, which contradicts the 'no secrets' constraint.

C

Candidates may think Contributor is sufficient because it includes read/write access to blobs, but they overlook that it also grants management permissions, which are explicitly disallowed in this scenario.

D

Candidates confuse network security controls (service endpoints) with application authentication methods, assuming that restricting network access is sufficient for secure data access.

187
MCQmedium

A route table contains a user-defined route for 172.16.0.0/16 to a virtual appliance. The ExpressRoute circuit advertises 172.16.10.0/24. A VM in the subnet sends traffic to 172.16.10.20. Which route does Azure use?

A.The user-defined route, because UDRs always beat BGP routes.
B.The BGP route, because it has the more specific prefix length.
C.The system route to the virtual network, because system routes are preferred over learned routes.
D.No route is chosen because Azure does not support overlapping prefixes.
AnswerB

Azure route selection uses longest-prefix match before considering route source precedence. The BGP route for 172.16.10.0/24 is more specific than the UDR for 172.16.0.0/16, so the /24 route is selected for traffic to 172.16.10.20. Source precedence only matters when multiple routes have the same prefix length.

Why this answer

Azure uses the most specific prefix match to determine the next hop. The BGP route for 172.16.10.0/24 has a longer prefix length (24) than the user-defined route for 172.16.0.0/16 (16), so the BGP route is preferred regardless of route source priority. This follows the longest prefix match (LPM) algorithm, which overrides the default preference order of UDRs over BGP routes.

Exam trap

The trap here is that candidates assume UDRs always override BGP routes, but Azure applies longest prefix match first, so a more specific BGP route will be used over a less specific UDR.

Why the other options are wrong

A

Azure uses the most specific prefix match, not a fixed preference for UDRs over BGP routes. Since the BGP route (172.16.10.0/24) is more specific than the UDR (172.16.0.0/16), the BGP route is chosen.

C

System routes are preferred over learned routes only when there is no more specific route; here, the BGP route (172.16.10.0/24) is more specific than the system route (virtual network address space), so Azure uses the most specific match, which is the BGP route.

D

Azure supports overlapping prefixes between UDRs and BGP routes; the more specific prefix (172.16.10.0/24) is used regardless of route source, so a route is chosen.

When would these options actually be correct?

A

This option would be correct if the UDR and BGP route had the same prefix length (e.g., both /24) and the UDR was for a different prefix that still matched the destination. In that case, Azure prefers UDRs over BGP routes for equal prefix lengths.

C

This option would be correct in a scenario where a VM sends traffic to an IP address that falls within the virtual network's address space (e.g., 10.0.0.10 in a VNet with address space 10.0.0.0/16), and there are no more specific user-defined or BGP routes. Azure then uses the system route for virtual network traffic.

D

If the question stated that the UDR and BGP route had the same prefix length (e.g., both /24) and the UDR was preferred over BGP routes by design, then option D would be incorrect; but for D to be correct, Azure would need to reject overlapping prefixes entirely, which it does not.

Why candidates pick the wrong answer

A

Candidates may incorrectly remember a rule that 'UDRs always override BGP routes' without considering the prefix length priority, which is the primary factor in route selection.

C

Candidates may incorrectly remember that system routes are always preferred over learned routes, without understanding that route selection is based on longest prefix match first, and system routes are only preferred when prefix lengths are equal.

D

Candidates may think that overlapping prefixes cause conflicts or that Azure disallows them, confusing overlapping address spaces with route selection behavior.

188
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

This option would be correct if the requirement was to grant read access only to resources within the RG-Finance resource group, and not to any other resources in the subscriptions or management group.

C

If the requirement was to grant Reader access only to existing subscriptions without covering future ones, or if the compliance team only needed access to specific subscriptions rather than all under a management group, assigning at each subscription scope would be appropriate.

D

This option would be correct if the requirement was to grant read access to a single specific resource only, with no need to cover other resources or future ones, and no management group or subscription-level inheritance needed.

Why candidates pick the wrong answer

A

Candidates may think that assigning the role at a resource group level is sufficient because it covers a subset of resources, or they may misunderstand the scope hierarchy and believe that a resource group assignment can propagate to other resource groups.

C

Candidates may think that assigning at each subscription scope is sufficient and simpler, overlooking the need to cover future subscriptions automatically via management group inheritance.

D

Candidates may think assigning at the most granular level is safest or least privileged, not realizing that management group scope provides inheritance to all child subscriptions and resources, including future ones.

189
Matchinghard

During a compliance review, the team must distinguish what each Azure Monitor object can and cannot do. Match each object to its primary operational scope.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Evaluates resource performance data such as CPU, latency, or disk metrics.

Watches subscription-level control-plane events such as deletes or policy changes.

Runs a KQL query against workspace data and alerts on the result.

Exports resource telemetry off the resource for storage or analysis.

Serves as the reusable response target for notifications and automation.

Why these pairings

Metrics collect numeric time-series data; Logs collect text logs for querying; Application Insights monitors web apps; Activity Log records subscription events; Diagnostic Logs capture resource logs; Service Health provides service incident info.

190
MCQmedium

A company is creating a new spoke virtual network that will be peered to an existing hub VNet. The hub uses 10.40.0.0/16, and an on-premises network already uses 10.41.0.0/16. The spoke must support about 120 endpoints now and should allow room for growth. Which address space should you assign to the new spoke VNet?

A.10.40.64.0/25
B.10.42.0.0/24
C.10.41.128.0/24
D.192.168.10.0/26
AnswerB

10.42.0.0/24 is a private RFC1918 range that does not overlap the hub VNet or on-premises addresses, so VNet peering will succeed. With 251 usable Azure IPs, it easily supports the required 120 endpoints and allows subnets to be carved for future workloads. The /24 prefix also provides flexibility to expand without reconfiguring the new spoke.

Why this answer

(10.42.0.0/24) is correct because it provides 256 IP addresses (251 usable) for the spoke, which exceeds the requirement of ~120 endpoints with room for growth, and it does not overlap with the hub VNet (10.40.0.0/16) or the on-premises network (10.41.0.0/16). This ensures successful VNet peering without IP address conflicts.

Exam trap

The trap here is that candidates often overlook the on-premises address space (10.41.0.0/16) and mistakenly choose an overlapping range like 10.41.128.0/24, assuming only the hub VNet's address space must be avoided.

Why the other options are wrong

A

Option A (10.40.64.0/25) overlaps with the hub VNet's address space 10.40.0.0/16, which would cause a peering conflict. Azure requires non-overlapping address spaces for peered VNets.

C

Option C (10.41.128.0/24) overlaps with the on-premises network 10.41.0.0/16, which would cause routing conflicts when peered with the hub VNet.

D

Option D (192.168.10.0/26) provides only 62 usable IP addresses, which is insufficient for the required 120 endpoints plus growth. Additionally, using a private IP range from 192.168.x.x is not necessary and may cause routing conflicts if other networks use that range.

When would these options actually be correct?

A

This option would be correct if the question asked for a subnet within the hub VNet (e.g., 'Which subnet should you create in the hub VNet for a new application tier?') and the hub VNet's address space is 10.40.0.0/16, with no on-premises overlap.

C

This option would be correct if the on-premises network used a different address space (e.g., 10.42.0.0/16) and the hub VNet used 10.40.0.0/16, with no overlap, and the spoke needed a /24 subnet for about 120 endpoints with room for growth.

D

This option would be correct in a scenario where the spoke VNet needs to support fewer than 62 endpoints (e.g., a small test environment) and there is no requirement for future growth, and the hub/on-premises networks use different address spaces that do not overlap with 192.168.10.0/26.

Why candidates pick the wrong answer

A

Candidates may think that using a subset of the hub's address space is acceptable for a spoke, or they may focus on the /25 size being sufficient for 120 endpoints without checking for overlap with the hub.

C

Candidates might choose this because it is a /24 subnet (providing 254 addresses) and they overlook the overlap with the on-premises network, focusing only on avoiding conflict with the hub VNet.

D

Candidates may choose this because 192.168.x.x is a familiar private IP range often used in small networks, and they might overlook the specific endpoint count requirement or assume a /26 subnet is sufficient without calculating the actual number of usable addresses.

191
MCQeasy

A container group runs a one-time import task and should stop after the task completes successfully. Which restart policy should you use?

A.Always
B.OnFailure
C.Never
D.Manual
AnswerC

Never lets the container run once and then stop, which fits a batch or import task that should not restart.

Why this answer

The 'Never' restart policy is correct because the container group is designed to run a one-time import task and should stop after successful completion. In Azure Container Instances (ACI), the 'Never' policy ensures the container runs exactly once and does not restart, regardless of the exit code. This is ideal for batch jobs or import tasks that should not be retried automatically.

Exam trap

The trap here is that candidates often confuse 'OnFailure' with 'Never' for one-time tasks, mistakenly thinking that 'OnFailure' will stop after success, but it actually restarts on failure, which is not the same as stopping unconditionally after completion.

Why the other options are wrong

A

The 'Always' restart policy restarts the container regardless of exit code, which would prevent the one-time import task from stopping after completion. The task should stop after success, so 'Never' is correct.

B

The 'OnFailure' restart policy restarts the container if it exits with a non-zero exit code, but the task is expected to complete successfully (exit code 0), so the container would not restart and would stop. However, the question requires the container to stop after completion, and 'Never' ensures it never restarts regardless of exit code, which is the correct choice for a one-time task.

D

Azure Container Instances does not support a 'Manual' restart policy; the valid policies are Always, OnFailure, and Never. Manual is not a recognized option.

When would these options actually be correct?

A

A container group running a long-running service (e.g., a web server) that must be automatically restarted if it crashes or stops unexpectedly. The question would specify 'continuous service' or 'high availability' requirements.

B

This option would be correct if the question specified that the container group runs a batch job that might fail and should be retried automatically on failure. For example: 'A container group runs a data processing job that should restart only if it fails. Which restart policy should you use?'

D

This option would be correct if the question asked about a different service, such as Azure Container Apps or a custom orchestration tool, where a manual restart policy exists to require explicit user action to restart containers.

Why candidates pick the wrong answer

A

Candidates may think 'Always' ensures reliability, not realizing that for a one-time task, it would cause infinite restarts instead of stopping.

B

Candidates may confuse 'OnFailure' with 'Never' because both can result in the container stopping after completion. They might think 'OnFailure' is appropriate for a task that should stop after success, but they overlook that 'OnFailure' restarts on failure, which is unnecessary for a guaranteed successful task.

D

Candidates may confuse container restart policies with other Azure resource management concepts (e.g., manual scaling or manual start/stop of VMs) and assume a manual policy exists for containers.

192
Multi-Selectmedium

You are designing an Azure virtual network for a three-tier application. The frontend, application, and database tiers each require their own subnet. You need to ensure that the frontend tier can communicate with the application tier, but the database tier must be isolated from direct inbound traffic from the internet. Which three of the following actions should you include in your design? (Choose three.)

Select 3 answers
.Assign a network security group (NSG) to the database subnet that denies all inbound traffic from the internet.
.Create a single virtual network with three subnets: frontend, application, and database.
.Configure a virtual network peering to connect the frontend and database subnets.
.Use Azure Firewall to inspect traffic between the frontend and application tiers.
.Route traffic from the application tier to the database tier using a user-defined route (UDR) pointing to the Azure Firewall.
.Place all three tiers in the same virtual network using separate subnets.

Why this answer

Assigning a network security group (NSG) to the database subnet that denies all inbound traffic from the internet is correct because NSGs act as a distributed, stateful firewall at the subnet or NIC level. By default, NSGs allow all inbound traffic from within the virtual network, so you must explicitly add a deny rule for internet traffic (source 'Internet') to isolate the database tier. This ensures the database subnet is protected from direct inbound internet traffic while still allowing traffic from the application tier via the default allow rule for virtual network traffic.

Exam trap

The trap here is that candidates often think they need to create separate virtual networks or use complex routing/firewall rules for isolation, when in fact a single VNet with subnets and an NSG on the database subnet is sufficient to meet the requirement of isolating the database from the internet while allowing frontend-to-application communication.

193
MCQeasy

Based on the exhibit, what should the administrator add to send an email and SMS notification?

A.An action group with email and SMS receivers.
B.A Log Analytics workspace connected to the virtual machine.
C.A backup recovery point for the virtual machine.
D.A private endpoint for the virtual machine.
AnswerA

Action groups are the Azure Monitor component that define the notification delivery path for alert rules. To send email and SMS messages when a metric alert fires, an action group must be created with those receiver types and linked to the rule. Without an action group, the alert can only be viewed in the portal or API but cannot proactively contact an administrator. Adding email and SMS receivers gives the alert the required response mechanism.

Why this answer

To send email and SMS notifications from an Azure Monitor alert, you must configure an action group. An action group defines the notification channels (e.g., email, SMS, webhook) and their respective receivers. When the alert rule triggers, Azure Monitor invokes the action group to deliver the notifications.

Without an action group, the alert rule has no mechanism to send email or SMS.

Exam trap

The trap here is that candidates may confuse a Log Analytics workspace (which can trigger alerts based on log queries) with the actual notification delivery mechanism, forgetting that an action group is required to define how and where the alert notification is sent.

Why the other options are wrong

B

A Log Analytics workspace is used for collecting and analyzing diagnostic logs and metrics, not for sending email or SMS notifications. The question specifically asks about sending notifications, which requires an action group.

C

The question asks about sending email and SMS notifications, which requires an action group. A backup recovery point is used for restoring virtual machine data, not for configuring notifications.

D

A private endpoint is used to securely connect to Azure services over a private IP address, not to send email or SMS notifications. It does not provide notification capabilities.

When would these options actually be correct?

B

This option would be correct if the question asked: 'What should the administrator add to collect and analyze performance metrics and logs from the virtual machine?' In that scenario, connecting a Log Analytics workspace is the appropriate solution.

C

This option would be correct in a question like: 'An administrator needs to restore a virtual machine to a previous state. What should they use?' In that context, a backup recovery point is the correct resource.

D

This option would be correct in a question asking how to ensure that traffic to a virtual machine from a specific Azure service (e.g., Storage Account) stays within the Microsoft backbone network and does not traverse the public internet, enhancing security.

Why candidates pick the wrong answer

B

Candidates may confuse monitoring (Log Analytics) with alerting (action groups), or think that Log Analytics can directly send notifications, when in fact it only provides data for alerts that then trigger action groups.

C

Candidates might confuse backup recovery points with alerting or notification mechanisms, or think that backup-related resources can trigger notifications.

D

Candidates may confuse private endpoints with notification delivery mechanisms, or think that private endpoints can be used to send alerts via private network channels.

194
MCQhard

Users on the internet cannot reach an HTTPS application hosted on VM-Web01. The VM has a public IP address, the application is listening on TCP port 443, and the guest OS firewall allows the traffic. What is the most likely Azure-side cause?

A.The NSG blocks inbound TCP 443
B.The VM uses Premium SSD
C.Azure Backup is not enabled
D.The storage account uses GRS
AnswerA

Network Security Groups (NSGs) filter inbound and outbound traffic at the subnet or network interface level using priority-ordered allow/deny rules. HTTPS traffic uses TCP port 443, so if the NSG attached to the VM's subnet or NIC has no explicit rule allowing inbound TCP 443, the default-deny behavior of the NSG will silently drop those connection attempts. Even if the VM itself is healthy and listening on port 443, the NSG acts as a stateful firewall that controls what traffic can even reach the VM's network stack. An explicit deny rule or missing allow rule for TCP 443 is therefore the most direct and common cause of internet users being unable to reach an HTTPS application.

Why this answer

The most likely Azure-side cause is that a Network Security Group (NSG) associated with the VM's subnet or NIC is blocking inbound TCP port 443. Even if the VM has a public IP, the application is listening, and the guest OS firewall allows traffic, an NSG rule denying inbound HTTPS traffic will prevent external users from reaching the application. NSGs act as a distributed firewall filtering traffic at the Azure network layer before it reaches the VM.

Exam trap

The trap here is that candidates often focus on the VM's guest OS firewall or public IP configuration, overlooking the NSG as the first line of defense in Azure's network security model.

Why the other options are wrong

B

The VM uses Premium SSD affects disk performance and cost, not network connectivity to the application. It does not block inbound traffic on TCP 443.

C

Azure Backup being not enabled does not affect network connectivity to the VM; it is a data protection feature unrelated to inbound traffic.

D

Storage account replication type (GRS) affects data redundancy and disaster recovery, not network connectivity to a VM. It has no impact on inbound HTTPS traffic.

When would these options actually be correct?

B

In a question about why a VM's application is slow or has high latency, and the VM uses Standard HDD, upgrading to Premium SSD could be the correct answer to improve disk I/O performance.

C

In a question asking why a VM's data is not recoverable after accidental deletion, the correct answer could be that Azure Backup is not enabled, as backups are required for point-in-time restoration.

D

In a question about data durability or disaster recovery for a storage account, GRS would be correct if the scenario requires geo-redundant replication to protect against regional outages.

Why candidates pick the wrong answer

B

Candidates may confuse storage performance with network performance, or think that Premium SSD implies better overall performance including networking.

C

Candidates may confuse backup with high availability or think that backup services are required for basic network operations, leading them to select this option when troubleshooting connectivity.

D

Candidates may confuse storage account settings with VM networking, or think that any Azure service configuration could affect connectivity, leading them to select a plausible-sounding option without understanding the layers.

195
MCQhard

You need to allow a partner application to upload files to a blob container for the next 24 hours. The partner must not receive the storage account key. What should you provide?

A.The storage account access key
B.A shared access signature (SAS)
C.The connection string with the account key
D.A Recovery Services vault
AnswerB

A shared access signature (SAS) is the correct mechanism because it delegates time-limited, container-scoped permissions—such as write or create—to a partner application without exposing the storage account's key. You can generate a service SAS or a user delegation SAS optionally backed by a stored access policy, which lets you revoke access centrally and restrict the app to a single blob container while preserving least privilege.

Why this answer

A shared access signature (SAS) provides delegated, time-limited access to a specific Azure Storage resource (like a blob container) without exposing the storage account key. By generating a SAS token with write permissions and a 24-hour expiry, you grant the partner application the ability to upload files while maintaining security and control over the access window.

Exam trap

The trap here is that candidates often confuse a SAS with a connection string or access key, mistakenly thinking that any shared credential will work, but the exam specifically tests the ability to grant time-limited, scoped access without exposing the account key.

Why the other options are wrong

A

The storage account access key provides full administrative access to the storage account, including all operations on all services. The question explicitly requires that the partner must not receive the storage account key, so providing the key violates the security constraint.

C

The connection string with the account key includes the storage account key, which violates the requirement that the partner must not receive the storage account key.

D

A Recovery Services vault is used for Azure Backup and disaster recovery, not for granting temporary access to blob storage. It does not provide any mechanism for uploading files to a blob container.

When would these options actually be correct?

A

If the question asked for a method to grant a partner full, unrestricted access to a storage account (e.g., for administrative tasks) and there was no requirement to limit permissions or avoid sharing the key, then providing the storage account access key would be correct.

C

If the question required granting full, permanent access to the storage account (e.g., for a trusted internal application) and did not restrict sharing the account key, providing the connection string with the account key would be appropriate.

D

You need to back up on-premises servers or Azure VMs to Azure. A Recovery Services vault would be the correct resource to create and configure for storing backup data and managing recovery points.

Why candidates pick the wrong answer

A

Candidates may think that the access key is the simplest way to grant access to a storage account, overlooking the security requirement to avoid sharing the key and the need for time-limited, scoped permissions.

C

Candidates may think a connection string is a secure way to grant access without realizing it exposes the account key, or they may confuse connection strings with SAS tokens.

D

Candidates may confuse 'vault' with a secure storage location and assume it can be used to grant access to storage, or they may misassociate it with Azure Storage security features.

196
Drag & Dropmedium

Order the steps to configure Azure AD Connect for hybrid identity.

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

Install, choose sync method, connect to Azure AD, filter domains, then finalize.

197
MCQmedium

A team needs to run a Linux container for 15 to 20 minutes at a time, triggered by an external system. They do not want to manage servers, clusters, or a web framework. Which Azure service is the best fit?

A.Azure Container Instances
B.Azure App Service
C.Azure Kubernetes Service
D.A virtual machine
AnswerA

Azure Container Instances is the best fit for short-lived container execution without managing servers or a cluster. It is well suited for event-driven or scheduled jobs that run for a limited time and then exit, which matches the requirement to process work for only 15 to 20 minutes.

Why this answer

Azure Container Instances (ACI) is the best fit because it allows you to run a container directly in Azure without managing any underlying servers or orchestrators. The service is designed for short-lived, burst workloads (like 15–20 minutes) and can be triggered on-demand via an external system (e.g., HTTP request, Azure Logic Apps, or SDK). ACI automatically starts the container, runs it, and then stops and deallocates resources when the task completes, matching the exact requirement of no server, cluster, or web framework management.

Exam trap

The trap here is that candidates often choose Azure Kubernetes Service (AKS) because they associate containers with Kubernetes, overlooking that ACI is the simpler, serverless option for short-lived tasks without cluster management.

Why the other options are wrong

B

Azure App Service requires managing a web framework and is designed for continuous web applications, not short-lived, triggered container runs. It also incurs costs for idle time, unlike the per-second billing of Container Instances.

C

Azure Kubernetes Service (AKS) requires managing a cluster and is overkill for a single container running for 15-20 minutes. The team wants to avoid managing servers, clusters, or a web framework, and AKS involves cluster management.

D

The team wants to avoid managing servers, but a virtual machine requires full OS management, patching, and scaling. It also doesn't provide the container-native, ephemeral execution model needed for short-lived tasks.

When would these options actually be correct?

B

A team needs to deploy a web application that auto-scales based on HTTP traffic, with built-in load balancing and SSL, without managing the underlying infrastructure. They plan to run it continuously, not for short bursts.

C

A question requiring orchestration of multiple containers, scaling, and complex microservices architectures, where the team is willing to manage a Kubernetes cluster for production-grade container orchestration.

D

A virtual machine would be correct if the question required running a legacy application that cannot be containerized, or if the team needed full control over the OS, custom kernel modules, or persistent state that containers don't support.

Why candidates pick the wrong answer

B

Candidates may think App Service supports containers and is simpler than managing VMs, overlooking that it's optimized for persistent web apps, not ephemeral tasks triggered by external systems.

C

Candidates may think Kubernetes is the standard for containers and overlook that AKS requires cluster management, which contradicts the 'no management' requirement.

D

Candidates may think a VM is a simple, familiar option for running any workload, overlooking the 'no server management' constraint and the container-specific requirements.

198
MCQeasy

A team manages many application VMs and backend VMs. The VM IP addresses change whenever they are rebuilt, but the same traffic rule must always allow the app tier to reach the backend tier on TCP 8443. What should the administrator use in the NSG rule?

A.Static private IP addresses for each virtual machine.
B.Application Security Groups for the app and backend VMs.
C.A user-defined route between the app and backend subnets.
D.An availability set for each tier.
AnswerB

Application Security Groups (ASGs) provide a logical network-security boundary: you associate each VM's NIC with an ASG representing its tier, then create NSG rules that reference those ASGs as source and destination. When a VM is rebuilt, its new private IP automatically remains in the same ASG, so the existing NSG rule stays valid without any IP-based rule edits. This removes the operational burden of tracking per-VM IPs while still enforcing controlled traffic between app and backend tiers.

Why this answer

Application Security Groups (ASGs) allow you to group VMs logically and reference them directly in NSG rules without relying on static IP addresses. Since the VM IPs change on rebuild, ASGs ensure the NSG rule for TCP 8443 always applies to the correct app and backend tiers, regardless of IP changes.

Exam trap

The trap here is that candidates often default to static IPs (Option A) for consistency, overlooking that ASGs provide a dynamic, IP-agnostic solution that directly addresses the rebuild scenario.

Why the other options are wrong

A

Static private IP addresses ensure IPs don't change, but they don't simplify NSG rule management when many VMs are involved; each VM would still need an individual rule or a separate NSG, making it less scalable than using Application Security Groups.

C

User-defined routes (UDRs) control network traffic flow between subnets or to virtual appliances, not traffic filtering based on application tiers. The question requires allowing traffic on a specific port (TCP 8443) between dynamic IP groups, which is a job for NSG rules with Application Security Groups, not routing.

D

An availability set ensures high availability by distributing VMs across fault domains, but it does not control network traffic rules or adapt to changing IP addresses. It cannot be used in an NSG rule to allow traffic based on VM membership.

When would these options actually be correct?

A

If the question required a specific VM to always have the same IP for direct connectivity or DNS mapping, and the NSG rule could reference that single IP, then assigning a static private IP would be correct. For example, a database VM that must be reached by a fixed IP from on-premises.

C

A UDR would be correct if the question asked to force traffic between the app and backend subnets through a firewall or network virtual appliance (NVA) for inspection, or to override Azure's default routing to send traffic to a hub network.

D

An availability set would be correct in a question about ensuring that VMs in a tier are placed on different physical hardware to avoid a single point of failure, such as: 'You need to guarantee that at least one VM in each tier remains available during planned maintenance. What should you configure?'

Why candidates pick the wrong answer

A

Candidates may think that fixing IP addresses will allow NSG rules to remain valid after VM rebuilds, overlooking that Application Security Groups provide a more dynamic and manageable solution for grouping VMs by function.

C

Candidates may confuse routing (UDR) with filtering (NSG), thinking that directing traffic between subnets inherently controls access, or they may overcomplicate the solution by assuming a route is needed when the default route already allows subnet-to-subnet communication.

D

Candidates may confuse availability sets with grouping mechanisms that can be referenced in NSG rules, or think that placing VMs in the same set somehow enables network filtering based on that grouping.

199
MCQmedium

A finance team stores application blobs in an Azure Storage account. The data must remain available if a single availability zone in the region is lost, and the team does not need automatic read access from another region. Which redundancy option best meets the requirement?

A.Locally redundant storage (LRS), which keeps three copies in one datacenter only.
B.Zone-redundant storage (ZRS), which replicates data across availability zones in the same region.
C.Geo-redundant storage (GRS), which replicates data to a paired region and supports failover.
D.Read-access geo-redundant storage (RA-GRS), which allows reads from the secondary region.
AnswerB

ZRS stores multiple copies of the data across availability zones within one region, so the storage account can remain available if one zone is lost. This matches the requirement for zone failure resiliency without introducing cross-region read access or the extra complexity of geo-failover. It is the least expansive redundancy option that still provides protection against a zone outage.

Why this answer

Zone-redundant storage (ZRS) replicates your data synchronously across three Azure availability zones within the primary region. This ensures that if a single zone fails, the data remains available and durable without requiring any manual intervention or failover, meeting the requirement of no automatic read access from another region.

Exam trap

The trap here is that candidates often confuse 'availability within a region' with 'disaster recovery across regions,' leading them to choose GRS or RA-GRS when the requirement is only to survive a single availability zone failure, not a full regional outage.

Why the other options are wrong

C

GRS replicates data to a paired region, which provides durability across regions but does not protect against a single availability zone failure within the primary region; it also incurs higher cost and latency than needed.

D

RA-GRS provides read access to a secondary region, but the requirement states no automatic read access from another region is needed. Additionally, RA-GRS does not protect against a single availability zone loss within the primary region; it only protects against region-level failures.

When would these options actually be correct?

C

A company requires data to survive a regional disaster (e.g., entire region outage) and is willing to fail over manually or automatically to a secondary region. They do not need immediate read access from the secondary region.

D

A company needs to ensure data is readable even if the primary region becomes unavailable, and they require automatic failover for read operations. For example, a global application that must serve read requests from a secondary region during a primary region outage.

Why candidates pick the wrong answer

C

Candidates may confuse 'zone failure' with 'regional failure' and think GRS offers zone-level protection, or they may over-specify redundancy without considering cost and simplicity.

D

Candidates may think RA-GRS offers better availability than ZRS because it includes geo-replication, but they overlook the explicit requirement that no automatic read access from another region is needed, making RA-GRS overkill and not aligned with the question's constraints.

200
MCQmedium

A user deleted one Excel file from a Windows Server VM that is protected by Azure Backup. The VM must keep running, and the administrator must restore only that file as quickly as possible. What should the administrator do?

A.Restore the entire virtual machine from the most recent recovery point.
B.Use File Recovery from the Recovery Services vault, mount the recovery point, and copy back the deleted file.
C.Fail over the VM by using Azure Site Recovery and then copy the file from the replica.
D.Create a snapshot of the VM disk and restore the spreadsheet from the snapshot.
AnswerB

File Recovery is designed for this exact scenario. It mounts a backup recovery point so the administrator can browse the contents and copy back only the missing file, while the production VM continues running without a full restore.

Why this answer

Azure Backup for Azure VMs supports file-level recovery from recovery points without restoring the entire VM. The File Recovery feature mounts the recovery point as an iSCSI target on the VM, allowing the administrator to browse and copy the deleted Excel file directly. This is the fastest method because it avoids the overhead of a full VM restore or snapshot management.

Exam trap

The trap here is that candidates may assume a full VM restore is required for any file recovery, overlooking the Azure Backup File Recovery feature which provides granular, in-place restoration without disrupting the running VM.

Why the other options are wrong

A

Restoring the entire VM from a recovery point is much slower than file-level recovery and would cause downtime, which contradicts the requirement to keep the VM running and restore only the deleted file as quickly as possible.

C

Azure Site Recovery is designed for disaster recovery and failover, not for granular file-level restore from backup. Failing over the VM would cause downtime and is much slower than using File Recovery.

D

Creating a snapshot of the VM disk and restoring the spreadsheet from it is slower and more complex than using File Recovery, as it requires stopping the VM or detaching the disk, and does not allow direct file-level restore from Azure Backup snapshots.

When would these options actually be correct?

A

This option would be correct if the question stated that the entire VM was corrupted or unavailable, and the administrator needed to restore the full VM to a working state, with no requirement to keep the current VM running.

C

If the question required recovering an entire VM after a regional outage with minimal data loss, and the goal was to quickly bring the VM online in another region, then failing over using Azure Site Recovery would be correct.

D

This option would be correct if the question asked for a method to restore a file from a VM that is NOT protected by Azure Backup, and the administrator needs a quick, point-in-time copy of the entire disk without impacting the running VM (e.g., using Azure Backup's application-consistent snapshots or manual snapshots).

Why candidates pick the wrong answer

A

Candidates may think that restoring the entire VM is the only way to recover the file, not realizing that Azure Backup supports file-level recovery for Windows VMs, which is faster and less disruptive.

C

Candidates may confuse Azure Backup with Azure Site Recovery, or think that failover is a valid method to access a previous version of a file, not realizing it's intended for disaster recovery scenarios.

D

Candidates may think snapshots are the fastest way to recover a file because they are familiar with taking snapshots for quick rollbacks, but they overlook that Azure Backup's File Recovery is specifically designed for instant file-level restore without disk manipulation.

201
MCQeasy

An operations team must deploy 20 identical application VMs every sprint from source control and wants the deployment definition to be readable and repeatable. Which approach should they use?

A.Manually create each VM in the Azure portal
B.Use a Bicep template stored in source control
C.Capture a screenshot of the portal settings for future reference
D.Use Azure Policy to create the VMs automatically
AnswerB

A Bicep template is a declarative infrastructure-as-code file that defines the full VM topology—including NICs, disks, and network settings—in a repeatable, idempotent way. Storing it in source control enables versioned change history, pull-request review, and automated deployment via CI/CD, ensuring all 20 VMs are provisioned identically and can be redeployed consistently. This approach also minimizes configuration drift compared to manual portal steps.

Why this answer

B is correct because Bicep is a domain-specific language (DSL) for deploying Azure resources declaratively. Storing a Bicep template in source control ensures the deployment definition is readable (using concise syntax) and repeatable (via idempotent deployments), meeting the team's requirement for 20 identical VMs every sprint.

Exam trap

The trap here is that candidates may confuse Azure Policy with a deployment tool, but Azure Policy only audits or enforces rules (e.g., requiring a specific tag) and cannot provision resources like VMs, whereas Bicep is designed specifically for declarative infrastructure deployment.

Why the other options are wrong

A

Manually creating each VM in the Azure portal is not repeatable or scalable for 20 identical VMs every sprint, and it cannot be stored in source control for versioning and automation.

C

Capturing a screenshot of portal settings does not provide a machine-readable, repeatable deployment definition; it lacks automation and version control, making it unsuitable for deploying 20 identical VMs every sprint.

D

Azure Policy is used to enforce compliance rules and audit configurations, not to deploy resources. It cannot create VMs automatically; it only evaluates or remediates existing resources.

When would these options actually be correct?

A

This option would be correct if the question asked for a one-time deployment of a single VM for testing purposes, where the team needs to quickly evaluate portal features without automation requirements.

C

If the question asked for a method to document manual configuration steps for a one-time deployment where automation is not required, a screenshot could serve as a visual reference for recreating settings.

D

A question asks: 'You need to ensure that all VMs in a subscription have a specific tag and are located in allowed regions. Which approach should you use?' In that scenario, Azure Policy would be correct to enforce those rules.

Why candidates pick the wrong answer

A

Candidates may think manual creation is straightforward and familiar, underestimating the need for repeatability and source control integration in a DevOps scenario.

C

Candidates may think a screenshot is a quick way to document settings without learning infrastructure-as-code tools, underestimating the need for repeatability and automation in DevOps workflows.

D

Candidates may think Azure Policy can automate deployment because it can apply configurations automatically, but it lacks the capability to provision new resources like VMs.

202
MCQeasy

A development team needs to run a Linux container for about 12 minutes each time a request is received. The team does not want to manage a server, cluster, or virtual machine. Which Azure service should the administrator use?

A.Azure Kubernetes Service
B.Azure Container Instances
C.Azure Virtual Machines
D.Azure App Service
AnswerB

Azure Container Instances (ACI) is the correct choice because it provisions a Linux container directly on Azure infrastructure without requiring you to manage any underlying servers, orchestrators, or virtual machines. For a short-lived task running about 12 hours, ACI offers per-second billing, instant startup, and a simple deployment model—you just specify the container image, resource limits, and restart policy. The service abstracts all infrastructure concerns, so the development team can focus solely on the containerized application, making it the most operationally lightweight option here.

Why this answer

Azure Container Instances (ACI) is the correct choice because it allows the team to run a Linux container directly in Azure without managing any underlying infrastructure, such as servers, clusters, or virtual machines. ACI is ideal for short-lived, event-driven workloads like this 12-minute request-based container, as it supports rapid startup and automatic shutdown, aligning with the 'serverless' requirement.

Exam trap

The trap here is that candidates often choose Azure Kubernetes Service (AKS) because they associate containers with Kubernetes, but the question explicitly prohibits managing a cluster, making ACI the only serverless container option that meets the 'no management' requirement.

Why the other options are wrong

A

Azure Kubernetes Service (AKS) requires managing a cluster, even if serverless, and is overkill for a 12-minute container run. The team wants no server, cluster, or VM management, which AKS does not provide.

C

Azure Virtual Machines require managing a server, cluster, or VM, which contradicts the requirement to not manage any infrastructure. The team wants a serverless container solution, not a VM-based one.

D

Azure App Service is designed for hosting web applications, APIs, and mobile backends, not for running short-lived containers on demand without managing infrastructure. It requires an App Service Plan and is not optimized for ephemeral container execution triggered by requests.

When would these options actually be correct?

A

A question where the team needs to orchestrate multiple containers, handle scaling, and manage complex deployments over time, and is willing to manage a Kubernetes cluster (or use a managed cluster). For example: 'A team needs to deploy a microservices application with auto-scaling and rolling updates. Which service should they use?'

C

A question requiring persistent state, custom OS configurations, or legacy applications that must run on a full OS, with no requirement for serverless or container-only deployment. For example: 'A company needs to run a legacy Windows application that requires full OS access and cannot be containerized.'

D

If the question required hosting a long-running web application with built-in scaling, load balancing, and CI/CD support, and the team was willing to manage an App Service Plan (which abstracts VMs but still requires configuration), Azure App Service would be the correct choice.

Why candidates pick the wrong answer

A

Candidates may think AKS is serverless (due to Virtual Nodes) or assume containers always require orchestration, overlooking that Azure Container Instances is simpler for single-container, short-lived tasks.

C

Candidates may associate running containers with VMs, not realizing that Azure Container Instances provides a serverless container runtime without VM management.

D

Candidates may think App Service supports containers (which it does via Web App for Containers) and assume it can run any container workload, overlooking that it is not designed for short-lived, request-triggered containers without persistent hosting.

203
MCQeasy

Based on the exhibit, a metric alert already exists for VM01, but the on-call team never receives an email when CPU exceeds 80% for 5 minutes. What should you configure to deliver the notification?

A.Create a diagnostic setting on VM01 to export metrics to Log Analytics.
B.Add an action group to the alert rule and configure email delivery.
C.Assign the Reader role to the on-call team so they can view the alert.
D.Create a resource lock on VM01 to prevent accidental changes.
AnswerB

Action groups are the essential mechanism for alert notification delivery in Azure Monitor. When an alert rule fires, it invokes its configured action group, which can include email, SMS, voice, webhook, ITSM, and Automation runbook actions. To notify the on-call team via email, you must attach an action group configured with the appropriate email address or addresses to the existing alert rule; without this step, no notification is sent.

Why this answer

The alert rule exists, but no notification action is configured. An action group defines how to notify administrators (e.g., email, SMS, webhook). Adding an action group with an email action to the existing alert rule will deliver the email when the CPU threshold is breached.

Exam trap

The trap here is that candidates confuse diagnostic settings (which export data) with action groups (which deliver notifications), or assume that simply creating an alert rule automatically sends notifications without an explicit action group.

Why the other options are wrong

A

The question states that a metric alert already exists, but no email is sent. The issue is with the alert's notification action, not with data collection. Exporting metrics to Log Analytics does not configure email delivery for the alert.

C

Assigning the Reader role allows viewing alerts but does not enable email notifications; the alert rule lacks an action group to send emails.

D

A resource lock prevents deletion or modification of VM01, but does not affect alert notifications. The issue is that no email is sent when the alert fires, which requires an action group, not a lock.

When would these options actually be correct?

A

This option would be correct if the question asked: 'You need to send VM performance data to a Log Analytics workspace for analysis and alerting. What should you configure?'

C

If the question asked 'The on-call team cannot see the alert rule in the Azure portal. What should you configure?' then assigning the Reader role would grant read access to the alert rule.

D

If the question asked how to prevent accidental deletion or modification of a critical VM, creating a resource lock (e.g., CanNotDelete or ReadOnly) would be the correct answer.

Why candidates pick the wrong answer

A

Candidates may confuse diagnostic settings with alert actions, thinking that exporting metrics to Log Analytics will automatically trigger notifications, or they may believe that Log Analytics is required for alerting.

C

Candidates may confuse permissions with notification delivery, thinking that granting read access somehow enables email alerts.

D

Candidates may confuse resource locks with alert configuration, thinking that locking the VM ensures stability or that alerts are somehow tied to lock settings.

204
MCQmedium

A hub VNet already has a VPN gateway connected to on-premises networks. A new spoke VNet must reach those on-premises networks through the existing gateway without deploying another gateway. Which peering settings are required?

A.Enable gateway transit on the hub peering and use remote gateways on the spoke peering.
B.Enable forwarded traffic on both peerings and leave gateway settings disabled.
C.Enable use remote gateways on the hub peering and gateway transit on the spoke peering.
D.Create a private endpoint between the two VNets.
AnswerA

To let a spoke VNet use the hub's gateway, the hub side must allow gateway transit and the spoke side must be configured to use the remote gateway. This combination lets the spoke send traffic to on-premises networks through the existing hub VPN gateway, avoiding duplicate gateway deployment. It is the standard design for hub-and-spoke environments that centralize connectivity and reduce cost and operational overhead.

Why this answer

To allow a spoke VNet to use the hub VNet's VPN gateway without deploying its own, you must enable 'Use remote gateways' on the spoke peering and 'Gateway transit' on the hub peering. This configuration allows the spoke to route traffic destined for on-premises networks through the hub's VPN gateway, leveraging the existing site-to-site VPN connection.

Exam trap

The trap here is that candidates often confuse which peering (hub or spoke) gets which setting, incorrectly assuming 'Use remote gateways' goes on the hub and 'Gateway transit' on the spoke, or they think 'Forwarded traffic' is sufficient for gateway routing.

Why the other options are wrong

B

Option B is wrong because enabling forwarded traffic alone does not allow the spoke VNet to use the hub's VPN gateway. Gateway transit must be enabled on the hub peering, and the spoke must use remote gateways to route traffic through the hub's gateway.

C

Option C reverses the required settings: gateway transit must be enabled on the hub (where the gateway resides) and use remote gateways on the spoke. Enabling use remote gateways on the hub would attempt to use a non-existent gateway in the spoke, and gateway transit on the spoke would not allow the spoke to use the hub's gateway.

D

A private endpoint enables secure connectivity to a specific Azure service (e.g., Storage, SQL) over the Microsoft backbone, not transitive routing to on-premises networks through a VPN gateway. It does not provide network-level routing between VNets or to on-premises.

When would these options actually be correct?

B

This option would be correct in a scenario where traffic must flow between two peered VNets through a network virtual appliance (NVA) in the hub, but the hub does not have a VPN gateway. For example, if the hub VNet has an NVA for inspection and the spoke VNet needs to send traffic to another spoke via the hub, enabling forwarded traffic on both peerings allows the NVA to route traffic between them.

C

This option would be correct if the VPN gateway were deployed in the spoke VNet instead of the hub. In that scenario, the spoke would enable gateway transit, and the hub would enable use remote gateways to access the spoke's gateway.

D

A question asks: 'You need to securely connect an Azure VM to an Azure Storage account without using the public internet. Which solution should you use?' In that scenario, creating a private endpoint for the Storage account in the same VNet would be correct.

Why candidates pick the wrong answer

B

Candidates may confuse 'forwarded traffic' with gateway transit, thinking that enabling forwarded traffic allows the spoke to use the hub's gateway. They might also overlook that gateway transit is a separate setting specifically for VPN/ExpressRoute gateways.

C

Candidates may confuse which VNet hosts the gateway and incorrectly assume the spoke should enable gateway transit because it needs to 'transit' traffic, or they may misremember the direction of the settings.

D

Candidates may confuse private endpoints with VNet peering or think that any 'private' connection can replace gateway transit, not understanding that private endpoints are for PaaS services, not for routing traffic between networks.

205
MCQmedium

A Windows file server VM in Azure must mount an Azure file share by using existing Active Directory Domain Services credentials instead of a storage account key. The organization already has domain-joined Windows servers in the environment. What should the administrator configure on the storage account?

A.Enable Azure Files identity-based authentication with Active Directory Domain Services.
B.Enable blob soft delete and mount the share with a blob container SAS token.
C.Enable a service endpoint for Microsoft.Storage on the subnet.
D.Create a shared access signature for the file share and map it as a local drive.
AnswerA

Enabling Azure Files identity-based authentication with Active Directory Domain Services allows the Windows file server VM to obtain a Kerberos ticket for the SMB share and mount it using the user's existing domain credentials. This eliminates the need for storage account keys or SAS tokens because authorization is handled through RBAC roles like 'Storage File Data SMB Share Reader'. This is precisely what the requirement asks for.

Why this answer

Azure Files supports identity-based authentication over SMB using Active Directory Domain Services (AD DS). By enabling this on the storage account, the administrator can mount the file share using existing domain credentials instead of a storage account key, provided the client VM is domain-joined and the share is configured with appropriate NTFS permissions. This eliminates the need to manage or expose storage account keys.

Exam trap

The trap here is that candidates often confuse network-level controls (like service endpoints) or key-based access methods (like SAS tokens) with identity-based authentication, failing to recognize that only enabling AD DS authentication on the storage account allows the use of existing domain credentials.

Why the other options are wrong

B

Blob soft delete and SAS tokens are for Azure Blob Storage, not Azure Files. The question requires mounting an Azure file share with AD credentials, not using a storage account key or SAS.

C

Enabling a service endpoint for Microsoft.Storage on the subnet restricts access to the storage account from that subnet but does not enable Active Directory authentication for Azure Files. The question requires identity-based authentication using AD DS credentials, which service endpoints do not provide.

D

Creating a shared access signature (SAS) for the file share and mapping it as a local drive still uses a SAS token for authentication, not Active Directory Domain Services credentials. The question requires using existing AD DS credentials, which SAS does not support.

When would these options actually be correct?

B

An administrator needs to protect blob data from accidental deletion or overwrite. Enabling blob soft delete allows recovery of deleted blobs within a retention period. Mounting with a SAS token provides delegated access without exposing the account key.

C

An administrator needs to ensure that a storage account is only accessible from a specific virtual network subnet to reduce exposure to the internet. The correct answer would be to enable a service endpoint for Microsoft.Storage on that subnet and configure the storage account firewall to allow access only from that subnet.

D

An administrator needs to grant temporary, time-limited access to a specific Azure file share for a user who does not have AD DS credentials, such as an external contractor. In that case, generating a SAS token and mapping the share as a local drive would be appropriate.

Why candidates pick the wrong answer

B

Candidates may confuse Azure Files with Azure Blobs, or think that SAS tokens can be used for AD-based authentication, not realizing SAS is a shared key mechanism.

C

Candidates may confuse network-level access control (service endpoints) with identity-based authentication, thinking that restricting network access is sufficient to meet the requirement of using AD credentials, or they may incorrectly associate service endpoints with Active Directory integration.

D

Candidates may confuse SAS tokens with identity-based authentication, thinking that any token-based access can satisfy the requirement for using AD DS credentials, or they may not fully understand the difference between storage account key access and AD DS integration.

206
MCQmedium

An admin enables backup on a newly deployed Azure VM, but every backup job fails immediately with a message that the VM agent is not ready. What should the administrator verify first?

A.The VM is placed in an availability zone that supports backup.
B.The Azure VM Agent is installed, running, and able to provision backup-related extensions.
C.The VM has a public IP address assigned for outbound connectivity.
D.The VM is added to a load balancer backend pool.
AnswerB

Azure Backup relies on the VM agent and extensions inside the guest. If the agent is missing, stopped, or unhealthy, backup jobs can fail before a recovery point is created. Verifying the agent first addresses the specific error message.

Why this answer

The Azure VM Agent (also known as the Windows Guest Agent or Linux Agent) is required for the Azure Backup service to install the backup extension (e.g., IaaSBcdrExtension for Windows or SnapshotV2 for Linux). If the agent is not installed, not running, or is in a 'Not Ready' state, the backup extension cannot be provisioned, causing immediate failure. The administrator should first verify that the VM Agent is installed and its status is 'Ready' in the VM's properties.

Exam trap

The trap here is that candidates often assume network connectivity (public IP or load balancer) is the root cause, but the immediate failure message 'VM agent not ready' directly points to the agent status, not network issues.

Why the other options are wrong

A

Backup failures due to VM agent not ready indicate an issue with the agent itself, not the availability zone. Azure Backup supports all availability zones, so zone placement does not cause immediate backup failures.

C

Outbound connectivity via a public IP is not required for Azure Backup to function; the VM agent communicates internally with Azure storage endpoints, and backup can work through a private endpoint or service endpoint.

D

Adding a VM to a load balancer backend pool is unrelated to backup failures caused by the VM agent not being ready. Backup operations depend on the VM agent and extensions, not load balancing configuration.

When would these options actually be correct?

A

This option would be correct if the question stated that backup jobs fail with a message about 'unsupported region' or 'backup not available in this zone', indicating a regional or zonal limitation for the backup service.

C

If the question were about a VM that fails to download custom scripts or extensions from the internet (e.g., custom script extension), then a public IP or outbound connectivity would be the first thing to verify.

D

This option would be correct in a scenario where a VM is unreachable from the internet and needs to be added to a load balancer's backend pool to receive traffic, such as when configuring a highly available web application.

Why candidates pick the wrong answer

A

Candidates may confuse availability zone constraints with backup readiness, thinking that backup requires specific zone support, but Azure Backup is zone-agnostic.

C

Candidates may mistakenly think backup requires internet access, confusing it with scenarios where VMs need outbound connectivity for updates or extension downloads from public repositories.

D

Candidates might think that load balancing is required for backup traffic or that the VM must be part of a pool to be properly managed, confusing network load balancing with backup infrastructure requirements.

207
MCQhard

Your operations team needs to receive a Microsoft Teams or email notification whenever a production application becomes unavailable. You have already created an availability test in Azure Monitor. What should you configure next?

A.A metric or log alert rule linked to an action group
B.A management group
C.A resource lock
D.A private endpoint
AnswerA

A metric or log alert rule is the required notification mechanism because it continuously monitors Azure resource metrics or log queries and fires when a threshold or pattern is breached. When the rule activates, it invokes an action group that contains notification endpoints such as a Teams webhook, email, or SMS, thereby delivering the alert to your operations team. Without an action group, the alert rule exists but cannot reach anyone, so the two must be linked together to satisfy the requirement.

Why this answer

An availability test in Azure Monitor detects when an application is unavailable, but it does not inherently trigger notifications. To send a Teams or email alert, you must create a metric or log alert rule that references the availability test's results and link it to an action group, which defines the notification actions (e.g., email, SMS, webhook to Teams). This is the standard Azure Monitor workflow for proactive incident response.

Exam trap

The trap here is that candidates may think an availability test alone sends notifications, but Azure Monitor requires an explicit alert rule linked to an action group to trigger any notification action.

Why the other options are wrong

B

A management group is used for organizing and managing access, policies, and compliance across multiple Azure subscriptions, not for sending notifications about application availability.

D

A private endpoint is used to securely connect to Azure services over a private network, not to send notifications for application unavailability. It does not trigger alerts or integrate with action groups.

When would these options actually be correct?

B

When the question asks about organizing subscriptions into a hierarchy for applying governance policies or role-based access control across an enterprise, a management group would be the correct answer.

D

You need to ensure that an Azure App Service web app is accessible only from a specific virtual network, without exposing it to the public internet. In that case, you would configure a private endpoint for the web app.

Why candidates pick the wrong answer

B

Candidates might confuse management groups with action groups or think that management groups can be used to configure notifications at scale, but they serve a different purpose in Azure governance.

D

Candidates may confuse private endpoints with monitoring or notification features, thinking they provide a direct, secure channel for alerts, but they are actually a networking component for private connectivity.

208
MCQeasy

Two application teams created separate virtual networks so their workloads can communicate through VNet peering. VNet-A uses 10.20.0.0/16. VNet-B was created with 10.20.128.0/17. The peering request fails during validation. What is the best fix?

A.Add an NSG rule to allow traffic between the two VNets.
B.Change one VNet to use a non-overlapping address space.
C.Create a private endpoint in each VNet.
D.Attach a route table to both subnets.
AnswerB

For VNet peering to succeed, the address spaces of both virtual networks must be unique and must not overlap. Overlapping CIDR blocks make it impossible for Azure's routing engine to determine where to deliver traffic, so the peering request fails. You must either add a non-overlapping address range to one VNet or, if the existing overlapping range is in use, create a new VNet with a non-overlapping address space and migrate resources. Only then can Azure establish the bidirectional peering connection between the two VNets.

Why this answer

VNet peering requires that the address spaces of the peered virtual networks do not overlap. VNet-A uses 10.20.0.0/16, which includes the entire range from 10.20.0.0 to 10.20.255.255. VNet-B uses 10.20.128.0/17, which is a subset of VNet-A's range (10.20.128.0 to 10.20.255.255).

This overlap causes the peering validation to fail because Azure cannot route traffic between overlapping address spaces. Changing one VNet to a non-overlapping address space resolves the conflict.

Exam trap

The trap here is that candidates may think NSG rules or route tables can fix connectivity issues between peered VNets, but the peering validation itself fails due to overlapping address spaces, which is a fundamental design constraint that cannot be overridden by network security or routing policies.

Why the other options are wrong

A

VNet peering fails due to overlapping IP address spaces (10.20.0.0/16 and 10.20.128.0/17 overlap). NSG rules control traffic filtering, not address space conflicts, so adding an NSG rule does not resolve the overlapping address issue.

C

Private endpoints are used to securely access Azure PaaS services over a private IP address, not to resolve overlapping IP address spaces between peered VNets. The peering failure is due to address overlap, which private endpoints cannot fix.

D

Route tables direct traffic between subnets within a VNet or to on-premises, but they cannot resolve overlapping IP address spaces between peered VNets. The peering failure is due to address overlap, not missing routes.

When would these options actually be correct?

A

An NSG rule to allow traffic would be correct if VNet peering is already established but traffic is blocked. For example, two peered VNets with non-overlapping address spaces where default NSG rules deny inter-VNet traffic, and you need to allow specific communication.

C

A question where two VNets need to securely connect to an Azure SQL Database without exposing it to the public internet, and the VNets have non-overlapping address spaces. Creating a private endpoint in each VNet would allow private connectivity to the database.

D

A route table would be correct if VNet peering was established but traffic between subnets in different VNets was not flowing due to asymmetric routing or missing user-defined routes (UDRs) to force traffic through a network virtual appliance (NVA).

Why candidates pick the wrong answer

A

Candidates often think that network connectivity issues are solved by adding security rules, confusing traffic filtering with routing or address space conflicts.

C

Candidates may think private endpoints can bridge any connectivity issue between VNets, confusing their purpose of providing private access to PaaS services with general VNet-to-VNet connectivity solutions.

D

Candidates may think that adding routes can fix connectivity issues between VNets, confusing routing problems with the fundamental address space conflict that prevents peering from being established.

209
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

B

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

D

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

When would these options actually be correct?

A

If the question stated that all users should be able to delete the resource group but only specific actions need to be controlled via permissions, then RBAC alone would be sufficient.

B

If the requirement were to prevent any modifications to resources (including updates) while still allowing read access, a ReadOnly lock would be correct. For example, a question stating 'Prevent all changes to resources in a resource group, but allow read access for auditing' would make B the correct answer.

D

This option would be correct if the question asked for granting full management access to resources within a resource group without preventing deletion, such as when a new administrator needs to manage resources but not modify access policies.

Why candidates pick the wrong answer

A

Candidates may think RBAC is enough to control deletion, overlooking that locks provide an additional layer of protection against accidental deletion even for authorized users.

B

Candidates may think a ReadOnly lock is a stronger protection against accidental deletion, but they overlook that it also blocks updates, which is not allowed here. They might confuse the lock's effect on deletion versus modification.

D

Candidates may confuse role assignments with locks, thinking that limiting permissions via roles can prevent deletion, but RBAC does not override owner-level actions or provide the same protection as locks.

210
MCQmedium

A line-of-business application stores transaction logs in an Azure Storage account. The app must keep working if one availability zone in the primary region fails, and administrators want read access to the secondary copy if the primary region becomes unavailable. Which redundancy option should you choose?

A.LRS, because it keeps three local copies in one datacenter and is the simplest choice.
B.RA-GRS, because it provides geo-replication and read access to the secondary region.
C.GZRS, because it combines zone redundancy in the primary region with geo-replication.
D.RA-GZRS, because it keeps the primary region zone-redundant and allows read access to the secondary copy.
AnswerD

RA-GZRS is the only option listed that combines zone-redundant storage in the primary region with geo-replication and read access to the secondary endpoint. That satisfies both the availability-zone failure requirement and the need to read data during a regional outage. It is the strongest choice when you need resilience across both datacenter-level and regional failure scenarios.

Why this answer

RA-GZRS (Read-Access Geo-Zone-Redundant Storage) is correct because it combines zone-redundant storage (ZRS) across availability zones in the primary region, ensuring continued operation if one zone fails, with geo-replication to a secondary region. Additionally, the 'RA' prefix enables read access to the secondary copy if the primary region becomes unavailable, meeting both requirements.

Exam trap

The trap here is that candidates often confuse GZRS with RA-GZRS, overlooking that GZRS does not grant read access to the secondary region unless a failover is initiated, while RA-GZRS explicitly allows read access to the secondary copy at all times.

Why the other options are wrong

A

LRS only replicates within a single datacenter, so it does not protect against an availability zone failure in the primary region (since zones span multiple datacenters) and provides no secondary region for read access if the primary region becomes unavailable.

B

RA-GRS does not provide zone redundancy in the primary region; it only replicates to a single physical location in the primary region. If the primary region's single zone fails, the app may lose availability until failover occurs.

C

GZRS provides zone redundancy in the primary region and geo-replication, but it does not allow read access to the secondary copy; only RA-GZRS offers that read access, which is required for administrators to read the secondary copy if the primary region fails.

When would these options actually be correct?

A

LRS would be correct for a non-critical application that can tolerate data loss during a zone or region failure, where cost is the primary concern and the data can be easily regenerated, such as temporary logs or cached data that is not business-critical.

B

RA-GRS would be correct if the question required geo-replication with read access to the secondary region but did not require zone redundancy in the primary region, and the primary region had only one availability zone or zone redundancy was not needed.

C

Choose GZRS when the application requires zone redundancy in the primary region and geo-replication for disaster recovery, but does not need read access to the secondary region during normal operations. For example, a backup storage account that only needs to be readable after a failover.

Why candidates pick the wrong answer

A

Candidates may choose LRS because it is the simplest and cheapest option, overlooking the requirement for zone redundancy and read access to a secondary region.

B

Candidates may confuse RA-GRS with RA-GZRS, thinking that 'geo-redundant' includes zone redundancy, or they may overlook the requirement for zone-level resilience in the primary region.

C

Candidates may confuse GZRS with RA-GZRS, thinking that geo-replication automatically includes read access to the secondary, or they may overlook the specific requirement for read access in the question.

211
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

B

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

C

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

D

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

When would these options actually be correct?

B

A resource lock would be correct if the question asked: 'Which Azure construct should an administrator use to prevent accidental deletion of a critical resource group that contains multiple policy assignments?'

C

An Azure RBAC custom role would be correct if the question asked: 'An administrator needs to create a set of permissions that allow a support team to restart VMs and view diagnostic settings, but not delete resources. Which construct should they create?'

D

When a question asks how to exclude a specific resource from a policy assignment that would otherwise apply to it, such as exempting a test resource from a compliance policy.

Why candidates pick the wrong answer

B

Candidates may confuse resource locks with policy assignments because both are used for governance and control, but locks operate at a different layer (resource management vs. compliance rules).

C

Candidates may confuse the concept of grouping rules (policy initiative) with grouping permissions (custom role), or think that a custom role can encapsulate policy rules because both involve defining rules/conditions.

D

Candidates may confuse 'exemption' with 'initiative' because both involve modifying policy behavior, but exemption is for exclusion, not grouping.

212
MCQhard

A subnet contains two NSGs: one associated with the subnet and one associated with the NIC of VM-App03. You need to determine whether inbound TCP 3389 from the internet is allowed. What is the correct interpretation?

A.The NIC NSG always overrides the subnet NSG.
B.Inbound traffic is allowed as long as one NSG has an allow rule.
C.The effective rules are determined by evaluating both NSGs together, and a deny in either applicable path can block access.
D.Subnet NSGs apply only to outbound traffic.
AnswerC

When both a subnet NSG and a NIC NSG apply to the same virtual machine, Azure aggregates their rules into the effective security rules for the interface. Evaluation does not simply take the least-restrictive rule; instead, a traffic flow must not violate a deny rule at either layer. Therefore, if a deny rule in the subnet NSG matches, the NIC allow rule cannot rescue the flow, and vice versa, so both NSGs must permit the traffic for it to be allowed.

Why this answer

When a subnet NSG and a NIC NSG are both applied, Azure evaluates the effective rules by combining both NSGs. Inbound traffic must be allowed by both NSGs along the traffic path; if either NSG has a deny rule that matches the traffic (e.g., a default deny rule for inbound internet traffic), the traffic is blocked. Option C correctly states that a deny in either applicable path can block access, which is the fundamental behavior of NSG evaluation in Azure.

Exam trap

The trap here is that candidates often assume the NIC NSG overrides the subnet NSG (Option A) or that an allow in one NSG is sufficient (Option B), but Azure requires both NSGs to permit the traffic for it to be allowed.

Why the other options are wrong

A

In Azure, NSGs are evaluated in order: subnet NSG first, then NIC NSG. A deny rule in either NSG can block traffic, so the NIC NSG does not always override the subnet NSG.

B

In Azure, when both a subnet NSG and a NIC NSG exist, traffic is evaluated by both NSGs in sequence. A deny rule in either NSG will block traffic, so an allow rule in one NSG does not guarantee traffic is allowed if the other NSG denies it.

D

Subnet NSGs apply to both inbound and outbound traffic, not just outbound. In this question, the subnet NSG can deny inbound TCP 3389 from the internet, affecting the effective rule.

When would these options actually be correct?

A

This would be correct if the question stated that the NIC NSG has a higher priority than the subnet NSG and that only the NIC NSG is evaluated for inbound traffic, such as in a scenario where the subnet NSG is not applied to the NIC.

B

This option would be correct in a scenario where the question specifies that NSGs are evaluated in a 'union' manner, such as in a hypothetical environment where multiple NSGs are combined and any allow rule permits traffic, or in a context where only one NSG is applied and the other is ignored.

D

If the question asked about the default behavior of a subnet NSG when no explicit inbound rules are defined, but outbound rules are configured, then a candidate might incorrectly think subnet NSGs only apply to outbound traffic. However, this is never correct; subnet NSGs always apply to both directions.

Why candidates pick the wrong answer

A

Candidates may think that the more specific NSG (NIC) always takes precedence over the broader one (subnet), similar to how firewall rules work in some other systems.

B

Candidates may mistakenly think that NSGs work like firewall rules where an allow rule in any applicable NSG overrides denies, or they may confuse Azure NSG behavior with other cloud providers' security group rules that are additive.

D

Candidates may confuse subnet NSGs with route tables or think that NSGs are unidirectional, leading them to believe subnet NSGs only handle outbound traffic.

213
MCQeasy

An administrator moved a blob to the Archive tier last month. A user needs to open it tomorrow. What must happen before the file can be read?

A.Change the blob to Hot or Cool and wait for rehydration to complete
B.Create a snapshot of the archived blob
C.Enable versioning on the storage account
D.Move the storage account to LRS redundancy
AnswerA

Because Archive-tier blobs are stored in an offline format and cannot be accessed for reads or writes, the only way to make the data available is to change its access tier to Hot or Cool. This action triggers a rehydration operation, which can take from minutes to several hours depending on the rehydration priority you choose (Standard or High), and only after the blob moves to an online tier can clients read or modify it. Waiting for rehydration to complete is therefore essential before any application can use the data.

Why this answer

To read a blob in the Archive tier, it must first be rehydrated to the Hot or Cool tier. This process, called rehydration, changes the blob's tier and makes it accessible for reading. Until rehydration completes, the blob remains offline and cannot be read.

Exam trap

The trap here is that candidates may think archived blobs can be read directly or that other operations like snapshots or versioning bypass the rehydration requirement, but Azure explicitly requires tier change and rehydration before any read access.

Why the other options are wrong

B

Creating a snapshot of an archived blob does not rehydrate the blob; the snapshot itself is also in the Archive tier and cannot be read until the base blob is rehydrated.

C

Enabling versioning does not make an archived blob readable; it only preserves previous versions. The blob remains in the Archive tier and must be rehydrated to Hot or Cool before access.

D

Moving the storage account to LRS redundancy does not affect the Archive tier's requirement for rehydration before reading. The blob remains in the Archive tier and must be changed to Hot or Cool and rehydrated.

When would these options actually be correct?

B

If the question were 'How can you preserve a point-in-time copy of an archived blob before changing its tier?' then creating a snapshot would be correct, as snapshots capture the blob state at that moment.

C

If the question asked how to preserve the current state of a blob before modifying it, enabling versioning would be correct. For example: 'An administrator needs to keep a history of changes to a blob. What should they enable?'

D

This option would be correct if the question were about reducing costs for a storage account that currently uses geo-redundant storage (GRS) and the data does not require high durability across regions. For example: 'An administrator wants to minimize storage costs for a storage account with non-critical data. What should they do?'

Why candidates pick the wrong answer

B

Candidates may think a snapshot provides immediate access to the data, not realizing that snapshots of archived blobs remain in the Archive tier and require rehydration to be read.

C

Candidates may confuse versioning with the ability to access archived data, thinking that versioning creates a copy that bypasses the rehydration requirement.

D

Candidates may think that changing redundancy could somehow make the blob accessible, confusing storage account configuration with blob tier operations, or they might believe that LRS is required for reading archived blobs.

214
Multi-Selecthard

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

B

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

D

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

E

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

When would these options actually be correct?

B

If the question stated that the policy initiative was assigned at the subscription scope and a new resource group was added, then the initiative would need to be assigned to that resource group separately to take effect.

D

If the question were about a custom RBAC role definition that includes a deny action for read permissions, and that role is assigned to users at the subscription scope, then users would lose read access. This would be a correct statement in a scenario about RBAC role assignments, not Azure Policy.

E

If the question asked: 'Where can you see the history of policy assignment changes or evaluation events?' then Activity Log would be correct, as it logs all administrative actions including policy assignments and evaluations.

Why candidates pick the wrong answer

B

Candidates may think that policies must be explicitly assigned to each resource group, confusing the inheritance behavior of management group assignments with subscription-level assignments.

D

Candidates may confuse Azure Policy's enforcement mechanisms with RBAC, assuming that policy restrictions also affect user permissions, or they may think that denying resource creation implies denying read access.

E

Candidates may confuse the role of Activity Log (which records events) with the compliance dashboard, or think that policy compliance is only tracked via logs rather than a dedicated interface.

215
MCQmedium

Based on the exhibit, what is the best access change to let John download blobs from only the invoices container?

A.Assign Reader at the storage account scope so John can view the storage account and its data.
B.Assign Storage Blob Data Reader at the invoices container scope.
C.Assign Storage Account Contributor at the resource group scope.
D.Make the invoices container public and keep John's existing Contributor role.
AnswerB

Blob downloads require a data-plane role, not the Contributor role on the storage account. Assigning Storage Blob Data Reader at the container scope gives John only the read permissions needed for invoices and avoids granting access to other containers or management operations.

Why this answer

Assigning the Storage Blob Data Reader role at the invoices container scope grants John the minimum permissions needed to download blobs from that specific container. This role provides read access to blob data without allowing any write or management operations, and scoping it to the container ensures John cannot access other containers in the storage account.

Exam trap

The trap here is that candidates often confuse management-plane roles (like Reader or Contributor) with data-plane roles, assuming that any role with 'read' or 'contributor' in the name grants access to blob data, when in fact only specific data-plane roles (e.g., Storage Blob Data Reader) provide the necessary permissions for blob operations.

Why the other options are wrong

A

Assigning Reader at the storage account scope grants read access to all containers and blobs, not just the invoices container, violating the requirement for least privilege.

C

Storage Account Contributor at the resource group scope grants full management access to the storage account, including the ability to delete or modify configurations, but does not grant data access (e.g., reading blobs). It would over-privilege John and fail to meet the requirement of read-only blob download from a specific container.

When would these options actually be correct?

A

This option would be correct if the question required John to view all storage account data (including blobs in all containers) and the role needed to be at the storage account level, with no restriction to a single container.

C

This option would be correct if the question asked for a role that allows John to manage the storage account (e.g., update firewall rules, regenerate keys) at the resource group level, without needing data access. For example: 'John must be able to modify storage account settings for all storage accounts in the resource group.'

Why candidates pick the wrong answer

A

Candidates may think Reader provides sufficient blob access, but Reader only allows viewing storage account properties and configuration, not data; they confuse management-plane read with data-plane read.

C

Candidates may confuse management roles with data roles, assuming 'Contributor' includes data access, or think that a broader scope (resource group) is safer or simpler, not realizing it lacks blob read permissions.

216
MCQmedium

A development team needs a single Azure Storage account for blob containers, Azure Files shares, and blob lifecycle rules. The account must support standard performance and allow future use of access tiers. Which account kind should you create?

A.BlobStorage because it is optimized for blobs and supports lifecycle management.
B.StorageV2 because it supports blobs, Azure Files, lifecycle management, and access tiers.
C.FileStorage because it is designed for file shares and can also host blob lifecycle rules.
D.BlockBlobStorage because it provides the best performance for lifecycle policies and file shares.
AnswerB

StorageV2 is the correct choice because it is the general-purpose v2 account type. It supports blob containers, Azure Files shares, blob access tiers, lifecycle management rules, and the standard capabilities used in most Azure administration scenarios. It is also the recommended account type when a team wants one storage account for multiple storage services and operational features.

Why this answer

StorageV2 (general-purpose v2) is the only account kind that supports blobs, Azure Files shares, lifecycle management policies, and all access tiers (hot, cool, archive) with standard performance. BlobStorage lacks Azure Files support, FileStorage is premium-only and does not support lifecycle rules, and BlockBlobStorage is premium-only and does not support Azure Files or lifecycle management.

Exam trap

Microsoft often tests the misconception that BlobStorage accounts are sufficient for mixed workloads, but they intentionally omit that BlobStorage cannot host Azure Files shares, making StorageV2 the only viable choice when both blob and file storage are required with lifecycle management.

Why the other options are wrong

A

BlobStorage does not support Azure Files shares, which are required by the development team.

C

FileStorage is a premium-only account kind designed for high-performance file shares and does not support blob containers, lifecycle management, or access tiers.

D

BlockBlobStorage is a premium account kind optimized for block blobs with low latency, but it does not support Azure Files shares or standard performance tiers, and it lacks lifecycle management features.

When would these options actually be correct?

A

A question that asks for an account optimized for blob storage only, with lifecycle management and access tiers, but no requirement for Azure Files or other services.

C

When the question specifies a need for premium performance for Azure Files shares only, with no requirement for blobs or lifecycle management, and access tiers are not needed.

D

You would choose BlockBlobStorage when the requirement is for a premium block blob storage account with high transaction rates and low latency, and there is no need for Azure Files, lifecycle management, or access tiers.

Why candidates pick the wrong answer

A

Candidates see 'blob containers' and 'lifecycle rules' and assume BlobStorage is sufficient, overlooking the need for Azure Files support.

C

Candidates may assume that because FileStorage is specialized for files, it can also handle blobs and lifecycle rules, or they confuse it with StorageV2's capabilities.

D

Candidates may think 'BlockBlobStorage' implies block blobs and performance, but they overlook that it does not support Azure Files, lifecycle rules, or standard performance tiers required in the question.

217
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

A question asks: 'You need to grant each VM access to Azure Key Vault without managing credentials, and each VM requires a unique identity for auditing purposes.' In that case, assigning a system-assigned managed identity to each VM would be correct.

C

This option would be correct if the question asked for a simple, low-cost method to grant all three VMs access to a storage account without requiring Azure AD integration or managed identities, and the VMs are in a trusted environment where key rotation is acceptable.

D

If the question required granting time-limited, granular access to a specific storage container for each VM individually, and the VMs needed different permissions or expiration times, separate SAS tokens would be appropriate.

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 'system-assigned' is the default and simpler choice without considering the sharing requirement.

C

Candidates may think access keys are a straightforward way to grant access without understanding that they are shared secrets, not identity-based, and that they lack fine-grained control and automatic rotation compared to managed identities.

D

Candidates may confuse SAS tokens with managed identities, thinking that generating a token per VM is a secure way to grant access without realizing that SAS tokens are secrets that must be managed and rotated, and they don't allow reuse across VMs.

218
Matchingmedium

Match each file-sharing requirement to the best Azure Files mounting or integration approach.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Azure File Sync

SMB with AD DS-based identity authentication

NFS 4.1 share

SAS token

Why these pairings

SMB mounting requires storage account credentials; NFS needs private endpoint; REST API for programmatic access; Azure AD DS enables identity-based access; File Sync caches on-premises.

219
MCQeasy

A build pipeline must run a Linux container for about 10 minutes per request. The team does not want to manage servers or a Kubernetes cluster. Which Azure service should the administrator choose?

A.Azure Container Instances
B.Azure Virtual Machines
C.Azure App Service
D.Azure Kubernetes Service
AnswerA

Azure Container Instances runs containers on demand without managing servers or orchestration clusters.

Why this answer

Azure Container Instances (ACI) is the correct choice because it allows you to run a Linux container directly on Azure without managing any underlying servers or orchestrators. The 10-minute execution time fits perfectly within ACI's per-second billing model, and the service automatically starts and stops the container on demand, making it ideal for short-lived, ephemeral workloads like build pipeline tasks.

Exam trap

The trap here is that candidates often confuse Azure Container Instances with Azure Kubernetes Service, assuming that any container workload requires an orchestrator, but ACI is purpose-built for simple, serverless container execution without cluster management.

Why the other options are wrong

B

Azure Virtual Machines require managing the underlying OS and patching, which contradicts the requirement to not manage servers. They also take longer to provision and are not optimized for short-lived tasks like a 10-minute container run.

C

Azure App Service requires a web app or API to be deployed, not a standalone container that runs for 10 minutes and then stops. It is designed for continuous web hosting, not ephemeral batch jobs.

D

Azure Kubernetes Service (AKS) is a managed Kubernetes cluster, which still requires cluster management and is overkill for running a single container for 10 minutes. The team explicitly wants to avoid managing servers or a Kubernetes cluster.

When would these options actually be correct?

B

If the requirement was to run a custom application that requires full control over the OS, specific kernel modules, or legacy software that cannot be containerized, and the team is willing to manage the VM lifecycle, Azure Virtual Machines would be the correct choice.

C

A team needs to deploy a containerized web application that must auto-scale based on HTTP traffic, with built-in load balancing and CI/CD support, and they want to avoid managing the underlying OS. Azure App Service would be the correct choice.

D

A question where the requirement is to run multiple containers that need to work together, with scaling, rolling updates, and service discovery, but the team wants to avoid managing the control plane. For example: 'A team needs to deploy a microservices application with multiple containers that must communicate and scale independently, but they want to minimize operational overhead of the orchestration layer.'

Why candidates pick the wrong answer

B

Candidates may think VMs are the default for running any workload, overlooking that containers provide a lighter, faster alternative for short-lived tasks without server management.

C

Candidates may think App Service supports containers (which it does via Web App for Containers) and assume it can run any container workload, overlooking that it is optimized for long-running web applications, not short-lived tasks.

D

Candidates may think AKS is the only option for running containers at scale, or they may confuse 'managed Kubernetes' with 'serverless containers,' not realizing that AKS still involves managing a cluster (node pools, upgrades, etc.).

220
Multi-Selecteasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

C

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

D

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

E

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

When would these options actually be correct?

C

If the question asked 'Which action prevents accidental deletion of a resource while preserving its data?', then a ReadOnly lock would be correct.

D

If the question asked 'Which feature automatically encrypts data at rest for Azure managed disks?' then 'Tags automatically encrypt the data in a resource' would be incorrect, but if the question were about 'Which Azure feature can be used to apply encryption to a resource?' the correct answer would be Azure Disk Encryption or Storage Service Encryption, not tags.

E

If the question asked 'Which feature can be used to enforce tagging rules across resources?' then Azure Policy would be correct, as it can require specific tags on new resources.

Why candidates pick the wrong answer

C

Candidates may confuse locks with tags because both are resource-level settings, or think that restricting changes implies ownership recording.

D

Candidates may confuse tags with security features or assume that applying a tag like 'Encrypted=true' implies actual encryption, misunderstanding that tags are only labels and do not enforce or provide encryption.

E

Candidates may think tags can enforce compliance because they are used for organization and governance, but they lack the enforcement capability of Azure Policy.

221
Multi-Selecteasy

Which two statements about Azure Backup soft delete are correct? Select two.

Select 2 answers
A.Deleted backup data is retained for a grace period
B.A protected item can be recovered after accidental deletion within that period
C.It permanently deletes backups immediately
D.It changes the VM to a different availability zone
E.It only applies to Azure Policy assignments
AnswersA, B

When soft delete is enabled on a Recovery Services vault, any deleted backup data is retained for a configured grace period—by default 14 days—during which the backup items remain in a soft-deleted state. The data is not irrecoverably purged, but continues to occupy storage, and the retention period is configurable up to 180 days for Azure VM backups. This allows an administrator to recover the data before it is permanently lost.

Why this answer

Azure Backup soft delete ensures that deleted backup data is not immediately purged but retained for a default grace period of 14 days. This allows recovery of accidentally deleted backup items, such as Recovery Services vault backup data, without data loss. Option A is correct because the grace period is a core feature of soft delete.

Exam trap

The trap here is that candidates may confuse soft delete with immediate permanent deletion (Option C) or incorrectly associate it with unrelated Azure features like availability zones or Azure Policy, rather than recognizing it as a backup-specific retention mechanism.

Why the other options are wrong

C

Azure Backup soft delete retains deleted backup data for a grace period (default 14 days), not permanently deleting backups immediately.

D

Azure Backup soft delete does not change a VM's availability zone; it only retains deleted backup data for a grace period to allow recovery.

E

Azure Backup soft delete applies to backup data, not to Azure Policy assignments. It is a feature of Azure Backup that protects against accidental deletion of backup data, not a policy-level setting.

When would these options actually be correct?

C

If the question were about the behavior of 'hard delete' or a scenario where a backup policy is configured to immediately delete backups after retention period ends, then 'permanently deletes backups immediately' could be correct.

D

This option would be correct in a question about Azure Site Recovery or VM availability zone migration, where changing a VM to a different availability zone is a valid recovery or high-availability action.

E

In a question about Azure Policy effects, if asked 'Which effect prevents deletion of policy assignments?', 'Deny' or 'Append' could be correct, but soft delete is not related to policy assignments.

Why candidates pick the wrong answer

C

Candidates may confuse soft delete with a feature that instantly purges data, or think that deleting a backup resource immediately removes all associated data.

D

Candidates may confuse Azure Backup with disaster recovery features like Azure Site Recovery, which can move VMs across zones, or mistakenly think soft delete involves relocating resources.

E

Candidates may confuse the concept of 'soft delete' with policy enforcement or assume it applies broadly to all Azure resources, including policy assignments, due to the term 'delete' in the name.

222
MCQmedium

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

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

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

Why this answer

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

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

If a user is directly assigned the Contributor role on a specific VM resource (not at the resource group scope), and no other roles apply, then that direct assignment would grant write access only to that VM and not to others in the same resource group.

C

This option would be correct if the question described a scenario where a user has both a deny assignment and a role assignment, and the deny assignment explicitly overrides the role. For example, if a custom role with 'NotActions' or a deny assignment is applied at a higher scope that blocks write access even if Contributor is assigned at a lower scope.

D

A question where a VM in RG-Apps can be modified but a VM in RG-Shared cannot, and the subscription has a policy that denies write access to all resources except those in RG-Apps. The policy would be the reason for the difference.

Why candidates pick the wrong answer

A

Candidates may confuse direct role assignments with inherited ones, thinking that a role applied at a resource group is the same as a direct assignment on each resource.

C

Candidates may mistakenly think that higher-scope roles always override lower-scope roles, or that Reader is a 'stronger' role that cancels out Contributor, when in fact RBAC permissions are cumulative and additive.

D

Candidates may confuse Azure Policy with RBAC, thinking policies can grant permissions, or they may overestimate the role of policies in access control scenarios.

223
Multi-Selectmedium

A storage account must remain on its public endpoint, but only one Azure subnet named AppSubnet should be allowed to access it from Azure. No private IP is required. Which two actions should the administrator take? Select two.

Select 2 answers
A.Enable the Microsoft.Storage service endpoint on AppSubnet.
B.Configure the storage account networking firewall to allow the selected virtual network and subnet.
C.Create a private endpoint and disable public network access.
D.Link a private DNS zone to AppSubnet.
E.Assign the Reader RBAC role to AppSubnet.
AnswersA, B

Enabling the Microsoft.Storage service endpoint on AppSubnet adds that subnet's identity to the storage service's network policy. Service endpoints do not change the storage account's public DNS or IP address; instead, they ensure traffic from AppSubnet is tagged with the virtual network and subnet source. This tag allows the storage firewall's virtual network rule to match the request, effectively permitting access through the existing public endpoint.

Why this answer

Enabling the Microsoft.Storage service endpoint on AppSubnet allows traffic from that subnet to the storage account over the Azure backbone network, using the public endpoint while restricting access to only that subnet. Option B is correct because configuring the storage account's networking firewall to allow the selected virtual network and subnet explicitly permits traffic from AppSubnet while blocking all other public access, meeting the requirement to keep the public endpoint but limit access to one subnet.

Exam trap

The trap here is that candidates often confuse service endpoints with private endpoints, assuming that restricting access to a single subnet requires a private IP and disabling public access, when in fact service endpoints achieve the same goal without changing the endpoint type.

Why the other options are wrong

C

The question requires keeping the storage account on its public endpoint and allowing only one subnet. Creating a private endpoint and disabling public network access would remove the public endpoint, contradicting the requirement.

D

The question requires the storage account to remain on its public endpoint and does not require a private IP. Creating a private endpoint and linking a private DNS zone would move the storage account to a private endpoint, which contradicts the requirement to keep the public endpoint.

E

The Reader RBAC role grants read-only access to Azure resources but does not control network access to the storage account. It cannot restrict access to a specific subnet; network firewalls or service endpoints are required for that purpose.

When would these options actually be correct?

C

When the requirement is to access the storage account privately from a virtual network without exposing it to the public internet, such as in a scenario where you need to ensure all traffic stays within the Azure backbone and avoid public endpoints for security compliance.

D

This option would be correct in a scenario where the requirement is to access the storage account privately from a virtual network, eliminating exposure to the public internet. For example, if the question stated 'The storage account must not be accessible from the public internet and must be accessed privately from AppSubnet,' then creating a private endpoint and linking a private DNS zone would be appropriate.

E

This option would be correct in a scenario where the question asks for granting read-only permissions to a subnet's resources (e.g., VMs) to access the storage account data plane, without needing network restrictions. For example: 'You need to allow VMs in AppSubnet to list storage account containers. Which RBAC role should you assign?'

Why candidates pick the wrong answer

C

Candidates may confuse private endpoint with service endpoint, or think that private endpoint is the only way to restrict access to a specific subnet, not realizing that service endpoints with firewall rules can achieve the same without removing the public endpoint.

D

Candidates may confuse service endpoints with private endpoints, thinking that a private endpoint is needed to restrict access to a specific subnet, or they may assume that a private DNS zone is always required for secure access from a subnet.

E

Candidates may confuse RBAC roles with network access controls, thinking that assigning a role to a subnet can restrict or allow access from that subnet, when in fact RBAC governs identity-based permissions, not network-level filtering.

224
MCQmedium

A branch office uses an on-premises firewall that supports IPsec/IKE and has a stable public IP. The office needs always-on private connectivity to an Azure VNet over the internet. Which Azure component should the administrator deploy?

A.A site-to-site connection using Azure VPN Gateway.
B.VNet peering between the branch office and the Azure VNet.
C.Azure Bastion in the target VNet.
D.A private endpoint for the Azure VNet.
AnswerA

A site-to-site VPN with Azure VPN Gateway is designed for permanent encrypted connectivity between an on-premises network and an Azure VNet. The branch firewall can establish an IPsec/IKE tunnel to the gateway using its public IP, which matches the scenario. This approach provides private connectivity across the internet without exposing the workload directly to public endpoints. It is the standard choice for hybrid network connectivity when ExpressRoute is not required.

Why this answer

A site-to-site VPN connection using Azure VPN Gateway is the correct choice because it provides always-on, encrypted connectivity over the internet between an on-premises network with a stable public IP and an Azure VNet. Azure VPN Gateway supports IPsec/IKE protocols, which are compatible with the branch office's firewall, enabling a secure tunnel that meets the requirement for private connectivity.

Exam trap

The trap here is that candidates often confuse VNet peering (which only works between Azure VNets) with site-to-site VPN connectivity, or they mistakenly think Azure Bastion or private endpoints can provide network-level connectivity to on-premises networks.

Why the other options are wrong

B

VNet peering connects two Azure VNets within Azure, not an on-premises network to Azure. It cannot connect a branch office's on-premises firewall to an Azure VNet over the internet.

C

Azure Bastion provides secure RDP/SSH access to VMs inside a VNet without public IPs, but it does not establish site-to-site IPsec/IKE connectivity from an on-premises network to Azure.

When would these options actually be correct?

B

When connecting two Azure VNets in the same region or across regions for private, low-latency communication, VNet peering is the correct solution. For example, linking a hub VNet to a spoke VNet.

C

An administrator needs to provide secure, browser-based RDP/SSH access to Azure VMs in a VNet without exposing them to the public internet. The on-premises users must connect through Azure Bastion, not via a VPN tunnel.

Why candidates pick the wrong answer

B

Candidates may confuse VNet peering with site-to-site VPN, thinking it can extend on-premises connectivity, but peering is limited to Azure-internal networks only.

C

Candidates may confuse Bastion's secure connectivity feature with VPN capabilities, assuming it can also serve as a gateway for site-to-site connections.

225
MCQmedium

A subnet is associated with a NAT gateway, but its route table also contains a 0.0.0.0/0 route to a virtual appliance at 10.2.0.4. The business wants all outbound internet traffic from the VMs to use one static public IP, and inspection by the appliance is no longer required. What should the administrator change?

A.Add a public IP address directly to each virtual machine NIC.
B.Remove the 0.0.0.0/0 user-defined route from the subnet.
C.Enable service endpoints for the subnet.
D.Change the NAT gateway to a zone-redundant SKU.
AnswerB

The default route to the virtual appliance forces all internet-bound traffic away from the subnet's NAT gateway. Because NAT gateway only handles outbound traffic that is not sent to another next hop, the UDR prevents the NAT gateway from being used. Removing the default route allows the subnet to use the NAT gateway's static public IP for outbound internet connections while keeping routing simple.

Why this answer

Removing the 0.0.0.0/0 user-defined route (UDR) from the subnet's route table will allow the NAT gateway to handle all outbound internet traffic. The NAT gateway provides a single static public IP for outbound traffic, and since inspection by the virtual appliance is no longer required, the conflicting UDR that directs traffic to the appliance must be deleted. This ensures that the subnet's default route points to the NAT gateway, which uses Source Network Address Translation (SNAT) to translate private IPs to the static public IP.

Exam trap

The trap here is that candidates often think adding a public IP to VMs (Option A) is simpler or that service endpoints (Option C) can replace a NAT gateway for general internet access, but they fail to recognize that the existing UDR is the direct conflict preventing the NAT gateway from being the default route for outbound traffic.

Why the other options are wrong

A

Adding a public IP directly to each VM NIC would bypass the NAT gateway, causing each VM to use its own public IP instead of the single static public IP required by the business.

C

Enabling service endpoints does not affect outbound internet traffic routing; it only allows direct private access to Azure PaaS services from the subnet, bypassing the internet. The requirement is to remove the appliance inspection and use a NAT gateway for internet traffic, which is achieved by removing the conflicting UDR.

D

The question requires all outbound traffic to use one static public IP and no longer needs appliance inspection. Changing the NAT gateway to a zone-redundant SKU does not affect routing; it only provides high availability across availability zones, which is irrelevant to the stated requirements.

When would these options actually be correct?

A

This would be correct if the requirement was for each VM to have its own public IP for direct outbound connectivity, and no centralized public IP or NAT gateway was needed.

C

In a scenario where a subnet needs to securely access Azure Storage or SQL Database without going through the internet or a virtual appliance, enabling service endpoints would be the correct answer. For example, if the question asked 'How to ensure VMs in a subnet connect to Azure Storage using the Azure backbone network instead of the internet?'

D

An administrator needs to ensure NAT gateway availability during an availability zone failure. The question would specify that the NAT gateway is currently in a single zone and must tolerate zone outages, making zone-redundant SKU the correct choice.

Why candidates pick the wrong answer

A

Candidates may think that assigning a public IP to each VM is a straightforward way to provide internet access, without understanding that it conflicts with the NAT gateway's purpose of using a single static IP.

C

Candidates may confuse service endpoints with a method to control outbound internet traffic, thinking they can replace a NAT gateway or virtual appliance for internet access, when service endpoints are specifically for Azure PaaS services only.

D

Candidates may think a zone-redundant SKU is necessary for high availability or performance, but the question's focus is on routing and public IP consolidation, not redundancy.

Page 2

Page 3 of 14

Page 4