Courseiva

AZ-104 (AZ-104) — Questions 301375

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

Page 4

Page 5 of 14

Page 6
301
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

This option would be correct if the question required granting the Contributor role to specific users who are not part of a group or managed identity, and centralized management was not a requirement (e.g., a one-time assignment for a fixed team).

C

A question where a virtual machine or Azure function needs to access Azure resources (e.g., Key Vault, Storage) programmatically, and the solution must avoid storing credentials. Assigning Contributor to a managed identity would be correct.

D

This option would be correct if the question asked for granting Contributor role to all resources within an entire management group hierarchy, and the requirement was to manage access at the management group scope, not per team member changes.

Why candidates pick the wrong answer

A

Candidates may think that assigning roles directly to users is simpler and more straightforward, overlooking the need for centralized, scalable access management as team membership changes.

C

Candidates may confuse managed identities with security groups, thinking they can be used for role assignments to users, or they may recall that managed identities are a best practice for resource access without understanding their limitation to non-human identities.

D

Candidates may confuse management groups with security groups, thinking that assigning roles at the management group level provides centralized control, but they overlook that management groups control scope, not identity membership.

302
MCQmedium

You need an alert that emails administrators when CPU on VM-DB01 exceeds a threshold. Which two Azure Monitor components work together to achieve this?

A.A metric alert and an action group
B.A budget alert and a private DNS zone
C.A Recovery Services vault and a route table
D.An activity log export and a lock
AnswerA

The correct approach for a threshold-based email alert on CPU utilization is to create a metric alert rule that targets the VM's 'Percentage CPU' signal, and then associate that rule with an action group that contains an 'Email/SMS/Push/Voice' action configured to notify administrators. The action group is a self-contained set of notification preferences, and the metric alert evaluates the telemetry at a specified frequency (e.g., every 5 minutes) and fires when the threshold (e.g., >80%) is breached.

Why this answer

A metric alert monitors a specific performance metric (like CPU percentage) on a target resource (VM-DB01) and triggers when the value crosses a defined threshold. An action group defines the notification actions (e.g., sending an email to administrators) that execute when the alert fires. Together, they form the core alerting workflow in Azure Monitor: the metric alert evaluates the condition, and the action group delivers the response.

Exam trap

The trap here is that candidates confuse 'budget alerts' (cost-based) with 'metric alerts' (performance-based), or assume that activity logs capture VM-level metrics like CPU, when they only record control-plane events.

Why the other options are wrong

B

A budget alert monitors cost thresholds, not CPU performance, and a private DNS zone resolves names in a virtual network, not alerting. These components do not address CPU metric alerts or email notifications.

C

A Recovery Services vault is used for backup and disaster recovery, not for monitoring CPU metrics. A route table controls network traffic routing and has no role in alerting. Neither component can generate or deliver email alerts based on CPU thresholds.

D

Activity log export sends logs to a storage account or event hub, not directly to email administrators. A lock prevents accidental deletion or modification of resources but does not trigger email alerts. Neither component can create an email alert for CPU threshold.

When would these options actually be correct?

B

This option would be correct for a question like: 'You need to be notified when spending on a resource group exceeds a set amount, and ensure VMs can resolve custom domain names. Which two Azure components work together?'

C

You need to protect Azure VMs by enabling backup and configure network traffic routing to an on-premises network. Which two components would you use?

D

In a scenario where you need to export Azure activity logs to a storage account for long-term retention and compliance, and you want to prevent deletion of that storage account with a lock, then an activity log export and a lock would be correct.

Why candidates pick the wrong answer

B

Candidates may confuse 'budget alert' with 'metric alert' due to the word 'alert', and think a private DNS zone is needed for email delivery or network connectivity for alerts.

C

Candidates may confuse Recovery Services vault with Azure Monitor or think route tables are involved in alert delivery, or they may misremember the components needed for backup and networking scenarios.

D

Candidates may confuse activity log export with alerting, thinking it can send notifications, or they may think a lock is involved in security alerts. The term 'alert' in the question might lead them to consider any Azure component with 'log' or 'lock' as relevant.

303
MCQmedium

You need to run a script inside an Azure virtual machine after deployment to install application prerequisites. Which feature should you use?

A.Azure Policy
B.A Custom Script Extension
C.Boot diagnostics
D.A proximity placement group
AnswerB

The Custom Script Extension is an Azure VM extension that uses the Azure Guest Agent to download and execute a script on the VM, either during initial deployment via ARM template or on a running VM. It supports PowerShell and Bash, runs with system privileges, and is the standard way to run post-deployment configuration tasks like installing software or applying settings.

Why this answer

The Custom Script Extension (CSE) is the correct feature because it allows you to run a script inside an Azure VM after deployment, making it ideal for installing application prerequisites. CSE downloads and executes scripts on the VM, supporting both Windows (via PowerShell) and Linux (via Bash) environments, and can be applied during initial provisioning or to an existing VM.

Exam trap

The trap here is that candidates often confuse Azure Policy (a governance tool) with the Custom Script Extension (a VM-level execution tool), mistakenly thinking Policy can run scripts to enforce configurations inside the VM, when in reality Policy only audits or remediates Azure resource properties, not guest OS actions.

Why the other options are wrong

A

Azure Policy is used to enforce compliance rules and audit resource configurations, not to run scripts inside a VM after deployment.

C

Boot diagnostics captures serial console output and screenshots to troubleshoot VM boot failures, but it cannot run scripts or install software after deployment.

D

A proximity placement group is used to reduce network latency between Azure resources by ensuring they are physically close, not for running scripts or installing software on a VM after deployment.

When would these options actually be correct?

A

You need to ensure that all VMs in a subscription are deployed with a specific tag or have encryption enabled. Azure Policy would be used to audit or enforce those rules.

C

You need to troubleshoot why an Azure VM is not booting correctly after a configuration change. Boot diagnostics would provide the necessary logs and screenshots to identify the issue.

D

When the question asks how to minimize network latency between VMs in a high-performance computing workload, a proximity placement group would be the correct answer.

Why candidates pick the wrong answer

A

Candidates may confuse policy enforcement with post-deployment configuration tasks, thinking a policy can trigger script execution.

C

Candidates may confuse boot diagnostics with post-deployment configuration tools, thinking it can execute scripts during the boot process.

D

Candidates might confuse 'placement' with 'deployment' tasks, thinking it involves post-deployment configuration, or they may not fully understand the purpose of proximity placement groups.

304
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

B

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

C

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

D

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

When would these options actually be correct?

B

An administrator needs to prevent accidental deletion of a critical resource group containing production virtual machines. They should create a CanNotDelete resource lock on that resource group.

C

An administrator needs to grant a user the 'Contributor' role on a specific resource group so they can manage resources within it. In that scenario, creating a role assignment is the correct action.

D

An administrator needs to assign permissions to a virtual machine so it can access Azure Key Vault secrets without storing credentials. A managed identity would be the correct solution to authenticate the VM to Key Vault.

Why candidates pick the wrong answer

B

Candidates may confuse resource locks with policy assignments, thinking locks can enforce rules like allowed regions or tags, but locks only protect against deletion/modification, not compliance enforcement.

C

Candidates may confuse policy assignment (assigning an initiative) with role assignment, or think that applying policies requires granting permissions to an identity.

D

Candidates may confuse 'managed' with 'management' or think that a managed identity can 'manage' policies, or they may associate it with governance without understanding its actual authentication purpose.

305
MCQeasy

Based on the exhibit, which Azure connectivity option should the administrator use for the branch office?

A.Point-to-site VPN for each user laptop.
B.VNet peering between the branch office and Azure.
C.A service endpoint on the Azure subnet.
D.A site-to-site VPN connection to an Azure VPN gateway.
AnswerD

A site-to-site VPN is designed for a branch office network with a single edge device. It creates encrypted connectivity over the internet to Azure so users can reach private resources without setting up individual tunnels on every laptop.

Why this answer

A site-to-site VPN connection to an Azure VPN gateway (Option D) is the correct choice because it provides a persistent, encrypted tunnel between the branch office's on-premises network and Azure, enabling seamless connectivity for all users and devices at the branch without requiring per-user configuration. This aligns with the typical scenario where a branch office needs constant, secure access to Azure resources, and the VPN gateway supports IPsec/IKE protocols for site-to-site connections.

Exam trap

The trap here is that candidates often confuse VNet peering (Option B) as a hybrid connectivity solution, but it only works between Azure VNets and cannot connect on-premises networks, making site-to-site VPN the correct choice for branch office connectivity.

Why the other options are wrong

A

Point-to-site VPN connects individual user laptops to Azure, not the entire branch office network. The question requires a site-to-site connection for the whole office, not per-user access.

B

VNet peering connects virtual networks within Azure, not on-premises branch offices. It cannot extend an on-premises network to Azure; it only links Azure VNets together.

C

A service endpoint secures Azure service access from a virtual network but does not provide connectivity from an on-premises branch office to Azure; it is not a remote access or site-to-site connectivity solution.

When would these options actually be correct?

A

This would be correct in a scenario where the branch office has remote or mobile users who need individual VPN connections to access Azure resources, and there is no on-premises network gateway or static IP address for a site-to-site VPN.

B

A question where two Azure virtual networks in different regions or subscriptions need to be connected privately and directly, such as for resource sharing or network traffic routing between VNets.

C

A service endpoint would be correct in a scenario where the question asks how to restrict access to an Azure PaaS service (e.g., Azure Storage) to traffic originating only from a specific Azure subnet, ensuring private IP addresses are used and traffic stays on the Microsoft backbone.

Why candidates pick the wrong answer

A

Candidates may confuse point-to-site with site-to-site VPN, or think that providing per-user connectivity is sufficient for the branch office, overlooking the requirement for network-level connectivity.

B

Candidates may confuse VNet peering with hybrid connectivity, thinking it can connect on-premises networks to Azure, but it only works between Azure VNets.

C

Candidates may confuse service endpoints with VPN or connectivity options, thinking that enabling a service endpoint on a subnet somehow extends network connectivity to on-premises locations, when in fact it only controls access to Azure services from within Azure.

306
MCQmedium

A VM cannot connect to another VM on TCP 1433. You need to determine whether an NSG is blocking the flow and identify which rule applies. Which Network Watcher tool should you use?

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

IP flow verify is a Network Watcher diagnostic that tests a specific 5-tuple (source IP, destination IP, protocol, and port) against the effective NSG rules for a virtual machine's NIC. Running it with TCP and port 1433 between the two VMs instantly reports whether traffic is allowed or denied and identifies the exact rule name and priority that caused the decision. This tool is uniquely focused on NSG rule evaluation, making it the fastest way to pinpoint the rule responsible for blocking the session.

Why this answer

IP flow verify is the correct Network Watcher tool because it tests whether a packet is allowed or denied to or from a specific VM, based on a 5-tuple (source IP, destination IP, protocol, source port, destination port). For TCP 1433 (SQL Server), you can specify the exact flow parameters, and IP flow verify will evaluate all effective security rules, including NSG rules, and return the specific rule that allowed or denied the traffic.

Exam trap

The trap here is that candidates often confuse 'Connection troubleshoot' with 'IP flow verify' because both diagnose connectivity issues, but Connection troubleshoot provides a broader end-to-end path analysis without pinpointing the exact blocking rule, whereas IP flow verify is specifically designed to test a single flow and identify the exact NSG rule that applies.

Why the other options are wrong

A

Packet capture captures all traffic on a network interface but does not directly verify whether a specific NSG rule is blocking traffic or identify which rule applies. It requires manual analysis of captured packets to infer NSG behavior.

C

Connection troubleshoot checks for connectivity issues like latency, packet loss, and routing, but it does not specifically identify which NSG rule is blocking traffic. IP flow verify is designed to test whether traffic is allowed or denied by NSG rules and to pinpoint the exact rule.

D

Effective routes shows the effective routes applied to a VM, not NSG rules. It cannot identify whether an NSG is blocking traffic or which specific NSG rule applies.

When would these options actually be correct?

A

Use packet capture when you need to inspect the actual data packets (e.g., payload, headers) for troubleshooting application-level issues or analyzing traffic patterns, such as verifying encryption or detecting malformed packets.

C

Connection troubleshoot would be correct when you need to diagnose broader connectivity problems such as high latency, packet loss, or routing misconfigurations between VMs, not specifically to determine if an NSG rule is blocking traffic.

D

When troubleshooting connectivity issues caused by incorrect routing (e.g., missing default route or misconfigured user-defined routes), effective routes would be the correct tool to identify the problem.

Why candidates pick the wrong answer

A

Candidates may think packet capture can reveal blocked traffic by showing dropped packets, but it does not provide rule-level NSG diagnostics and is more complex than IP flow verify.

C

Candidates may think 'troubleshoot' implies a comprehensive check that includes NSG rules, but they overlook that IP flow verify is the dedicated tool for NSG rule analysis.

D

Candidates may confuse network security group rules with routing rules, thinking that effective routes includes NSG information, or they may assume that any connectivity issue is routing-related.

307
MCQmedium

A three-tier application uses separate web and app VMs that are scaled in and out regularly. The administrator must allow only the web tier to connect to the app tier on TCP 8080 without continually updating IP addresses. What should be configured in the NSG rule?

A.Use application security groups for the web and app tiers and reference those groups in the NSG rule.
B.Add a subnet-to-subnet peering connection between the web and app subnets.
C.Create a load balancer backend pool rule for TCP 8080.
D.Use a user-defined route that sends TCP 8080 traffic to the app tier.
AnswerA

Application security groups let the administrator group VMs by role rather than by IP address. The NSG rule can then allow traffic from the web ASG to the app ASG on TCP 8080. This is a good fit for environments that scale or change frequently because the NSG does not need constant editing whenever VM addresses change.

Why this answer

Application security groups (ASGs) allow you to group VMs logically by their application role (e.g., web tier, app tier) and reference those groups directly in NSG rules. This eliminates the need to maintain individual IP addresses or CIDR ranges when VMs scale in or out, because the NSG rule dynamically applies to all VMs in the ASG. By creating an inbound NSG rule that allows TCP 8080 from the web-tier ASG to the app-tier ASG, the administrator achieves the required connectivity without manual IP updates.

Exam trap

The trap here is that candidates often confuse network-level controls (like UDRs or VNet peering) with application-layer access control, or they incorrectly assume that a load balancer rule can replace a security rule for source-based filtering.

Why the other options are wrong

B

Subnet-to-subnet peering is not a valid Azure construct; VNet peering connects entire virtual networks, not subnets. Additionally, peering does not filter traffic by port or protocol, so it would not restrict connections to TCP 8080.

C

A load balancer backend pool rule distributes incoming traffic to backend VMs, but it does not restrict which source tier can connect. It also does not solve the problem of dynamically updating IP addresses for scaled VMs.

D

User-defined routes (UDRs) control traffic routing between subnets or to virtual appliances, not access control. They cannot filter traffic by port or application; NSG rules are required to allow or deny traffic based on port and protocol.

When would these options actually be correct?

B

This option could be correct if the question asked: 'How to enable communication between two virtual networks in different regions without using a gateway?' In that case, VNet peering (often mistakenly called subnet peering) would be the answer.

C

This option would be correct in a scenario where the goal is to distribute incoming TCP 8080 traffic from the internet or a frontend to a set of backend VMs, and the question asks for a load balancing solution without specifying source IP constraints.

D

A question where traffic must be forced through a network virtual appliance (e.g., firewall) for inspection before reaching the app tier. For example: 'You need to ensure all traffic from web to app tier passes through a firewall. What should you configure?'

Why candidates pick the wrong answer

B

Candidates may confuse subnet-to-subnet peering with VNet peering, assuming it provides a direct, secure connection between subnets without needing IP updates, and overlook that NSGs are required for port-specific filtering.

C

Candidates may think a load balancer can control access between tiers, confusing its traffic distribution function with security filtering, or they may assume it can replace NSG rules for inter-tier communication.

D

Candidates may confuse routing with access control, thinking that directing traffic via UDRs can also restrict which sources can connect, or they may believe UDRs can filter traffic based on port.

308
Multi-Selectmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

D

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

E

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

When would these options actually be correct?

D

If the question specified that governance must be applied only to existing subscriptions and not to future ones, and the management group was not involved, then assigning policies individually to each subscription would be appropriate.

E

If the question asked for assigning permissions to a team to manage resources in a subscription, then assigning a Contributor role at the subscription scope would be correct. For example, 'You need to grant a team the ability to create and manage resources in a subscription. Which action should you take?'

Why candidates pick the wrong answer

D

Candidates may think that applying policies directly to subscriptions is sufficient, overlooking the need for automatic enforcement on new subscriptions and the efficiency of management group assignment.

E

Candidates may confuse RBAC with Azure Policy, thinking that assigning a role can enforce compliance, or they may assume Contributor role includes policy enforcement capabilities.

309
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

B

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

C

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

When would these options actually be correct?

A

If the question asked how to allow the finance team to view resource costs without making changes, assigning a Reader role would be correct. For example: 'The finance team needs to review resource costs but should not be able to modify resources. What should you configure?'

B

In a scenario where the finance team needs to audit or review resource costs and tags across subscriptions, assigning a Reader role at the subscription or resource group level would grant them read-only access to view tag values and cost data without making changes.

C

If the question asked for a method to prevent accidental deletion of critical resources in a resource group, applying a CanNotDelete lock would be the correct answer.

Why candidates pick the wrong answer

A

Candidates may think manual tagging is a simple, direct solution and underestimate the need for automation, or they may not fully understand Azure Policy capabilities for tag inheritance.

B

Candidates may confuse role-based access control (RBAC) with governance features like Azure Policy, thinking that granting read access somehow enables automatic tagging or enforcement.

C

Candidates may confuse locks with policies, thinking that a lock can enforce tag inheritance, or they may assume that preventing deletion somehow ensures tag consistency.

310
MCQmedium

Based on the exhibit, the security team wants AppSubnet to access an Azure Storage account through the public endpoint, but only that subnet should be allowed. They do not want a private IP or DNS changes. What should the administrator configure?

A.Enable the Microsoft.Storage service endpoint on AppSubnet and add AppSubnet as a network rule on the storage account.
B.Create a private endpoint for the storage account and disable public access.
C.Attach a route table that sends storage traffic to the internet.
D.Grant the subnet a Reader role assignment on the storage account.
AnswerA

This keeps the storage account on its public endpoint while restricting access to the selected subnet. Service endpoints identify the traffic as coming from the approved VNet, and the storage firewall rule then allows only AppSubnet. Because no private IP or DNS change is needed, this is the best fit for the requirement.

Why this answer

Enabling the Microsoft.Storage service endpoint on AppSubnet allows traffic from that subnet to reach the storage account over the Azure backbone network using the public endpoint, without requiring a private IP or DNS changes. Adding AppSubnet as a network rule on the storage account restricts access exclusively to that subnet, fulfilling the security team's requirement.

Exam trap

The trap here is that candidates often confuse service endpoints (which use public endpoints with subnet-level restriction) with private endpoints (which use private IPs and DNS changes), leading them to choose the private endpoint option despite the explicit 'no private IP or DNS changes' constraint.

Why the other options are wrong

B

The question explicitly states the security team does not want a private IP or DNS changes, and they want to use the public endpoint. A private endpoint assigns a private IP and changes DNS resolution, contradicting these requirements.

C

Attaching a route table that sends storage traffic to the internet does not restrict access to only AppSubnet; it merely forces traffic to the internet, which is the default behavior and does not enforce subnet-level access control.

D

A Reader role assignment grants read-only access to the storage account resource itself, not network access to the data plane. It does not control which subnets can reach the storage account's public endpoint.

When would these options actually be correct?

B

This option would be correct if the requirement was to ensure the storage account is not accessible from the public internet at all, and the subnet needs a private, secure connection with no public exposure. For example, a compliance mandate requiring all storage traffic to stay within the Microsoft backbone.

C

An administrator needs to force all traffic from a subnet to an Azure Storage account to go through a network virtual appliance (NVA) for inspection, and the storage account has a firewall that allows only the NVA's public IP. In that case, a route table with a user-defined route to the NVA would be correct.

D

If the question asked for granting read-only management permissions to a subnet's resources (e.g., allowing a subnet to view storage account configuration in the portal) without any network access control, then assigning the Reader role would be correct.

Why candidates pick the wrong answer

B

Candidates may think a private endpoint is the most secure option for subnet-only access, overlooking the explicit constraint against private IPs and DNS changes in the question.

C

Candidates may think that routing storage traffic to the internet is necessary because the storage account uses a public endpoint, but they overlook that the question's goal is to restrict access to a specific subnet, not to control the path of traffic.

D

Candidates may confuse Azure RBAC roles with network access controls, thinking that a role assignment can restrict which subnet can access the storage account's data endpoint.

311
Multi-Selectmedium

A team wants to monitor average CPU on a small set of Linux VMs and OS disk free space, but they want the lowest telemetry ingestion cost possible. Which two actions should they take? Select two.

Select 2 answers
A.Use a metric alert for the VM CPU metric.
B.Install Azure Monitor Agent and collect only the disk-free-space counter by using a minimal data collection rule.
C.Enable full VM Insights for every guest performance counter.
D.Stream all syslog and event logs to a workspace before creating any alert.
E.Rely on Azure Resource Health to measure guest OS disk free space.
AnswersA, B

Azure Monitor exposes the Percentage CPU metric for Azure VMs at the hypervisor level, independent of the guest OS or any agent. A metric alert can evaluate this time series continuously, trigger on average CPU thresholds, and does not incur Log Analytics ingestion costs since the data is already collected by the platform. For a small set of Linux VMs, this is the most direct and cost-effective monitoring path because it produces no additional telemetry and supports sub-minute evaluation frequencies.

Why this answer

Metric alerts for VM CPU are based on platform metrics collected automatically by Azure, incurring no additional ingestion cost. This allows monitoring average CPU without any agent or data collection rule, making it the lowest-cost approach for that metric.

Exam trap

The trap here is that candidates often assume all monitoring requires agents and log ingestion, overlooking that platform metrics (like CPU) are free and agentless, while guest OS metrics (like disk space) can be collected with minimal cost by restricting the DCR to only the needed counter.

Why the other options are wrong

C

Enabling full VM Insights collects many performance counters beyond just CPU and disk free space, significantly increasing telemetry ingestion costs, which contradicts the goal of lowest cost.

D

Streaming all syslog and event logs to a workspace incurs significant ingestion costs, which contradicts the goal of lowest telemetry ingestion cost. The question only requires monitoring CPU and disk free space, not all logs.

E

Azure Resource Health does not monitor guest OS metrics like disk free space; it only tracks Azure resource-level health (e.g., VM availability, host issues). It cannot measure OS-level performance counters.

When would these options actually be correct?

C

If the question asked for comprehensive monitoring of VM performance and health, including memory, network, and disk I/O, with cost being a secondary concern, enabling full VM Insights would be appropriate.

D

If the question required comprehensive security auditing or compliance logging for all VMs, and cost was not a primary constraint, then streaming all syslog and event logs to a workspace would be correct to ensure full log collection and analysis.

E

If the question asked about monitoring the health of Azure resources (e.g., VM availability, platform issues) without needing guest OS metrics, Azure Resource Health would be the correct choice for low-cost, built-in monitoring.

Why candidates pick the wrong answer

C

Candidates may think VM Insights is the standard way to monitor guest OS metrics and assume it's necessary for any performance monitoring, overlooking the cost implications of collecting unnecessary counters.

D

Candidates may think that collecting all logs is necessary for monitoring, or they may confuse the need for logs with the simpler metric and counter requirements, leading to over-collection.

E

Candidates may confuse 'Resource Health' with 'guest OS health' or assume it covers OS-level metrics, especially since the name implies comprehensive health monitoring.

312
MCQeasy

A VM in a subnet must send traffic to 172.16.0.0/16 through a network virtual appliance, but all other destinations should continue using the default Azure system routes. What should the administrator add to the subnet route table?

A.A route for 0.0.0.0/0 with next hop Virtual appliance.
B.A route for 172.16.0.0/16 with next hop Virtual appliance.
C.An NSG deny rule for all other destinations.
D.A service endpoint for the 172.16.0.0/16 network.
AnswerB

A specific user-defined route (UDR) for 172.16.0.0/16 with next hop set to a virtual appliance is correct because Azure selects the most specific route (longest-prefix match). This route overrides the system route for that exact destination, so only traffic bound for 172.16.0.0/16 is sent to the appliance. All other traffic continues to follow existing system routes, meeting the requirement without causing unnecessary hair-pinning.

Why this answer

The requirement is to route traffic destined for 172.16.0.0/16 through a network virtual appliance (NVA) while leaving all other traffic to use the default Azure system routes. Adding a user-defined route (UDR) with destination 172.16.0.0/16 and next hop Virtual appliance overrides the default system route for that specific prefix, ensuring traffic to that range is forwarded to the NVA. All other destinations remain unaffected because the 0.0.0.0/0 default route is not modified.

Exam trap

The trap here is that candidates often confuse the 0.0.0.0/0 route (which controls all internet-bound traffic) with a specific prefix route, mistakenly thinking they must add a default route to force traffic through the NVA, when in fact only the specific destination prefix needs a custom route.

Why the other options are wrong

A

A route for 0.0.0.0/0 with next hop Virtual appliance would redirect all internet-bound and other traffic to the appliance, not just traffic to 172.16.0.0/16. The requirement is to only route traffic to 172.16.0.0/16 through the appliance while keeping default system routes for other destinations.

C

An NSG deny rule for all other destinations would block traffic to all destinations except those explicitly allowed, but the requirement is to only redirect traffic to 172.16.0.0/16 through the NVA while keeping default system routes for other destinations. NSGs are stateful and do not affect traffic routing; they filter traffic but do not change the next hop.

D

Service endpoints are used to secure Azure service traffic to a virtual network, not to route traffic to on-premises or non-Azure destinations like 172.16.0.0/16. They do not affect routing behavior for arbitrary IP ranges.

When would these options actually be correct?

A

This option would be correct if the requirement was to force all outbound traffic (including internet traffic) through a network virtual appliance for inspection or logging, while still allowing internal traffic to use default routes. For example, a question asking to route all egress traffic through a firewall.

C

This option would be correct in a scenario where the requirement is to restrict all outbound traffic from a subnet except to a specific destination, and the traffic must be blocked rather than routed. For example, a question asking: 'You need to ensure that VMs in a subnet can only communicate with 172.16.0.0/16 and all other traffic is denied. What should you configure?'

D

A service endpoint would be correct if the question asked for securing traffic to an Azure service (e.g., Azure Storage or SQL Database) from a subnet, ensuring that traffic remains on the Azure backbone and is not routed through the internet.

Why candidates pick the wrong answer

A

Candidates may think that a default route (0.0.0.0/0) is needed to override system routes for all traffic, but they overlook the specific requirement to only redirect traffic to a particular subnet.

C

Candidates may think that denying all other destinations with an NSG is a simpler way to force traffic through the NVA, misunderstanding that NSGs do not control routing paths but only filter traffic based on rules.

D

Candidates may confuse service endpoints with custom routing because both involve directing traffic to specific destinations, but service endpoints are for Azure services only, not general IP ranges.

313
MCQmedium

A VM sends traffic to 172.16.5.10, but the administrator suspects the traffic is taking an unexpected next hop. They want to see the effective route table applied to the VM NIC, including system routes, user-defined routes, and propagated routes. Which Network Watcher tool should be used?

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

Effective routes displays the full route set that applies to a VM NIC, including system, user-defined, and propagated routes. That makes it the right tool when you need to understand why traffic is taking a particular next hop.

Why this answer

Effective routes is the correct Network Watcher tool because it displays the complete route table applied to a VM NIC, including system routes, user-defined routes (UDRs), and BGP-propagated routes from virtual network gateways. This allows the administrator to see exactly which next hop is selected for traffic to 172.16.5.10 based on the longest prefix match, identifying any unexpected routing behavior.

Exam trap

The trap here is that candidates often confuse IP flow verify (which checks NSG rules) with effective routes (which checks routing), leading them to pick A when the question explicitly asks about the route table and next hop, not firewall rules.

Why the other options are wrong

A

IP flow verify tests connectivity by checking if traffic is allowed or denied between a source and destination, but it does not show the effective route table or next hop information.

C

Packet capture captures raw network traffic for analysis, but it does not show the effective route table applied to a VM NIC. The question specifically asks for the tool to view effective routes, not to capture packets.

D

Connection troubleshoot is used to check TCP connectivity between a source and destination, not to view the effective route table applied to a VM NIC.

When would these options actually be correct?

A

When the question asks to confirm whether traffic to a specific IP is allowed or blocked by network security groups (NSGs) or firewall rules, IP flow verify is the correct tool.

C

Packet capture would be correct if the question asked: 'An administrator needs to capture inbound and outbound traffic to a VM to analyze a network anomaly. Which Network Watcher tool should be used?'

D

When an administrator needs to diagnose why a VM cannot connect to a specific IP address or port, and wants to check for blocking NSGs, user-defined routes, or latency issues along the path.

Why candidates pick the wrong answer

A

Candidates may confuse IP flow verify with route verification because both involve network troubleshooting, but IP flow verify focuses on security rules, not routing.

C

Candidates may confuse packet capture with route analysis, thinking that capturing packets will reveal the path traffic takes, but packet capture only shows the traffic content, not the routing decisions.

D

Candidates may confuse 'troubleshoot' with 'diagnose routing issues' and think Connection troubleshoot covers all network diagnostics, including route inspection.

314
Multi-Selecthard

A platform team maintains a hardened Windows VM with IIS, an agent, and local configuration files. They need to deploy 40 identical VMs in two regions, preserve version history, and roll back quickly if a new image causes problems. Which two actions should they take? Select two.

Select 2 answers
A.Generalize the source VM before capture by removing machine-specific state.
B.Create an image definition and image version in Azure Compute Gallery.
C.Place the target virtual machines in an availability set.
D.Attach a user-assigned managed identity to the source VM.
E.Enable boot diagnostics on the target virtual machines.
AnswersA, B

Correct. Generalizing removes unique computer-specific settings so the image can be safely cloned many times.

Why this answer

Generalizing the source VM with Sysprep (for Windows) removes machine-specific state like security identifiers (SIDs) and hostnames, making the VM suitable for creating a reusable, generalized image. This is a prerequisite for capturing an image that can be deployed to multiple VMs without conflicts. Without generalization, each VM would retain the original machine's identity, causing domain join and licensing issues.

Exam trap

The trap here is that candidates often confuse 'generalizing the source VM' with 'creating a snapshot' or 'using managed identities,' failing to recognize that Sysprep is mandatory for Windows images and that Azure Compute Gallery is the only service that provides versioning and cross-region replication for managed images.

Why the other options are wrong

C

Availability sets provide high availability for VMs within a single region by distributing them across fault and update domains, but they do not address the need to deploy identical VMs across two regions, preserve version history, or enable quick rollback of images.

D

Attaching a user-assigned managed identity to the source VM is not required for creating and deploying images via Azure Compute Gallery; it does not address version history or rollback needs.

E

Boot diagnostics help troubleshoot VM boot failures but do not support versioning, rollback, or multi-region deployment of identical VMs from a captured image.

When would these options actually be correct?

C

When the question asks for a method to ensure high availability for a set of VMs within a single region, such as 'You need to deploy three VMs running the same application and ensure that they are not all affected by a single hardware failure or update event.'

D

A question where a VM needs to authenticate to Azure resources (e.g., Azure Key Vault, storage) without storing credentials, and the solution requires granting specific permissions via a managed identity.

E

When a question asks how to troubleshoot a VM that fails to boot or needs serial console access to diagnose startup issues, enabling boot diagnostics is the correct action.

Why candidates pick the wrong answer

C

Candidates may confuse availability sets with image management or think that availability sets help with version control or rollback, not realizing they are purely for high availability within a region.

D

Candidates may confuse managed identities with image management or think they are needed for the capture process, but they are unrelated to image versioning and rollback.

E

Candidates may confuse boot diagnostics with a feature that aids in image management or rollback, or they might think it's necessary for verifying that the new image works correctly.

315
MCQmedium

A reporting team stores read-only analytics files in Azure Blob Storage. The files must replicate to a paired region so they survive a regional outage, and analysts want to read the secondary copy through the secondary endpoint without waiting for failover. Which redundancy option should the administrator choose?

A.LRS
B.ZRS
C.GRS
D.RA-GRS
AnswerD

RA-GRS asynchronously copies your blobs to a paired secondary region and exposes a read-only endpoint for that replica without requiring any failover. This always-available secondary read access is exactly what the analysts need to query analytics files from a different geographic location, with a typical 15-minute RPO. Because the secondary is readable even during normal operation, RA-GRS uniquely satisfies the requirement among the redundancy options.

Why this answer

RA-GRS (Read-Access Geo-Redundant Storage) is the correct choice because it replicates data to a paired secondary region (geo-redundancy) and enables read access to the secondary copy via the secondary endpoint without requiring a failover. This meets the requirement for both regional disaster recovery and immediate read access to the secondary copy.

Exam trap

The trap here is that candidates often confuse GRS with RA-GRS, assuming that GRS automatically provides read access to the secondary copy, but in reality, GRS requires a failover to make the secondary endpoint readable, while RA-GRS explicitly enables read access without failover.

Why the other options are wrong

A

LRS replicates data only within a single datacenter, not to a paired region, so it does not survive a regional outage or provide a secondary endpoint for read access.

C

GRS replicates data to a paired region for regional disaster recovery, but it does not provide read access to the secondary copy unless a failover occurs. The question requires analysts to read the secondary copy through the secondary endpoint without waiting for failover, which only RA-GRS supports.

When would these options actually be correct?

A

An administrator needs to store temporary, non-critical data that can be lost if a single rack fails, and cost is the primary concern. LRS is the cheapest option and sufficient for data that can be easily regenerated.

C

A company needs geo-redundant storage for disaster recovery but does not require immediate read access to the secondary region. They are willing to initiate a manual failover to access the secondary copy if the primary region fails.

Why candidates pick the wrong answer

A

Candidates may choose LRS because it is the simplest and lowest-cost option, overlooking the requirement for regional disaster recovery and secondary read access.

C

Candidates may confuse GRS with RA-GRS, assuming that geo-replication automatically allows reading from the secondary endpoint, or they may overlook the 'read-access' distinction in the question.

316
MCQeasy

A company stores customer documents in Azure Blob Storage. The business requires the data to stay available if one availability zone in the region has an outage. Which redundancy option should the administrator choose?

A.Locally redundant storage (LRS)
B.Zone-redundant storage (ZRS)
C.Geo-redundant storage (GRS)
D.Read-access geo-redundant storage (RA-GRS)
AnswerB

Zone-redundant storage (ZRS) is the correct choice because it synchronously replicates your data across three availability zones within the same Azure region. If a single zone fails, the Blob Storage endpoints remain available because the other zones continue serving requests, and data is still durable with no manual failover required. ZRS achieves high availability (99.99% SLA) and durability (12 nines) while keeping the performance and access characteristics identical to using a single regional endpoint.

Why this answer

Zone-redundant storage (ZRS) replicates data synchronously across three Azure availability zones within a primary region, ensuring data remains accessible if one zone fails. This meets the requirement for intra-region zone-level fault tolerance without the cost or complexity of geo-replication.

Exam trap

The trap here is that candidates often confuse 'zone redundancy' with 'geo-redundancy' and pick GRS or RA-GRS, not realizing that those options protect against region-wide outages, not zone-level failures within a single region.

Why the other options are wrong

A

LRS replicates data within a single availability zone, so it cannot survive an entire zone outage, which is the requirement in this question.

C

Geo-redundant storage (GRS) replicates data to a secondary region, not within the same region's availability zones. It protects against region-wide outages, not zone failures within a single region.

D

RA-GRS provides read access to a secondary region, but the question requires availability during an availability zone outage within the same region, not a regional disaster. RA-GRS does not protect against zone failures because it relies on regional replication, not zone-level redundancy.

When would these options actually be correct?

A

LRS would be correct if the requirement is to protect against server rack or disk failures within a single datacenter, and cost minimization is prioritized over zone-level resilience.

C

A company requires data to survive a complete regional outage (e.g., due to a natural disaster) and can tolerate a longer recovery time. The question would specify 'region failure' instead of 'availability zone failure'.

D

RA-GRS would be correct if the question required data to remain available during a region-wide outage and also needed read access to the secondary region for disaster recovery or compliance purposes, such as 'A company needs to ensure data is readable from a secondary region if the primary region fails.'

Why candidates pick the wrong answer

A

Candidates may confuse LRS as sufficient because it provides local redundancy, overlooking that it does not span multiple zones, which is needed for zone outage protection.

C

Candidates may confuse 'redundancy' with 'geo-redundancy', assuming that any multi-site replication provides zone-level protection, or they may over-engineer the solution without reading the requirement for zone-specific resilience.

D

Candidates may confuse 'availability zone outage' with 'regional outage' and think RA-GRS offers higher availability, or they may overvalue the read-access feature without considering the specific failure scenario described.

317
Drag & Dropmedium

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

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

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

Why this order

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

318
MCQhard

You need to resize a production VM from Standard_D2s_v5 to Standard_D4s_v5 by using Azure CLI. `az vm list-vm-resize-options` shows the target size, but `az vm resize` fails while the VM is running. Which action should you take first?

A.Run `az vm stop`, then resize the VM.
B.Run `az vm deallocate`, then resize the VM, then start it again.
C.Run `az vm restart`, then resize the VM.
D.Run `az vm generalize`, then recreate the VM from the image.
AnswerB

Azure often requires the VM to be deallocated before a size change succeeds because the target size may need different host resources. Deallocation releases the current compute allocation, which lets Azure place the VM on compatible hardware. After resizing, you start the VM again and the new size takes effect. This is the key difference between stop and deallocate in Azure operations.

Why this answer

Resizing a VM to a different size often requires the VM to be in a deallocated state, especially when the new size is in a different hardware cluster or when the VM is currently running and the resize operation fails. The `az vm deallocate` command releases the underlying hardware resources, allowing the VM to be resized to any available size, including Standard_D4s_v5, and then you can start it again. This is a common requirement for production VMs when live resizing is not supported or fails.

Exam trap

The trap here is that candidates often confuse 'stop' with 'deallocate' — while both halt the VM, only deallocate releases the underlying hardware reservation, which is necessary for resizing across different hardware clusters or when live resize fails.

Why the other options are wrong

A

Stopping a VM (az vm stop) does not release the underlying hardware resources; resizing may still fail if the target size is unavailable in the current cluster. Deallocation is required to free the VM from its host and allow resizing to any size.

C

Restarting the VM does not change its allocation state; the resize operation requires the VM to be in a deallocated state (stopped and de-provisioned) to change the VM size, as the new size may require different resources. A restart only reboots the VM without releasing the underlying hardware.

D

Generalize prepares the VM for image creation and is not used for resizing; it would require recreating the VM, which is unnecessary and disruptive for a simple resize operation.

When would these options actually be correct?

A

If the question specified that the target size is available in the same cluster and the VM needs only a brief pause (e.g., for a quick configuration change), stopping the VM would be sufficient and faster than deallocating.

C

If the question described a scenario where the VM needs to apply a new configuration or update that only takes effect after a reboot (e.g., changing disk caching settings or installing a driver), then running `az vm restart` before the operation would be the correct first step.

D

When you need to capture a generalized image of a VM to reuse in multiple deployments, such as creating a custom image from a configured VM for scaling out.

Why candidates pick the wrong answer

A

Candidates may think stopping the VM is enough to resize, confusing 'stop' with 'deallocate', or they may want to minimize downtime by avoiding the longer deallocation process.

C

Candidates may think that restarting the VM is sufficient to free up resources or reset the state, similar to how a reboot can resolve some software issues, but they overlook that Azure VM resizing requires deallocation to release the current hardware allocation.

D

Candidates may confuse the steps for resizing with those for creating a reusable image, or they might think generalize is a necessary step before any major VM modification.

319
Multi-Selecthard

VM-App01 is responding slowly and appears to be on a degraded Azure host. You must keep the VM resource, keep its disks and NIC, and move it to fresh infrastructure before further troubleshooting. Which two actions can achieve that goal? Select two.

Select 2 answers
A.Redeploy the VM.
B.Delete the VM and recreate it from the OS disk.
C.Capture the VM into a generalized image.
D.Stop/deallocate the VM.
E.Convert the VM to an availability set.
AnswersA, D

Redeploying a VM is an Azure-specific recovery operation that releases the current host node and re-provisions the VM onto a new healthy node, while preserving the VM object, managed disks, NIC, and IP addresses. This is the most direct remediation when the underlying physical host is suspected of causing performance degradation, because a simple restart keeps you on the same problematic host. Azure's redeploy API performs a controlled shutdown, migrates the VM's state, and boots it on fresh infrastructure, so it is the correct first step for host-related health issues.

Why this answer

Redeploying the VM (Option A) moves the VM to a new Azure host node while preserving the VM resource, its disks, and NIC. This is the correct action because it resolves host-level degradation without deleting or recreating the VM. Stopping/deallocating the VM (Option D) releases the underlying hardware lease, which forces the VM to be placed on a new host when started again, also preserving the VM resource, disks, and NIC.

Exam trap

The trap here is that candidates often confuse 'Redeploy' with 'Delete and recreate' or think that stopping the VM is insufficient, but in Azure, stop/deallocate is the standard way to force a host migration while keeping the VM resource intact.

Why the other options are wrong

B

Deleting the VM and recreating it from the OS disk does not preserve the original VM resource, disks, and NIC as a single unit; it creates a new VM with a new resource ID, potentially losing the original VM's configuration and NIC association.

C

Capturing the VM into a generalized image removes machine-specific configurations (like SID and hostname) and is intended for creating reusable images, not for moving a degraded VM to fresh infrastructure while keeping its disks and NIC intact.

E

Converting a VM to an availability set does not move it to fresh infrastructure; it only adds high availability by grouping VMs, but the VM remains on the same degraded host until redeployed or stopped/deallocated.

When would these options actually be correct?

B

When the goal is to recover a VM from a failed OS disk by creating a new VM using the existing OS disk (e.g., after accidental deletion or disk corruption), and you are allowed to lose the original VM resource and NIC.

C

When you need to create a reusable, standardized image from a VM to deploy multiple identical VMs, and you are willing to lose the original VM's identity and specific configurations.

E

You need to ensure high availability for a critical VM by grouping it with other VMs in an availability set to protect against rack-level failures within an Azure datacenter.

Why candidates pick the wrong answer

B

Candidates may think recreating from the OS disk is a way to move the VM to new infrastructure while keeping the disk, but they overlook that the original VM resource and NIC are not preserved, and the process is more disruptive than redeploying.

C

Candidates may confuse 'capture' with 'move' or think that creating an image is a way to preserve the VM state, not realizing that generalization resets the VM and does not retain the original disks and NIC for direct reuse.

E

Candidates may think that adding the VM to an availability set forces Azure to move it to a different physical host, but availability sets only affect placement for future VMs, not existing ones.

320
MCQhard

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

B

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

C

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

D

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

When would these options actually be correct?

B

A custom RBAC role would be correct in a scenario where you need to grant specific permissions (e.g., 'Microsoft.Resources/subscriptions/resourceGroups/write') to a security principal across multiple subscriptions, and you want to define a custom set of actions not covered by built-in roles. The question would specify access control, not resource compliance.

C

You need to prevent accidental deletion of critical resources across multiple subscriptions. A CanNotDelete lock applied at the management group scope would be inherited by all child subscriptions, protecting those resources from deletion.

D

A question asking how to receive notifications when subscription spending exceeds a defined amount, without preventing deployments, would make budget alerts the correct answer.

Why candidates pick the wrong answer

B

Candidates may confuse RBAC with governance policies, thinking that restricting permissions to certain regions via a custom role would prevent deployments in disallowed regions, but RBAC does not filter allowed locations during resource creation.

C

Candidates may confuse locks with policies, thinking that a lock can restrict resource creation or configuration, when locks only affect deletion or modification operations.

D

Candidates may confuse cost governance with resource governance, thinking that budget controls can also restrict region selection.

321
MCQmedium

A subnet contains several application servers. You need to allow inbound TCP 3389 only from a management subnet named Subnet-Mgmt and deny RDP from all other sources. What should you do?

A.Create an NSG rule allowing TCP 3389 from the Subnet-Mgmt address range and rely on the default deny afterward.
B.Create a route table that sends RDP traffic to the management subnet.
C.Deploy a private endpoint for each application server.
D.Enable service endpoints on the application subnet.
AnswerA

An NSG rule with source 'Subnet-Mgmt', destination 'Any', and destination port 3389 (TCP) will explicitly allow RDP only from that management subnet. Because the default inbound deny rule (priority 65000) blocks all other sources, any connection attempt from outside the prefix is implicitly rejected. This is the standard least-privilege approach for restricting administrative access to VMs, and it works at the network layer without requiring a separate appliance or routing change.

Why this answer

Network Security Groups (NSGs) in Azure filter traffic based on rules that are evaluated in priority order. By creating an inbound rule that allows TCP 3389 (RDP) from the Subnet-Mgmt address range, and relying on the default implicit deny rule that blocks all other inbound traffic, you effectively restrict RDP access to only the management subnet. No additional configuration is needed to deny traffic from other sources, as the default deny handles that automatically.

Exam trap

The trap here is that candidates often think they need to explicitly create a deny rule for all other sources, not realizing that NSGs have a built-in default deny rule that automatically blocks traffic not matching any allow rule.

Why the other options are wrong

B

Route tables control traffic routing between subnets, not security filtering. They cannot deny or allow specific ports like RDP (3389); they only determine the next hop for traffic.

C

Private endpoints are used to securely access Azure PaaS services over a private IP address, not to restrict inbound RDP traffic to VMs. They do not filter network traffic like NSGs and cannot deny RDP from specific subnets.

D

Service endpoints secure Azure service traffic to a virtual network, not inbound RDP access. They do not filter or deny traffic like NSG rules, so they cannot restrict RDP from specific subnets.

When would these options actually be correct?

B

If the question asked to force RDP traffic from the application subnet to go through a network virtual appliance (NVA) in the management subnet for inspection, then a route table with a route for 3389 traffic to the NVA would be correct.

C

When you need to securely connect to an Azure PaaS service (e.g., Azure SQL Database, Storage Account) from a virtual network, ensuring traffic never traverses the public internet. The question would specify a PaaS service and require private connectivity.

D

When you need to restrict access from a subnet to an Azure PaaS service (e.g., Azure Storage or SQL Database) to only allow traffic from that subnet, you would enable a service endpoint and create a firewall rule on the service.

Why candidates pick the wrong answer

B

Candidates may confuse routing with security filtering, thinking that directing RDP traffic to the management subnet implicitly restricts access, or they may overestimate the capabilities of route tables.

C

Candidates may confuse private endpoints with network security controls, thinking they can restrict access to VMs, or they may overcomplicate the solution by introducing a feature designed for PaaS services instead of using a simple NSG rule.

D

Candidates may confuse service endpoints with network security controls, thinking they can restrict inbound traffic to VMs, or they may misapply the concept of securing resources to a virtual network.

322
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

If the requirement were to allow starting, deallocating, and managing VMs (including deletion and networking) for all VMs in a subscription, then assigning Virtual Machine Contributor at subscription scope would be appropriate.

C

If the requirement were only to read VM settings and not to start or deallocate VMs, assigning the Reader role at the resource group scope would be the best solution.

D

Assign the Owner role at the resource group scope would be correct if the requirement was to grant full control over all resources in the resource group, including the ability to delete VMs and manage networking, with no restrictions.

Why candidates pick the wrong answer

A

Candidates may think Virtual Machine Contributor covers start/stop and reading settings, but overlook that it includes delete and networking permissions, and that subscription scope is broader than needed.

C

Candidates may think Reader is sufficient because it allows reading settings, but they overlook the need for start/deallocate actions, which require a role with Virtual Machine Contributor permissions.

D

Candidates may think Owner is necessary to start/stop VMs, not realizing that more restrictive roles like Contributor or custom roles can also perform these actions without granting excessive permissions.

323
MCQmedium

Backend virtual machines are rebuilt frequently and often receive different private IP addresses. An administrator must allow the frontend tier to reach the backend tier on TCP 8443 without editing NSG rules every time the backend IP changes. What should the administrator use in the NSG rule?

A.A static private IP address for each backend VM.
B.An Application Security Group that contains the backend VMs.
C.A user-defined route pointing frontend traffic to the backend subnet.
D.A private endpoint for the backend tier.
AnswerB

Application Security Groups let the administrator group backend VMs logically and reference that group in NSG rules instead of individual IP addresses. This is ideal when backend IPs change or VMs are replaced. The NSG rule remains stable while the backend membership changes, which reduces operational overhead and improves consistency.

Why this answer

An Application Security Group (ASG) allows you to group backend VMs logically and reference that group in a Network Security Group (NSG) rule. When backend VMs are rebuilt and receive new private IPs, you simply add the new VMs to the same ASG, and the existing NSG rule (which references the ASG as the destination) automatically applies to the new IPs without any manual rule edits. This decouples security policy from dynamic IP addresses, making it the ideal solution for frequently changing backend IPs.

Exam trap

The trap here is that candidates often confuse Application Security Groups (logical grouping for NSG rules) with User-Defined Routes (path control) or Private Endpoints (PaaS connectivity), leading them to pick a routing or endpoint solution instead of the correct security-grouping mechanism.

Why the other options are wrong

A

Static private IP addresses would require manual updates to NSG rules whenever a VM is rebuilt and gets a new IP, which contradicts the requirement to avoid editing NSG rules frequently.

C

A user-defined route (UDR) controls traffic routing at the network layer, not security filtering. It cannot replace NSG rules to allow or deny traffic based on dynamic IP addresses; NSG rules still need to permit traffic, and UDRs do not provide dynamic membership like ASGs.

D

A private endpoint is used to securely access Azure PaaS services over a private IP, not to allow frontend VMs to reach backend VMs on a specific port without editing NSG rules when backend IPs change.

When would these options actually be correct?

A

If the question required a specific VM to always have the same IP for compliance or monitoring purposes, and the administrator was willing to manage IP assignments manually, a static private IP would be correct.

C

A user-defined route would be correct in a scenario where you need to force-tunnel traffic from the frontend subnet to a network virtual appliance (NVA) for inspection, or to route traffic to a different next hop (e.g., to a hub network) instead of the default Azure routing.

D

An administrator needs to allow a frontend VM to access an Azure SQL Database privately, without exposing it to the public internet, and the database's private IP should remain static. Using a private endpoint for the database would be correct.

Why candidates pick the wrong answer

A

Candidates may think static IPs provide a fixed target for NSG rules, overlooking the operational overhead of reassigning IPs after VM rebuilds.

C

Candidates may confuse routing (UDR) with security filtering (NSG), thinking that directing traffic to the backend subnet automatically allows it, or they may believe that UDRs can dynamically adapt to IP changes, which they cannot.

D

Candidates may confuse private endpoints with a way to provide static IPs for dynamic VMs, or think that a private endpoint can group VMs and simplify NSG rules, but it is designed for PaaS services, not VM-to-VM traffic.

324
Multi-Selecteasy

A support engineer finds a blob that was moved to the Archive tier by a lifecycle rule and must download it today. Which two actions are required before the blob can be read? Select two.

Select 2 answers
A.Change the blob access tier from Archive to Hot or Cool.
B.Wait until the rehydration operation finishes.
C.Download the blob directly from Archive without any tier change.
D.Disable the lifecycle management policy for the storage account.
E.Create a new container and copy the archived blob into it.
AnswersA, B

Changing the blob's access tier from Archive to Hot or Cool initiates the rehydration process, which moves the data from offline storage to online storage. Because archived blobs are stored offline, a tier change to Hot or Cool is required before the blob's contents can be read. This operation is asynchronous: the blob remains offline until the background rehydration job finishes, which can take up to 15 hours depending on the rehydration priority you set.

Why this answer

A blob in the Archive tier is offline and cannot be read directly. You must change its access tier to Hot or Cool (a process called rehydration) to make it available for download. This tier change initiates an asynchronous operation that moves the blob from the archived state to an online tier.

Exam trap

The trap here is that candidates often think they can directly download or copy an archived blob without rehydration, overlooking that Archive tier blobs are offline and require a tier change operation to become readable.

Why the other options are wrong

C

Blobs in the Archive tier are offline and cannot be read directly. They must first be rehydrated to Hot or Cool tier, which takes time, before any download is possible.

D

Disabling the lifecycle management policy does not change the access tier of the blob; the blob remains in the Archive tier and is still unavailable for reading until rehydrated.

E

Creating a new container and copying the archived blob does not change its Archive tier status; the blob remains in the Archive tier and cannot be read until rehydrated. The correct process is to change the tier to Hot or Cool and wait for rehydration.

When would these options actually be correct?

C

If the blob is in the Cool or Hot tier, or if the question specifies that the blob is already in the process of rehydration and the rehydration is complete, then downloading directly without a tier change would be correct.

D

If a question asks how to prevent future blobs from being automatically moved to the Archive tier, disabling the lifecycle management policy would be a correct action to stop the rule from applying.

E

If the question asked how to move an archived blob to a different storage account while keeping it in the Archive tier, copying it to a new container in a different account would be valid. However, the blob would still be in Archive and require rehydration before reading.

Why candidates pick the wrong answer

C

Candidates may mistakenly believe that Archive blobs are still accessible for read operations, similar to blobs in other tiers, or they may overlook the requirement for rehydration before access.

D

Candidates may think that disabling the policy will immediately revert the blob's tier or allow access, misunderstanding that lifecycle policies only affect future operations, not already archived blobs.

E

Candidates may think that copying the blob to a new container automatically changes its tier or bypasses the rehydration requirement, not realizing that the copy operation preserves the source tier.

325
MCQeasy

A team wants to keep Azure platform logs for a storage account in a central location and analyze them with queries. The logs should be queryable together with other Azure resource logs. What destination should the administrator choose for the diagnostic setting?

A.A Log Analytics workspace
B.A storage account only
C.An action group
D.A management group
AnswerA

A Log Analytics workspace is the correct destination because it ingests Azure platform logs into a centralized, queryable store. It enables cross-resource correlation with KQL, supports alerts, workbooks, and retains logs based on configurable retention policies, making it the standard for consolidated monitoring and troubleshooting across subscriptions and resources.

Why this answer

A Log Analytics workspace is the correct destination because it allows you to collect Azure platform logs (such as resource logs, activity logs, and metrics) from multiple resources into a central location. These logs can then be queried together using Kusto Query Language (KQL) across different resource types, enabling cross-resource analysis and correlation. This meets the requirement for queryable logs alongside other Azure resource logs.

Exam trap

The trap here is that candidates often confuse a storage account as a valid destination for log analysis because it can store logs, but they overlook that it lacks native querying capabilities and cannot integrate with other resource logs for cross-analysis.

Why the other options are wrong

B

A storage account only stores logs as blobs, which cannot be queried directly with KQL or analyzed alongside other resource logs in a unified query environment.

C

An action group is used to send notifications (e.g., email, SMS) or trigger automated actions based on alerts, not to store or query logs. It cannot serve as a destination for diagnostic settings to collect logs for querying.

D

A management group is a container for managing access, policies, and compliance across multiple subscriptions, not a destination for diagnostic logs. It cannot store or query log data.

When would these options actually be correct?

B

When the requirement is to archive logs for long-term retention or compliance at low cost, and querying is not needed (e.g., logs must be kept for 7 years and accessed only occasionally via download).

C

In a scenario where the goal is to send an alert (e.g., when a specific error appears in logs) or trigger an automated response (e.g., runbook) based on a log metric, an action group would be the correct destination for the alert rule, not the diagnostic setting.

D

When the question asks about the scope for applying Azure Policy or RBAC assignments across multiple subscriptions, a management group would be the correct answer.

Why candidates pick the wrong answer

B

Candidates may think storing logs in a storage account is sufficient for analysis, overlooking that Log Analytics workspace provides the querying and cross-resource analysis capabilities explicitly required.

C

Candidates may confuse action groups with log destinations because both are related to monitoring and alerts, but action groups handle notifications/actions, not log storage or querying.

D

Candidates may confuse 'management group' with 'log analytics workspace' as both are hierarchical containers, or think that a management group can aggregate logs from multiple subscriptions.

326
MCQeasy

A storage account must be reachable only from resources in one Azure subnet, and public network access should not be used. Which configuration best meets this requirement?

A.Enable blob versioning on the storage account
B.Create a private endpoint for the storage account in the subnet
C.Assign a ReadOnly lock to the storage account
D.Enable a shared access signature
AnswerB

A private endpoint gives the storage account a private IP address in the subnet, so traffic stays on private network paths.

Why this answer

A private endpoint assigns the storage account a private IP address from the specified Azure subnet, effectively bringing the storage account into the virtual network. This ensures that all traffic to the storage account stays within the Microsoft Azure backbone network and never traverses the public internet, meeting the requirement to restrict access exclusively to resources in that subnet while disabling public network access.

Exam trap

The trap here is that candidates often confuse network-level access controls (private endpoints) with data-level access controls (SAS tokens) or management-level controls (locks), mistakenly thinking a SAS token or a lock can restrict network access to a specific subnet.

Why the other options are wrong

A

Blob versioning preserves previous versions of blobs but does not restrict network access to a specific subnet; it does not meet the requirement to block public network access.

C

Assigning a ReadOnly lock prevents modifications to the storage account but does not restrict network access; it does not block public endpoints or enforce private connectivity.

D

A shared access signature (SAS) provides delegated access to storage resources but does not restrict access to a specific subnet or disable public network access; it still relies on the public endpoint.

When would these options actually be correct?

A

When the requirement is to protect against accidental deletion or overwrite of blobs by retaining previous versions, such as for data recovery or compliance purposes.

C

A question requiring that a storage account's configuration (e.g., firewall rules or network settings) cannot be changed by administrators, but still allows data operations. The ReadOnly lock would prevent accidental modifications while leaving existing network restrictions intact.

D

When the requirement is to grant time-limited, delegated access to a specific storage resource (e.g., a blob or file) for an external client without exposing the account key, and network restrictions are not a concern.

Why candidates pick the wrong answer

A

Candidates may confuse versioning with access control, thinking that versioning somehow secures the storage account from unauthorized access.

C

Candidates may confuse 'lock' with 'block' or think that a lock can restrict access, not realizing locks only affect management operations, not data plane access.

D

Candidates may think SAS can restrict access to a subnet by specifying an IP range, but SAS does not support subnet-level restrictions and does not disable public network access.

327
MCQeasy

Based on the exhibit, what should the administrator do so the hub and spoke can be peered successfully?

A.Keep the current ranges and enable gateway transit on the peering.
B.Change the spoke VNet to a non-overlapping address space.
C.Add another subnet inside the spoke VNet and reuse the current address space.
D.Create a network security group on the spoke subnet before peering.
AnswerB

Azure VNet peering requires that the address spaces of the two virtual networks do not overlap, so the spoke's current CIDR range is blocking the connection. You must change the spoke to a non-overlapping address space—usually by recreating the VNet with a unique range or by adding a new non-conflicting prefix and migrating resources—before peering can be established. This is the only remediation that removes the underlying route conflict with the hub.

Why this answer

VNet peering requires that the address spaces of the peered VNets do not overlap. Overlapping IP ranges cause routing conflicts and prevent successful peering. Changing the spoke VNet to a non-overlapping address space resolves this issue and allows the peering to be established.

Exam trap

The trap here is that candidates may think overlapping subnets can be worked around by using NSGs or gateway transit, but Azure VNet peering strictly requires non-overlapping VNet address spaces at the time of peering creation.

Why the other options are wrong

A

The hub and spoke VNets have overlapping address ranges (10.1.0.0/16), which prevents peering. Enabling gateway transit does not resolve address overlap; peering requires non-overlapping address spaces.

C

Adding another subnet inside the spoke VNet does not resolve the overlapping address space issue; the hub and spoke VNets still have conflicting IP ranges, which prevents successful peering.

D

The question is about resolving overlapping address spaces between hub and spoke VNets for successful peering. Creating a network security group (NSG) on the spoke subnet does not address the address overlap issue; NSGs control traffic filtering, not IP address conflicts.

When would these options actually be correct?

A

If the VNets had non-overlapping address spaces and the hub had a VPN gateway, enabling gateway transit on the peering would allow the spoke to use the hub's gateway for connectivity to on-premises networks.

C

This option would be correct if the question asked how to isolate workloads within a spoke VNet that has non-overlapping address space, and the goal was to segment traffic using additional subnets without changing the overall VNet address range.

D

This option would be correct in a scenario where the administrator needs to restrict inbound or outbound traffic to/from the spoke subnet after peering is established. For example, if the question asked: 'What should the administrator do to secure traffic between the hub and spoke VNets?'

Why candidates pick the wrong answer

A

Candidates may confuse gateway transit as a solution for all peering issues, not realizing it only applies to gateway connectivity, not address overlap.

C

Candidates may think that adding a subnet can somehow fix the overlap, or they confuse subnet-level isolation with VNet-level address space conflicts, not realizing that peering requires non-overlapping VNet ranges.

D

Candidates may think that applying an NSG is a necessary step before peering to ensure security, or they might confuse subnet-level security requirements with the prerequisite of non-overlapping address spaces.

328
MCQeasy

A company hosts documents in Azure Blob Storage. The files must remain available if one availability zone in the region fails. Which redundancy option should the administrator choose?

A.LRS, because it keeps three copies within one datacenter.
B.ZRS, because it stores copies across multiple availability zones in the region.
C.GRS, because it automatically makes the account available in another region for reads.
D.RA-GRS, because it is the only option that keeps a secondary copy.
AnswerB

ZRS places copies of the data across availability zones in the same region, which helps the storage remain available during a zone failure.

Why this answer

B is correct because Zone-Redundant Storage (ZRS) synchronously replicates data across three Azure availability zones within a primary region, ensuring data remains accessible if one zone fails. This meets the requirement for high availability within a single region without relying on a secondary region.

Exam trap

The trap here is that candidates often confuse LRS (three copies in one datacenter) with zone-level redundancy, or they incorrectly assume GRS or RA-GRS are needed for intra-region availability, when ZRS is the correct choice for zone failure protection within a single region.

Why the other options are wrong

A

LRS replicates data three times within a single datacenter, not across availability zones. It does not protect against an entire availability zone failure, which is the requirement in the question.

C

GRS replicates data to a secondary region, not across availability zones within the same region, so it does not protect against a single zone failure in the primary region.

D

RA-GRS provides read access to a secondary region, not availability zone resilience. The question requires availability within a single region if one zone fails, which ZRS provides, not RA-GRS.

When would these options actually be correct?

A

A question requiring protection against a single datacenter failure (e.g., disk or server failure) within a region, with no need for zone-level resilience, would make LRS correct.

C

An exam question requiring data to remain available if an entire region fails, with the need for automatic failover to a secondary region for disaster recovery, would make GRS the correct choice.

D

RA-GRS would be correct if the question required data to remain available during a region-wide outage and allowed read access from a secondary region, e.g., 'The company needs read access to data even if the primary region becomes unavailable.'

Why candidates pick the wrong answer

A

Candidates may confuse LRS's three copies as providing zone-level redundancy, or they may not understand that availability zones span multiple datacenters, not a single one.

C

Candidates may confuse zone-redundant storage with geo-redundant storage, thinking that any 'redundant' option provides zone-level protection, or they may overestimate GRS's capabilities within a single region.

D

Candidates may think RA-GRS is the most resilient option because it includes geo-replication and read access, overlooking that the question specifically asks for zone-level fault tolerance within a single region.

329
MCQeasy

A line-of-business app must keep serving users if an entire Azure region becomes unavailable. Is Azure Backup by itself enough to meet this requirement?

A.Yes, because backup alone guarantees immediate failover to another region
B.No, you also need disaster recovery replication such as Azure Site Recovery
C.Yes, as long as the VM has a backup policy
D.Yes, if diagnostic settings are enabled on the VM
AnswerB

Azure Backup is designed for point-in-time data recovery, not continuous uptime. During a region-wide outage, even a geo-redundant backup vault contains only backup data, not a running VM with the application loaded. Azure Site Recovery replicates the VM's disks to a secondary region and enables orchestrated failover, which is what actually keeps the app online in a disaster.

Why this answer

Azure Backup is designed to protect data by creating recovery points that can be used to restore VMs or files, but it does not provide automatic failover or continuous replication to another region. To meet the requirement of keeping an app running during a regional outage, you need a disaster recovery solution like Azure Site Recovery, which replicates VMs to a secondary region and enables orchestrated failover with minimal downtime.

Exam trap

The trap here is that candidates confuse data protection (backup) with high availability/disaster recovery, assuming that having backups automatically means the application can continue running during a regional outage.

Why the other options are wrong

A

Azure Backup provides data protection and recovery from accidental deletion or corruption, but it does not provide automatic failover or continuous replication to another region. It requires manual restore and does not ensure immediate service continuity during a regional outage.

C

Azure Backup provides data protection and recovery from accidental deletion or corruption, but it does not provide automatic failover or continuous replication to another region. It cannot ensure application availability during a regional outage.

D

Enabling diagnostic settings on a VM only collects logs and metrics; it does not provide any replication or failover capability to another region, so it cannot ensure app availability during a regional outage.

When would these options actually be correct?

A

This option would be correct if the question asked: 'Does Azure Backup alone ensure data durability and recoverability in case of accidental deletion or corruption?' In that context, Azure Backup is sufficient for data protection, though not for high availability or disaster recovery.

C

This option would be correct if the question asked: 'Does Azure Backup alone ensure that VM data is protected and can be restored in case of accidental deletion or corruption?' In that context, having a backup policy is sufficient for data protection.

D

This option would be correct if the question asked: 'What is required to send VM performance metrics and logs to a Log Analytics workspace for monitoring?' In that context, enabling diagnostic settings is the correct action.

Why candidates pick the wrong answer

A

Candidates may confuse backup with disaster recovery, assuming that having backups in another region automatically provides failover capabilities, or they may underestimate the time and complexity involved in restoring from backups during a regional outage.

C

Candidates may confuse backup with disaster recovery, thinking that having backups automatically enables failover to another region, or they may underestimate the need for active replication and failover mechanisms like Azure Site Recovery.

D

Candidates may confuse diagnostic settings with disaster recovery features, thinking that logging and monitoring somehow contribute to availability, or they may misread the question as being about observability rather than continuity.

330
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

B

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

D

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

When would these options actually be correct?

B

A ReadOnly lock would be correct if the requirement was to prevent any changes to the storage account or its data, while still allowing read access, such as for a compliance or audit scenario where data must remain immutable.

D

A scenario where you need to restrict a storage account from initiating outbound connections to the internet (e.g., to prevent data exfiltration or enforce a network isolation policy). The question would specify blocking outbound traffic from the subnet hosting the storage account.

Why candidates pick the wrong answer

B

Candidates may confuse the purpose of locks, thinking a ReadOnly lock only prevents deletion, or they may not fully understand that it also blocks write operations.

D

Candidates may confuse network security controls with resource management controls, or think that blocking all outbound traffic could somehow prevent deletion, which is incorrect.

331
MCQeasy

Based on the exhibit, a Windows VM must install IIS and run a configuration script automatically right after deployment. The administrator does not want to sign in to the VM manually. Which Azure feature should be used?

A.Azure Policy with a modify effect.
B.Virtual machine extension, such as the Custom Script Extension.
C.An availability set.
D.A private endpoint.
AnswerB

A VM extension is designed to run guest-level tasks after the VM is created. The Custom Script Extension can download and execute a script to install IIS or perform configuration without requiring manual sign-in. This is the standard Azure feature for simple post-deployment automation on a VM.

Why this answer

The Custom Script Extension (CSE) is the correct Azure feature because it allows you to run PowerShell or Bash scripts on a VM after deployment without manual sign-in. By specifying the script in the VM's deployment template or via Azure CLI/Portal, IIS can be installed and the configuration script executed automatically during provisioning. This aligns with the requirement for zero-touch post-deployment automation.

Exam trap

The trap here is that candidates often confuse Azure Policy (which can only audit or remediate resource configurations at the ARM level) with the ability to run guest OS scripts, mistakenly thinking a 'modify effect' can install software, when in fact it cannot execute code inside the VM.

Why the other options are wrong

A

Azure Policy with a modify effect enforces compliance rules on existing resources (e.g., tagging) but cannot install software or run scripts during VM deployment. It does not execute post-deployment configuration tasks like IIS installation.

C

An availability set is used to ensure high availability by grouping VMs across fault and update domains, not for post-deployment software installation or configuration.

D

A private endpoint is used to securely connect to Azure services over a private IP address within a virtual network, not to install software or run scripts on a VM after deployment.

When would these options actually be correct?

A

A question requiring automatic remediation of non-compliant resources, such as 'Ensure all VMs have a specific tag applied automatically when missing' or 'Enforce that all VMs use a particular disk encryption setting.'

C

A question asks: 'You need to ensure that at least two VMs running a web application are available during planned maintenance. Which feature should you use?'

D

In a scenario where you need to securely access an Azure service (e.g., Azure Storage or SQL Database) from a virtual network without exposing it to the public internet, a private endpoint would be the correct answer.

Why candidates pick the wrong answer

A

Candidates may confuse Azure Policy's 'modify' effect with deployment automation, thinking it can alter VM configuration after creation, similar to how it can add tags or change settings.

C

Candidates might confuse availability sets with automation features, thinking they can trigger scripts or configurations, but they are solely for redundancy and uptime.

D

Candidates may confuse private endpoints with other networking features or think that 'private' implies automated configuration, but private endpoints do not perform post-deployment VM tasks.

332
MCQeasy

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

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

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

Why this answer

A user-assigned managed identity is the correct choice because it is created as a standalone Azure resource and can be assigned to multiple VMs. Unlike system-assigned identities, which are tied to the lifecycle of a single VM, a user-assigned identity persists independently and remains available even when VMs are rebuilt or replaced. This allows the automation script to use the same identity across all three VMs without needing to reconfigure permissions after each rebuild.

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

A question where each VM needs its own unique identity that is automatically created and deleted with the VM, and there is no need to share an identity across VMs or retain it after VM deletion.

C

This option would be correct in a scenario where the requirement is to allow external users (guests) to access Azure resources, such as granting a partner organization's users access to a specific application or resource group via Azure AD B2B collaboration.

D

In a scenario where multiple VMs need to access the same Azure Storage account (e.g., to read/write blobs) and the team wants to use a single key without managing individual identities, a shared storage account key would be the correct answer. The question would specify that the requirement is for storage access, not for an identity to authenticate to Azure AD-protected resources.

Why candidates pick the wrong answer

A

Candidates may think 'system-assigned' means the identity is automatically assigned to each VM and therefore reusable, overlooking that each VM gets a separate identity that is not retained after VM deletion.

C

Candidates may think that a guest user account can be used like a service principal to sign in from multiple VMs, confusing user identities with resource identities, or they may overlook that guest accounts are for human users, not automated processes.

D

Candidates may think a shared key is a simple, reusable credential that can be used by all VMs, similar to how a user-assigned managed identity is shared. They might overlook that a storage account key is not an identity and does not integrate with Azure AD or RBAC for VM-level authentication.

333
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

This option would be correct if the requirement was to grant access to a single user for a fixed period without needing to manage group membership, and immediate removal was not a strict requirement (e.g., access could be removed later via a scheduled task).

C

If the question required the contractor to view all resources across the entire subscription for 30 days, assigning Reader at the subscription scope would be the simplest and correct approach.

D

If the question required preventing accidental deletion of resources in the resource group for a specific period, and access control was not a concern, a CanNotDelete lock would be appropriate.

Why candidates pick the wrong answer

A

Candidates may think direct assignment is simpler and faster, overlooking the need for centralized management and immediate revocation that group-based assignment provides.

C

Candidates may think subscription-level assignment is simpler and still meets the 30-day requirement, overlooking the need to restrict access to a single resource group.

D

Candidates may confuse resource locks with access control, thinking a lock can restrict user actions like viewing or deleting, when locks only affect deletion or modification, not read access.

334
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

B

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

C

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

D

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

When would these options actually be correct?

B

If the question required preventing unauthorized users from modifying resources in RG-Finance, assigning a custom RBAC role with restricted permissions (e.g., Contributor without tag write access) would be correct.

C

You need to prevent accidental deletion or modification of critical resources in a resource group, but users should still be able to read them. A ReadOnly lock would be correct in that scenario.

D

If the requirement were to enforce that all resources in a management group hierarchy must have a specific tag, and any resource without it should be denied creation, then assigning an Azure Policy with the Deny effect at the management group would be correct.

Why candidates pick the wrong answer

B

Candidates may confuse RBAC with policy enforcement, thinking that restricting permissions can force tag entry, but RBAC does not validate or add tags automatically.

C

Candidates may confuse locks with policy enforcement, thinking a lock can force tag compliance, or they may overlook that locks only restrict operations, not add metadata.

D

Candidates may think that a Deny policy at a higher scope (management group) is a stronger way to enforce tagging, but they overlook the requirement that deployments should not fail when the tag is omitted.

335
MCQeasy

Based on the exhibit, the team wants a readable, repeatable deployment definition stored in source control. Which approach should they use for the Azure resources?

A.Azure Policy because it enforces the deployment automatically.
B.Bicep because it provides a concise declarative syntax for Azure deployments.
C.A runbook in Azure Automation because it is always easier to read than templates.
D.A resource lock because it prevents unauthorized changes to the deployment.
AnswerB

Bicep is the best choice because it is a declarative Azure language that is easier to read and maintain than raw ARM JSON. It works well in source control, supports code review, and is commonly used to define repeatable infrastructure deployments.

Why this answer

Bicep is a domain-specific language (DSL) that provides a concise, declarative syntax for deploying Azure resources. It is designed to be more readable than ARM templates and can be stored in source control, enabling repeatable, version-controlled deployments. This directly meets the team's requirement for a readable, repeatable deployment definition.

Exam trap

The trap here is that candidates often confuse governance tools (Azure Policy) or operational scripts (runbooks) with infrastructure-as-code solutions, overlooking that Bicep is the native, declarative language designed specifically for repeatable Azure resource deployments.

Why the other options are wrong

A

Azure Policy enforces compliance rules on existing resources, but it does not provide a readable, repeatable deployment definition stored in source control; it's for governance, not infrastructure-as-code deployment.

C

Runbooks are for automating operational tasks and workflows, not for defining infrastructure deployments in a declarative, repeatable manner stored in source control.

D

A resource lock prevents deletion or modification of resources but does not provide a readable, repeatable deployment definition stored in source control.

When would these options actually be correct?

A

When the question asks for a mechanism to automatically enforce tagging or location restrictions across all subscriptions, ensuring resources comply with organizational standards without manual intervention.

C

When the question asks for automating a recurring operational task, such as starting/stopping VMs on a schedule or responding to alerts, and the solution must be scripted in PowerShell or Python.

D

When the question asks for a mechanism to prevent accidental deletion or modification of critical Azure resources, such as production databases or key vaults, a resource lock (e.g., CanNotDelete or ReadOnly) would be the correct answer.

Why candidates pick the wrong answer

A

Candidates may confuse policy enforcement with deployment automation, thinking that 'enforces deployment automatically' means it defines and deploys resources, rather than just auditing or preventing non-compliant changes.

C

Candidates may think runbooks are 'easier to read' because they use familiar scripting languages, overlooking that Bicep is purpose-built for declarative infrastructure as code.

D

Candidates may confuse resource locks with deployment governance, thinking that locking resources ensures deployment consistency, but locks only protect existing resources from changes, not define deployments.

336
MCQhard

You have a virtual machine scale set that must increase the number of instances automatically when average CPU utilization exceeds 75 percent and decrease when utilization drops below 30 percent. What should you configure?

A.An Azure Monitor autoscale rule on the scale set
B.A boot diagnostics configuration
C.An availability set
D.A custom script extension
AnswerA

An Azure Monitor autoscale rule is the native scaling mechanism for Virtual Machine Scale Sets. It evaluates metric thresholds, such as average CPU percentage over a 10-minute window, and automatically adds or removes instances to match demand. Unlike static configuration or scripts, autoscale rules dynamically adjust capacity, making them the correct choice for increasing the scale set based on load.

Why this answer

Azure Monitor autoscale rules allow you to define conditions for automatically scaling out (increasing instances) when average CPU utilization exceeds a threshold (e.g., 75%) and scaling in (decreasing instances) when it drops below a lower threshold (e.g., 30%). These rules are applied directly to the virtual machine scale set, enabling dynamic scaling based on performance metrics.

Exam trap

The trap here is that candidates may confuse autoscale rules with other VM configuration options like boot diagnostics or custom script extensions, not realizing that autoscaling is a dedicated feature of Azure Monitor applied to scale sets.

Why the other options are wrong

B

Boot diagnostics configuration captures serial logs and screenshots for VM troubleshooting, but it does not enable automatic scaling based on CPU utilization thresholds.

C

An availability set is used to distribute VMs across fault domains and update domains for high availability, not to automatically scale instances based on CPU utilization. It does not support autoscaling rules.

D

A custom script extension is used to run scripts on VMs after deployment, not to configure autoscaling based on CPU utilization. It cannot define scaling rules or thresholds.

When would these options actually be correct?

B

You need to troubleshoot a virtual machine that fails to boot and want to capture serial console output and screenshots to diagnose the issue. Configuring boot diagnostics on the VM would be the correct action.

C

You need to ensure that two or more VMs running a critical application are placed on different physical hardware to protect against a rack-level failure. Configuring an availability set would be the correct answer.

D

You need to run a PowerShell script on each VM in a scale set after creation to install software or configure settings. A custom script extension would be the correct choice to automate that post-deployment configuration.

Why candidates pick the wrong answer

B

Candidates may confuse boot diagnostics with performance monitoring or scaling, thinking it provides data that could trigger scaling actions, but it is purely for troubleshooting boot failures.

C

Candidates may confuse availability sets with scale sets, thinking that availability sets also provide scaling capabilities, or they may associate 'availability' with the ability to handle load changes.

D

Candidates may think a custom script extension can handle scaling logic because it can execute code, but it lacks the monitoring and rule-based triggering required for autoscaling.

337
Multi-Selecthard

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

B

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

D

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

When would these options actually be correct?

B

If the lock were a ReadOnly lock instead of CanNotDelete, then deleting resources would be allowed (since ReadOnly only blocks modifications, not deletions). Or if the question asked which actions are prevented by a CanNotDelete lock, deleting a storage account would be a correct answer.

D

If the resource group had a CanNotDelete lock but the question asked which actions are blocked, or if the lock was a ReadOnly lock instead, deleting the resource group would be blocked. Alternatively, if the question was about removing a lock first, then deleting the group would be possible after lock removal.

Why candidates pick the wrong answer

B

Candidates may think that an 'unused' resource can be deleted despite the lock, or they confuse CanNotDelete with ReadOnly, assuming deletion is always allowed unless explicitly blocked.

D

Candidates may think that deleting the entire resource group is a way to bypass individual resource locks, or they may overlook that the lock applies to the resource group itself, not just its contents.

338
MCQmedium

A subnet has a user-defined route for 0.0.0.0/0 that sends traffic to a network virtual appliance at 10.10.1.4. The VM in the subnet still reaches an Azure Storage account using the public endpoint, but the administrator expected all outbound traffic to go through the NVA. What is the most likely reason?

A.Azure always ignores user-defined routes for storage traffic.
B.The storage account traffic is using a more specific route than the 0.0.0.0/0 route.
C.NSG outbound rules override user-defined routes in Azure.
D.The subnet needs a public IP address assigned to each VM for the route to take effect.
AnswerB

Route selection prefers the most specific matching prefix. If a more specific route exists for the storage destination, it can win over the default route to the NVA. This is why forced tunneling designs must be checked against specific system or learned routes. Understanding route precedence is essential when traffic does not follow the default next hop that appears to be in place.

Why this answer

The most likely reason is that the storage account traffic is using a more specific route than the 0.0.0.0/0 route. Azure uses longest prefix match routing, so a route with a smaller prefix (e.g., a specific public IP range for Azure Storage) will take precedence over the default route. The 0.0.0.0/0 route only applies when no more specific route exists, and Azure automatically adds platform routes for Azure services like Storage, which can override user-defined routes.

Exam trap

The trap here is that candidates often assume a default route (0.0.0.0/0) will catch all outbound traffic, forgetting that Azure's platform routes for Azure services (like Storage) can be more specific and take precedence over user-defined routes.

Why the other options are wrong

A

Azure does not ignore user-defined routes for storage traffic; UDRs apply to all traffic, including storage. The issue is that a more specific route (e.g., to the storage service tag) overrides the 0.0.0.0/0 route.

C

NSG outbound rules do not override user-defined routes; they are evaluated after routing decisions. Routes determine the next hop, and NSGs filter traffic based on that route, but they cannot change the path.

D

A public IP address is not required for a user-defined route to take effect; the route applies to all traffic from the subnet regardless of public IP assignment.

When would these options actually be correct?

A

In a scenario where a question states that Azure Storage traffic must always use the Microsoft backbone network and cannot be forced through a network virtual appliance, this option would be correct if the question explicitly says Azure ignores UDRs for storage traffic due to a service-specific route that cannot be overridden.

C

In a scenario where a VM cannot reach the internet despite having a default route via an NVA, and the NVA is correctly configured, an NSG outbound rule blocking traffic (e.g., deny all outbound) could be the cause. The question would specify that routing is correct but connectivity fails.

D

If the question asked why a VM cannot initiate outbound internet traffic despite having a default route, and the VM lacked a public IP or NAT configuration, then assigning a public IP would be necessary for outbound connectivity.

Why candidates pick the wrong answer

A

Candidates may mistakenly believe that Azure Storage traffic is exempt from UDRs because of Azure's default routing behavior for PaaS services, or they confuse UDRs with service endpoints or private endpoints.

C

Candidates often confuse the order of evaluation between NSGs and routes, thinking NSGs can override routing decisions, or they overestimate the role of NSGs in path selection.

D

Candidates may confuse the need for a public IP for outbound internet access with the functionality of user-defined routes, incorrectly assuming routes require public IPs to work.

339
MCQmedium

Based on the exhibit, which Network Watcher tool should the administrator use to identify the exact NSG rule that is blocking TCP 1433 traffic?

A.Connection troubleshoot
B.IP flow verify
C.Next hop
D.Packet capture
AnswerB

IP flow verify takes a source/destination IP, port, protocol, and direction, then simulates the traffic against the effective NSG security rules on the target NIC. It reports either Allowed or Denied and, when denied, identifies the exact NSG rule (including the rule name and priority) that caused the verdict. This makes it the correct tool when you need to determine which NSG rule is affecting a specific traffic flow.

Why this answer

IP flow verify is the correct Network Watcher tool because it tests whether a packet is allowed or denied to or from a specific virtual machine based on a 5-tuple (source IP, destination IP, source port, destination port, and protocol). By specifying TCP 1433 as the destination port, the tool evaluates all effective security rules (NSG and ASG) and returns the exact rule name and direction that is blocking the traffic.

Exam trap

The trap here is that candidates often confuse 'Connection troubleshoot' (which tests end-to-end connectivity but not rule-level blocking) with 'IP flow verify' (which explicitly evaluates NSG rules), leading them to select A instead of B.

Why the other options are wrong

A

Connection troubleshoot tests end-to-end connectivity between a source and destination VM, but it does not identify which specific NSG rule is blocking traffic; it only reports connectivity success or failure.

C

Next hop identifies the next hop IP address and route for a packet, but it does not evaluate NSG rules to determine if traffic is allowed or blocked.

D

Packet capture captures raw network packets for deep analysis but does not identify which specific NSG rule is blocking traffic; it requires manual inspection of captured data and does not correlate with NSG rules.

When would these options actually be correct?

A

If the question asked which tool to use to test TCP connectivity over a specific port between two VMs and report latency, packet loss, and hop-by-hop path, then Connection troubleshoot would be correct.

C

Use Next hop when troubleshooting routing issues, such as determining why traffic is taking an unexpected path (e.g., traffic destined for a VM is being sent to a virtual appliance instead of directly to the VM).

D

Packet capture would be correct when the question asks to capture and analyze network traffic to diagnose a performance issue or inspect application-level protocol details, such as verifying if a specific SQL query is being sent over TCP 1433.

Why candidates pick the wrong answer

A

Candidates may think 'troubleshoot' implies diagnosing blocking rules, but Connection troubleshoot is for broader connectivity checks, not rule-level analysis.

C

Candidates may confuse network path analysis with security rule evaluation, thinking that identifying the next hop will reveal where the traffic is blocked.

D

Candidates may think packet capture can directly show blocked packets, but it lacks integration with NSG rule evaluation and requires additional analysis to determine rule blocking.

340
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

A ReadOnly lock would be correct if the requirement was to prevent any changes to the resource group and its resources, such as protecting a production environment from accidental modifications while still allowing read access.

C

This option would be correct if the question asked about a custom lock name or a fictional scenario where a 'Delete lock' is defined as a custom role or policy. However, in standard Azure RBAC, no such lock exists.

D

When the question asks for a method to be notified if resource costs exceed a threshold, or to enforce cost limits without blocking administrative actions, a budget alert would be correct.

Why candidates pick the wrong answer

A

Candidates may confuse 'prevent deletion' with 'prevent changes' and think that a ReadOnly lock is needed to block deletion, not realizing it also blocks modifications.

C

Candidates may be misled by the name 'Delete lock' as it intuitively suggests preventing deletion, but Azure's actual lock types are 'CanNotDelete' and 'ReadOnly'.

D

Candidates may confuse cost management controls with operational controls, thinking a budget alert can also prevent deletion by triggering an action, but alerts are read-only notifications.

341
MCQmedium

An administrator is deploying a new VPN gateway in an existing VNet. The GatewaySubnet currently uses a /28 range, and the deployment fails because the selected gateway configuration does not have enough available IP addresses. What is the best action?

A.Move one of the gateway's NICs into a normal workload subnet.
B.Expand GatewaySubnet to a larger range, such as /27, and redeploy the VPN gateway.
C.Create a private endpoint inside GatewaySubnet to reserve extra addresses.
D.Enable BGP so the gateway needs fewer IP addresses.
AnswerB

GatewaySubnet is a dedicated subnet for VPN gateway resources, and the gateway requires enough free IP addresses to deploy and operate. If the current prefix is too small for the chosen configuration, the correct fix is to expand the subnet to a larger size, such as /27, if the VNet address space allows it. After resizing, the administrator can retry the gateway deployment with adequate capacity.

Why this answer

The GatewaySubnet requires a minimum /27 range to support most VPN gateway SKUs, as Azure reserves several IP addresses for internal use and the gateway instances need at least 3–6 usable IPs depending on the SKU. Expanding the subnet to /27 provides enough addresses (32 total, minus reserved) to satisfy the gateway's allocation requirements, allowing the deployment to succeed.

Exam trap

The trap here is that candidates assume a /28 subnet is always sufficient because it works for smaller gateways, but they overlook that larger SKUs or active-active configurations require more IPs, and Azure's reservation of 5 addresses per subnet further reduces usable space.

Why the other options are wrong

A

Moving a gateway NIC into a normal workload subnet is not supported; VPN gateway NICs must reside in the GatewaySubnet. This action would break the gateway deployment.

C

Creating a private endpoint inside GatewaySubnet does not increase the number of available IP addresses for the VPN gateway; private endpoints consume IP addresses from the subnet, making the shortage worse.

D

Enabling BGP does not reduce the number of IP addresses required by the VPN gateway; BGP is a routing protocol that exchanges routes, not a method to change IP address consumption. The gateway still needs the same number of IP addresses for its instances.

When would these options actually be correct?

A

If a question asks how to free up IP addresses in a subnet for a new resource, and the subnet contains a VM with an unused NIC, moving that NIC to another subnet could release its IP address.

C

A question where a service needs to be accessed securely from on-premises without exposing it to the internet, and the subnet has sufficient IP capacity. For example: 'You need to access an Azure Storage account from on-premises over a private connection. What should you create in a subnet?'

D

In a scenario where a VPN gateway is failing to establish BGP peering due to missing configuration, enabling BGP on the gateway and the on-premises device would be the correct action to allow dynamic route exchange.

Why candidates pick the wrong answer

A

Candidates may think that moving NICs is a general method to free IP addresses, not realizing that gateway NICs are tied to the GatewaySubnet and cannot be relocated.

C

Candidates may confuse private endpoints with a method to reserve or allocate IP addresses, not realizing they actually consume addresses and are unrelated to gateway IP requirements.

D

Candidates may mistakenly think BGP reduces IP address usage because BGP can aggregate routes, but this does not affect the gateway's own IP address requirements.

342
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

B

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

C

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

D

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

When would these options actually be correct?

B

If the build server were an Azure VM or Azure App Service, a system-assigned managed identity could be used to authenticate to Azure without storing credentials, and RBAC could be assigned to that identity.

C

If the question asked for a method to deploy ARM templates interactively from a developer workstation with enhanced security, a personal account with MFA would be correct, as it protects the user's credentials and requires second-factor authentication.

D

A question asks: 'You need to grant a client application temporary access to a specific blob in Azure Storage without exposing the storage account key. What should you use?' In this case, a shared access signature would be the correct answer.

Why candidates pick the wrong answer

B

Candidates may confuse managed identities with service principals, thinking that managed identities can be used from any server, not just Azure-hosted resources.

C

Candidates may think MFA provides sufficient security for automated deployments, overlooking that MFA requires interactive human presence, which is not feasible for unattended build server operations.

D

Candidates may confuse SAS with a secure way to grant access to Azure resources, not realizing it is limited to storage services and cannot be used for ARM template deployment authorization.

343
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

If the question specified that contractors are permanent employees with stable membership and the requirement is to grant individual permissions for audit purposes, directly assigning roles to user accounts would be correct.

C

If the question asked about delegating access to Microsoft 365 resources (e.g., SharePoint, Exchange) or assigning Microsoft Entra roles (like Global Administrator), a Microsoft 365 group could be used via role-assignable groups.

D

An administrator needs to apply the same Azure role to all subscriptions within a department for compliance purposes, and the role should automatically apply to new subscriptions added to the management group. The question would specify that access must be inherited across multiple subscriptions without per-subscription assignment.

Why candidates pick the wrong answer

A

Candidates may think direct assignment is simpler or more straightforward, not realizing the administrative overhead of managing frequent changes.

C

Candidates may confuse Microsoft 365 groups with security groups, assuming all group types support Azure RBAC, or they may think Microsoft 365 groups are the same as Entra ID groups.

D

Candidates may confuse management groups with security groups, thinking that management groups can be used to manage user access similarly, or they may overestimate the granularity of management groups for user-level permissions.

344
MCQhard

A media company stores project video assets in Azure Blob Storage. The business requires the data to survive a single availability zone outage in the primary region. In addition, if the primary region becomes unavailable, operations staff must still be able to read the most recently replicated copy from the secondary region right away, even if writes are temporarily unavailable. Which redundancy option best meets this requirement?

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

Read-access geo-zone-redundant storage combines zone resilience with geo-replication and secondary read access.

Why this answer

RA-GZRS (Read-Access Geo-Zone-Redundant Storage) is correct because it combines zone-redundant storage (ZRS) within the primary region to survive a single availability zone outage, and geo-redundant storage (GRS) to replicate data to a secondary region. The 'RA' prefix enables read access to the secondary region immediately after a primary region failure, allowing operations staff to read the most recently replicated copy even if writes are temporarily unavailable.

Exam trap

The trap here is that candidates often confuse GZRS with RA-GZRS, forgetting that GZRS alone does not provide read access to the secondary region; the 'RA' prefix is required for immediate read access during a primary region outage.

Why the other options are wrong

A

ZRS replicates data synchronously across three availability zones in a single region, but does not provide a secondary region for disaster recovery. The requirement for reading from a secondary region immediately after a primary region outage is not met.

B

GZRS replicates data to a secondary region asynchronously, but it does not provide read access to the secondary region unless a failover is initiated. The requirement to read from the secondary region immediately after a primary region outage, without waiting for failover, necessitates RA-GZRS.

C

RA-GRS provides read-access to a secondary region during a primary region outage, but it does not guarantee data survival after a single availability zone outage in the primary region because GRS replicates across regions, not zones, and a zone failure could still cause data loss if the primary region has only one zone.

When would these options actually be correct?

A

A question requiring data to survive an availability zone outage within a single region, with no need for cross-region disaster recovery or read access from a secondary region. For example: 'An application needs high availability within a single region and must tolerate an availability zone failure. Which redundancy option should be used?'

B

A company requires data to be durable across regions and can tolerate a brief delay in accessing the secondary copy after a primary region failure. They do not need immediate read access to the secondary region; a manual failover process is acceptable.

C

A company requires read access to a secondary region during a primary region outage, but data durability only needs to survive a region-level disaster, not a zone-level failure. For example, a backup storage solution where the primary region is a single data center and the secondary region provides read-only access during failover.

Why candidates pick the wrong answer

A

Candidates may choose ZRS because it protects against zone failures, but they overlook the additional requirement for cross-region read access in the event of a primary region outage.

B

Candidates may confuse GZRS with RA-GZRS, thinking that GZRS also provides read-access geo-redundancy, or they may overlook the 'read-access' requirement in the question.

C

Candidates may confuse RA-GRS with RA-GZRS, thinking that read-access geo-redundant storage automatically includes zone-level redundancy, or they may overlook the requirement to survive an availability zone outage in the primary region.

345
MCQeasy

A line-of-business app runs on a single Azure VM in a region that supports availability zones. The business wants the VM to keep running if one datacenter in the region becomes unavailable. Which deployment choice best meets this requirement?

A.Availability set
B.Availability zone
C.Proximity placement group
D.Virtual machine scale set
AnswerB

An availability zone is one of one or more physically separate datacenters within an Azure region, each with independent power, cooling, and network connectivity. Deploying the VM to a zone gives it a datacenter-level fault isolation boundary, which is the only construct among these choices that addresses a datacenter-wide outage. To fully survive a zone failure in practice, you would add a second instance in another zone, but the zone placement itself is the fundamental prerequisite for this level of protection.

Why this answer

An availability zone is a physically separate datacenter within an Azure region, with independent power, cooling, and networking. Deploying the VM to a specific zone ensures it remains operational if another zone's datacenter fails, meeting the requirement for single-VM resilience against a datacenter outage.

Exam trap

The trap here is that candidates often confuse availability sets (which protect against rack-level failures) with availability zones (which protect against datacenter-level failures), leading them to choose the set when the question explicitly requires datacenter outage protection.

Why the other options are wrong

A

An availability set protects against failures within a single datacenter (e.g., rack or update domain failures) but does not provide resilience if an entire datacenter becomes unavailable, as all VMs in the set are in the same datacenter.

D

Virtual Machine Scale Set provides auto-scaling and load balancing across multiple VMs, but it does not guarantee that a single VM continues running if a datacenter fails; it requires multiple instances and may not maintain the specific VM instance.

When would these options actually be correct?

A

If the requirement were to protect against hardware failures within a single datacenter (e.g., server or rack failure) while maintaining high availability for two or more VMs, an availability set would be the correct choice.

D

A question requiring high availability and scalability for a stateless application that can run on multiple instances, such as a web front-end, where the requirement is to automatically add or remove VMs based on demand and survive zone failures by distributing instances across zones.

Why candidates pick the wrong answer

A

Candidates may confuse availability sets with availability zones, thinking both provide datacenter-level redundancy, or they may assume 'availability' in the name implies full disaster recovery.

D

Candidates may think that a scale set inherently provides availability zone resilience, but without configuring zone distribution, it only offers high availability within a single datacenter.

346
Multi-Selecteasy

An application needs more data disk capacity, but the VM can keep using the same managed disk. Which two statements are true when you resize a managed data disk? Select two.

Select 2 answers
A.You can increase the managed disk size without redeploying the VM.
B.You may need to extend the partition or filesystem inside the guest OS.
C.You must create a brand-new VM before resizing the disk.
D.Resizing a disk always shrinks it back to a smaller size.
E.The VM size must always change whenever disk capacity changes.
AnswersA, B

Azure managed disks can be expanded in place without redeploying the VM. You use the Azure portal, PowerShell, or CLI to increase the disk size on a running or stopped VM; this operation updates the disk resource itself, and the VM continues to use the same disk. No new VM is created and no OS reinstall is required.

Why this answer

Azure managed disks support online resizing: you can increase the size of a managed data disk while the VM remains running, without any need to stop, deallocate, or redeploy the VM. This is possible because the underlying Azure storage infrastructure can extend the virtual hard disk (VHD) file without disrupting the VM's I/O operations. After the resize, the guest OS sees the new capacity, but the partition and filesystem must be extended manually.

Exam trap

The trap here is that candidates assume resizing a disk requires a VM restart or redeployment, but Azure allows online resizing for managed disks, and the only post-resize step is extending the partition inside the guest OS.

Why the other options are wrong

C

Azure managed disks can be resized without creating a new VM; you simply stop the VM (or keep it running for some disk types), update the disk size, and then extend the partition inside the OS.

D

Resizing a managed data disk in Azure always increases the disk size; you cannot shrink a managed disk. The option incorrectly states that resizing shrinks the disk.

E

VM size and disk capacity are independent; you can change disk size without altering the VM size. The VM size only affects performance limits (IOPS/throughput), not storage capacity.

When would these options actually be correct?

C

If the question stated that the disk is an unmanaged disk stored in a storage account, or if the VM's size does not support the new disk capacity, you might need to create a new VM with appropriate storage configuration.

D

This option would be correct if the question asked about shrinking a disk or if it referred to a scenario where the disk is resized to a smaller size, such as when using a third-party tool to reduce the partition size and then detaching the disk to create a smaller managed disk from a snapshot.

E

If the question asked about increasing disk performance (IOPS/throughput) beyond the current VM size's limits, then you would need to resize the VM to a larger size that supports higher disk performance.

Why candidates pick the wrong answer

C

Candidates may confuse managed disks with unmanaged disks or think that any disk resize requires a new VM, similar to on-premises scenarios where hardware changes are needed.

D

Candidates may confuse resizing with shrinking, thinking that disk management operations allow both increase and decrease, similar to on-premises disk tools.

E

Candidates may conflate disk capacity with VM performance tiers, assuming that more storage always requires a larger VM, or they may think disk resizing is tied to VM size changes.

347
MCQhard

An operations team manages an Azure virtual machine scale set that hosts a stateless API. They already collect guest logs in Log Analytics, but they do not want to ingest extra performance data just to watch CPU. They need an alert when average CPU across the scale set stays above 80% for 10 minutes, and the notification must support email and a webhook. What should they configure?

A.Create a diagnostic setting on the scale set and build a log query alert for CPU samples.
B.Create an Azure Monitor metric alert on the scale set CPU metric and attach an action group.
C.Configure an autoscale rule and rely on its notification settings for alerting.
D.Install a monitoring extension that writes CPU readings to storage for later review.
AnswerB

Metric alerts evaluate platform metrics directly, so no extra log ingestion is needed. An action group is the correct notification mechanism for email, webhook, SMS, or other responses. This design is the lowest-overhead way to detect sustained CPU pressure on a VM scale set and notify operators quickly.

Why this answer

Azure Monitor metric alerts can directly evaluate the 'Percentage CPU' metric from a virtual machine scale set without ingesting additional performance data into Log Analytics. By setting the aggregation to 'Average' and the threshold to 80% for a duration of 10 minutes, the alert triggers when the condition is met. An action group attached to the alert can send notifications via email and webhook simultaneously, meeting all requirements without extra data ingestion.

Exam trap

The trap here is that candidates often confuse metric alerts with log query alerts, assuming CPU monitoring requires Log Analytics ingestion, when in fact platform metrics are available natively and can be alerted on directly without extra data collection.

Why the other options are wrong

A

The question states they do not want to ingest extra performance data just to watch CPU, and a log query alert requires CPU samples to be sent to Log Analytics, which would incur additional cost and data ingestion.

C

Autoscale rules are designed to automatically adjust the number of instances based on metrics, not to send alerts. Their notification settings are for scaling events, not for alerting on sustained high CPU, and they lack the flexibility of action groups (e.g., email and webhook).

D

This option requires writing CPU data to storage and later reviewing it, which does not provide real-time alerting with email and webhook notification as required by the question.

When would these options actually be correct?

A

If the question required alerting based on custom CPU metrics or complex conditions that can only be expressed via log queries (e.g., combining CPU with memory or application logs), and the team was already collecting guest logs in Log Analytics, then a log query alert would be appropriate.

C

A question that asks: 'You need to automatically add instances to a scale set when average CPU exceeds 80% for 10 minutes. What should you configure?' In that case, an autoscale rule would be the correct answer.

D

If the question asked for a method to collect historical CPU performance data for compliance or auditing purposes, without the need for real-time alerting, then installing a monitoring extension to write CPU readings to storage would be appropriate.

Why candidates pick the wrong answer

A

Candidates may think that since they already collect guest logs, extending that to include CPU metrics is a natural step, and they may not realize that Azure Monitor provides a built-in CPU metric that can be used without additional data ingestion.

C

Candidates may confuse autoscale notifications with alerting capabilities, or think that autoscale rules can serve as a substitute for metric alerts because both involve CPU thresholds.

D

Candidates may think that any monitoring extension can provide alerting capabilities, or they may confuse diagnostic settings with metric collection, overlooking that the question specifically requires real-time alerting with notifications.

348
MCQhard

A Recovery Services vault protects 40 VMs by using one daily backup policy that retains recovery points for 7 days. One finance VM must keep daily recovery points for 30 days, but the other VMs should remain on the 7-day policy. What should the administrator do?

A.Edit the existing policy so all protected VMs inherit 30-day retention.
B.Create a second backup policy with 30-day retention and assign only the finance VM to it.
C.Move the finance VM to another resource group so it gets different retention automatically.
D.Apply a resource lock to the finance VM to preserve its recovery points longer.
AnswerB

Backup policy settings apply to the items associated with that policy. To give one VM a longer retention period without changing the others, the administrator should create a separate policy and assign only the finance VM to that policy. This preserves the standard 7-day policy for the rest of the fleet while meeting the special retention requirement.

Why this answer

Azure Backup allows multiple backup policies within a single Recovery Services vault, and you can assign different policies to different VMs. By creating a second policy with 30-day retention and assigning only the finance VM to it, the administrator meets the requirement without affecting the other 39 VMs that continue using the existing 7-day policy.

Exam trap

The trap here is that candidates may think a single vault can only have one backup policy, or that moving a VM to another resource group or applying a resource lock will affect backup retention, when in fact backup policies are independent of resource groups and locks only protect the resource, not its backup data.

Why the other options are wrong

A

Editing the existing policy to 30-day retention would apply the change to all 40 VMs, not just the finance VM, violating the requirement to keep other VMs on the 7-day policy.

C

Moving a VM to a different resource group does not change its backup policy or retention settings; backup policies are assigned per vault, not per resource group.

D

A resource lock prevents deletion or modification of the VM or its backup data, but it does not extend the retention period of recovery points. The backup policy still deletes points after 7 days regardless of the lock.

When would these options actually be correct?

A

If the requirement were to apply the same retention period to all protected VMs (e.g., all VMs must retain daily recovery points for 30 days), then editing the existing policy would be the correct approach.

C

If the question asked about isolating a VM for management purposes, such as applying different RBAC permissions or tags, moving to another resource group would be correct.

D

A resource lock would be correct if the question asked how to prevent accidental deletion of a VM or its backup data, or to ensure that existing recovery points are not removed by administrative actions, while the backup policy remains unchanged.

Why candidates pick the wrong answer

A

Candidates may think editing the existing policy is simpler and assume they can selectively apply changes, not realizing that backup policies in Recovery Services vaults are applied to all associated items unless multiple policies are used.

C

Candidates may incorrectly assume that resource groups can be used to separate backup configurations, confusing resource group boundaries with policy assignment boundaries.

D

Candidates may mistakenly think that locking a resource preserves its backup data longer, confusing protection against deletion with retention policy configuration.

349
Multi-Selecthard

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

C

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

D

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

E

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

When would these options actually be correct?

C

If the requirement was to apply different policies to different resource groups within a subscription, or if the policies needed to be scoped to specific resource groups only (e.g., for granular control), then assigning individually at each resource group would be correct.

D

This option would be correct in a scenario where the question asks: 'You need to delegate full administrative control over all subscriptions under a management group to a new administrator. Which role should you assign at the management-group scope?'

E

A resource lock would be correct if the question required preventing accidental deletion or modification of critical resources, such as a production database, without needing to enforce policies on location or tags.

Why candidates pick the wrong answer

C

Candidates may think that applying policies at the resource group level gives more granular control, but they overlook the need for centralized enforcement across multiple subscriptions under a management group.

D

Candidates may confuse RBAC roles with policy enforcement, thinking that granting Owner permissions allows them to set rules or restrictions, but RBAC controls access, not compliance.

E

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

350
MCQmedium

Engineers need a single Log Analytics workspace to investigate incidents by querying Windows event logs from a VM and Azure resource logs from a storage account. What should the administrator configure?

A.Create a resource lock on the workspace and let each team send emails when incidents happen.
B.Use Azure Monitor Agent with a data collection rule for the VM and diagnostic settings for the storage account, both sending data to the same workspace.
C.Move the VM and storage account into the same availability set so their logs appear together.
D.Enable a private endpoint for the workspace and disable all diagnostic collection.
AnswerB

VM guest logs require the Azure Monitor Agent and a data collection rule, while storage account platform logs are exported with diagnostic settings. Sending both to one Log Analytics workspace gives the team a single place to correlate incidents with KQL.

Why this answer

Azure Monitor Agent (AMA) with a data collection rule (DCR) collects Windows event logs from VMs, and diagnostic settings on a storage account send Azure resource logs to the same Log Analytics workspace. This centralizes both data sources for unified querying and incident investigation.

Exam trap

The trap here is that candidates may confuse availability sets (a VM high-availability feature) with log aggregation, or assume that a resource lock or private endpoint somehow enables data collection, when in fact only proper data collection agents and diagnostic settings can route logs to a workspace.

Why the other options are wrong

A

Resource locks prevent accidental deletion or modification but do not collect or centralize logs; they cannot enable querying Windows event logs and Azure resource logs in a single workspace.

C

Availability sets are used for VM high availability, not for aggregating logs from different Azure resources into a single Log Analytics workspace.

D

Disabling all diagnostic collection would prevent sending Azure resource logs from the storage account and Windows event logs from the VM to the Log Analytics workspace, making incident investigation impossible.

When would these options actually be correct?

A

An administrator needs to prevent deletion of a critical Log Analytics workspace that stores compliance data; creating a resource lock (e.g., CanNotDelete) ensures the workspace remains intact.

C

In a question asking how to ensure high availability for a multi-tier application by placing VMs in different fault domains and update domains, configuring an availability set would be the correct answer.

D

When the requirement is to ensure secure and private connectivity to a Log Analytics workspace while restricting data collection to only authorized sources, such as in a highly regulated environment where data exfiltration must be prevented.

Why candidates pick the wrong answer

A

Candidates may confuse resource locks with access control or think locking helps manage log collection, overlooking that locks only protect resources, not aggregate data.

C

Candidates may confuse the concept of grouping resources for availability with the need to group logs for analysis, assuming that placing resources together in an availability set also consolidates their logs.

D

Candidates may think that enabling a private endpoint enhances security and that disabling diagnostic collection simplifies management, not realizing it eliminates the data needed for analysis.

351
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

B

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

C

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

When would these options actually be correct?

A

If the question required granting the engineer the ability to manage all networking resources across multiple subscriptions within a management group (e.g., for a global network administrator), then assigning at the management group scope would be correct.

B

This option would be correct if the question required the engineer to manage all virtual networks and subnets within the entire subscription, without any restriction to a specific resource group or virtual network.

C

This option would be correct if the question required the engineer to manage all networking resources within the rg-platform resource group, such as multiple virtual networks and subnets, without needing access to resources in other resource groups.

Why candidates pick the wrong answer

A

Candidates may think that assigning at a higher scope (management group) is more efficient or covers the needed resource, but they overlook that it grants excessive permissions beyond the intended scope.

B

Candidates may think that assigning at the subscription scope is a convenient way to grant network permissions broadly, overlooking the need for least privilege and the specific constraint to limit access to only one VNet.

C

Candidates may mistakenly think that assigning the role at the resource group level is sufficient to limit access to only the resources within that group, overlooking that it still grants permissions to all networking resources in the group, not just the specified VNet.

352
Matchingmedium

A response team is designing notification paths for Azure Monitor alerts. Match each action group receiver or action to the outcome it provides.

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

Concepts
Matches

Delivers the alert to a mailbox or distribution list.

Sends a text message to an on-call phone number.

Calls an external HTTPS endpoint such as a ticketing or orchestration system.

Runs custom code after the alert fires.

Starts a scripted remediation runbook in Azure Automation.

Why these pairings

Email/SMS/Push/Voice are direct notifications; ITSM connector creates tickets; Automation runbook runs scripts; Webhook sends to external services like Teams; Push notifications target mobile apps.

353
MCQhard

Based on the exhibit, what should the administrator change to allow only the web tier to reach the app tier on TCP 8443?

A.Move the allow rule for WebTier-ASG to a priority lower than 100.
B.Change the deny rule source from VirtualNetwork to Internet.
C.Associate the NSG with the virtual machine NIC instead of the subnet.
D.Replace the ASG destination with the subnet address range.
AnswerA

NSG rules are processed in ascending priority order, where a lower number (e.g., 90) is evaluated before a higher number (e.g., 100). The existing deny rule at priority 100 matches all traffic from VirtualNetwork to AppTier-ASG on TCP 8443, including the web tier's traffic. To let the web tier through, the allow rule for WebTier-ASG must carry a priority lower than 100, ensuring it is evaluated first. Without this change, the deny rule will always block the desired traffic, regardless of the allow rule's other settings.

Why this answer

The exhibit shows a default-deny NSG rule at priority 100 that blocks all traffic from VirtualNetwork to VirtualNetwork. To allow only the web tier (WebTier-ASG) to reach the app tier (AppTier-ASG) on TCP 8443, the administrator must move the allow rule for WebTier-ASG to a priority lower than 100 (e.g., 90). This ensures the allow rule is evaluated before the deny rule, as NSG rules are processed in priority order (lowest number first).

Exam trap

The trap here is that candidates often overlook the default-deny rule at priority 100 and assume any allow rule will work regardless of priority, failing to realize that NSG rules are processed in strict priority order and a higher-priority deny will override a lower-priority allow.

Why the other options are wrong

B

Changing the deny rule source from VirtualNetwork to Internet would block all internet traffic, but the issue is that the deny rule with priority 65000 is blocking traffic from the web tier (which is within the virtual network) to the app tier. The source should remain VirtualNetwork to allow internal traffic; the problem is the rule priority.

C

Associating the NSG with the VM NIC instead of the subnet would not resolve the issue because the NSG rules are evaluated at the subnet level for traffic between subnets. The problem is that the deny rule with priority 100 is blocking traffic from the web tier subnet to the app tier subnet; moving the NSG to the NIC would not change the subnet-level rule evaluation.

D

Replacing the ASG destination with the subnet address range would remove the application security group's ability to dynamically track the web tier's VMs, breaking the intended rule that only the web tier (ASG members) can reach the app tier on TCP 8443.

When would these options actually be correct?

B

This option would be correct if the question required blocking inbound traffic from the internet to the app tier while allowing traffic from the web tier. For example, if the deny rule was intended to block internet traffic but was incorrectly scoped to VirtualNetwork, changing the source to Internet would fix it.

C

This option would be correct in a scenario where the NSG is applied at the subnet level but you need to apply different rules to individual VMs within the same subnet. For example, if you want to allow specific traffic to one VM while blocking it to another VM in the same subnet, you would associate the NSG with the VM NIC instead of the subnet.

D

This option would be correct if the question asked to allow traffic from a specific subnet (e.g., 10.0.1.0/24) to the app tier, and the NSG rule was using an ASG that did not match the required source. In that case, using the subnet address range as the destination would be appropriate.

Why candidates pick the wrong answer

B

Candidates may think the deny rule is blocking internet traffic to the app tier, so changing the source to Internet seems logical. They overlook that the deny rule's priority is too high and is blocking internal traffic from the web tier.

C

Candidates may think that applying the NSG closer to the VM (at the NIC) gives more granular control and might override subnet-level rules, not realizing that subnet-level NSG rules are evaluated first and can still block traffic regardless of NIC-level rules.

D

Candidates may think that using a subnet address range is simpler and more direct than an ASG, not realizing that ASGs provide dynamic membership and are essential for scaling groups where VM IPs change.

354
MCQmedium

A reporting server VM will run an analytics engine that uses a large in-memory cache. Required minimums are 8 vCPUs and 64 GiB of RAM, and the workload benefits more from memory than from extra compute. Which Azure VM series is the best fit?

A.B-series, because burstable credits handle temporary spikes economically
B.D-series, because it balances general-purpose CPU and memory
C.E-series, because it provides memory-optimized sizing for data-intensive workloads
D.F-series, because it is optimized for high CPU throughput
AnswerC

E-series VMs are memory optimized, which makes them a strong fit when the workload needs more RAM relative to CPU. A server running an in-memory cache or analytics engine benefits from that higher memory footprint, and the family includes sizes that satisfy the stated minimums.

Why this answer

The E-series (specifically Ev3, Esv3, or Ebsv5) is memory-optimized, offering the highest memory-to-vCPU ratio among Azure general-purpose families. With a requirement of 64 GiB RAM and only 8 vCPUs, the workload benefits more from memory than compute, making the E-series the best fit. D-series provides balanced ratios but not the memory density needed, while F-series and B-series are compute- or burst-oriented and lack sufficient memory per vCPU.

Exam trap

The trap here is that candidates see '8 vCPUs and 64 GiB RAM' and assume a general-purpose D-series is sufficient, overlooking that the workload benefits more from memory than compute, which directly points to the memory-optimized E-series as the most cost-effective and performant choice.

Why the other options are wrong

A

The B-series is designed for workloads with low baseline CPU usage and occasional bursts, not for sustained high memory usage. The analytics engine requires consistent high memory (64 GiB) and compute (8 vCPUs), which burstable credits cannot reliably provide.

B

The D-series is a general-purpose VM that balances CPU and memory, but the workload requires memory optimization (large in-memory cache) and benefits more from memory than compute, making the memory-optimized E-series a better fit.

D

The F-series is compute-optimized for high CPU throughput, but this workload benefits more from memory than extra compute, making it unsuitable for the large in-memory cache requirement.

When would these options actually be correct?

A

A web server that experiences sporadic traffic spikes (e.g., a marketing campaign site) and can tolerate lower baseline performance, where burstable credits reduce cost while handling short bursts.

B

A question where the workload has balanced CPU and memory requirements, such as a web server or small database that needs moderate resources without a specific memory or compute bias, and cost is a primary concern.

D

An exam scenario where the workload is CPU-intensive, such as batch processing or high-frequency trading, with no special memory requirements, and cost is a concern.

Why candidates pick the wrong answer

A

Candidates may think burstable credits offer a cost-effective way to handle the workload's memory demands, overlooking that the workload requires sustained high memory and compute, not just occasional bursts.

B

Candidates may default to the familiar D-series as a safe, general-purpose choice without recognizing that the workload's emphasis on memory over compute calls for a specialized memory-optimized series.

D

Candidates may confuse 'high performance' with memory optimization, or assume that any analytics engine needs high CPU, overlooking the specific memory-cache benefit.

355
MCQmedium

Based on the exhibit, what should you do so the report can open the file tomorrow morning?

A.Change the blob to the Hot access tier and allow it to rehydrate before the report runs.
B.Change the blob to the Cool access tier only, because Cool is always immediately readable.
C.Create a snapshot of the archived blob and use the snapshot instead.
D.Enable versioning on the storage account so the file becomes readable again.
AnswerA

Archive blobs are offline and cannot be read until they are rehydrated to an online tier. Moving the blob to Hot is the appropriate action when access is needed soon, because it restores immediate read availability after the rehydration completes.

Why this answer

The blob is currently in the Archive access tier, which requires manual rehydration (changing the tier to Hot or Cool) before it can be read. Rehydration can take up to 15 hours, so changing the blob to the Hot access tier now and allowing it to complete rehydration before the report runs tomorrow ensures the file is available for reading.

Exam trap

The trap here is that candidates assume the Cool access tier is always immediately readable, forgetting that blobs in the Archive tier must be rehydrated to any online tier before access, and that rehydration time is significant.

Why the other options are wrong

B

The Cool access tier is immediately readable, but the blob is currently in the Archive tier. Changing to Cool alone does not trigger rehydration; the blob remains frozen until explicitly rehydrated to Hot or Cool, which takes hours. Thus, it won't be readable by tomorrow morning.

C

Snapshots of an archived blob are also in the archived state and are not immediately readable; they must be rehydrated first, which does not solve the requirement for immediate access tomorrow morning.

D

Enabling versioning does not make an archived blob immediately readable; the blob is still in the Archive tier and must be rehydrated to an online tier before access.

When would these options actually be correct?

B

If the blob were already in the Archive tier and the question required immediate read access without waiting (e.g., 'the report must run in 10 minutes'), then changing to Cool would be wrong. However, if the blob were in the Cool tier and needed to be accessed, no rehydration is needed, so 'Change to Cool' would be correct if the current tier were Hot or Cool but not Archive.

C

This option would be correct if the question required preserving the original blob's state while providing read access to a point-in-time copy, and the snapshot was taken before the blob was archived (i.e., when it was in a hot or cool tier), making the snapshot immediately readable.

D

If the question asked how to protect against accidental deletion or overwrite of a blob that is already in an accessible tier, enabling versioning would allow recovery of previous versions.

Why candidates pick the wrong answer

B

Candidates may mistakenly think that changing the access tier to Cool instantly makes the blob readable, overlooking the rehydration delay required when moving from Archive to any online tier.

C

Candidates may think snapshots provide instant access to a previous version of the blob, overlooking that snapshots inherit the access tier of the base blob at the time of creation, so an archived blob's snapshot is also archived.

D

Candidates may confuse versioning with tier changes, thinking it provides a quick way to access archived data without understanding the rehydration requirement.

356
MCQeasy

A company has two application VMs in the same Azure region. The main requirement is to reduce downtime during planned host maintenance. The business does not require protection from a complete datacenter outage. Which option should you choose?

A.Availability zones
B.Availability set
C.Virtual machine scale set
D.Proximity placement group
AnswerB

An availability set spreads VMs across update domains and fault domains within a datacenter boundary. That helps reduce downtime during planned maintenance and some hardware issues. Since the requirement does not include protection from an entire datacenter outage, an availability set is the right and simpler choice.

Why this answer

An availability set distributes VMs across multiple fault domains and update domains within a single Azure datacenter. During planned host maintenance, Azure updates one update domain at a time, ensuring that only a subset of VMs are rebooted simultaneously, thereby reducing downtime. This meets the requirement of protecting against planned maintenance without needing cross-datacenter redundancy.

Exam trap

The trap here is that candidates often confuse availability zones (which protect against datacenter-level failures) with availability sets (which protect against rack-level failures and planned maintenance), leading them to over-engineer the solution with zones when the requirement explicitly excludes datacenter outage protection.

Why the other options are wrong

A

Availability zones protect against datacenter-level failures by distributing VMs across physically separate zones, but the question explicitly states no protection from a complete datacenter outage is required. The requirement is only to reduce downtime during planned host maintenance, which availability sets handle by placing VMs in different fault domains within the same datacenter.

C

Virtual Machine Scale Sets (VMSS) are designed for auto-scaling and managing multiple identical VMs, not for reducing downtime during planned host maintenance for a fixed set of two VMs. An availability set provides fault and update domain isolation for two VMs, which directly addresses the requirement.

D

Proximity placement groups reduce network latency between VMs but do not provide any redundancy or protection against planned host maintenance or datacenter outages. They are not designed for high availability.

When would these options actually be correct?

A

This option would be correct if the question required protection from a complete datacenter outage (e.g., due to power failure or natural disaster) and the business needed high availability across physically separated facilities within the same region.

C

A question requiring automatic scaling of VMs based on demand, such as 'A company expects variable traffic to its web application and needs to automatically add or remove VM instances. Which option should you choose?'

D

A question requiring the lowest network latency between VMs for a latency-sensitive application, such as high-performance computing or real-time data processing, where VMs must be physically close together.

Why candidates pick the wrong answer

A

Candidates often confuse availability zones with availability sets, assuming zones provide better availability for all scenarios, but they overlook the specific requirement that only planned maintenance downtime needs to be reduced, not datacenter outage protection.

C

Candidates may confuse VMSS with high availability features, thinking that the scale set's ability to distribute VMs across fault domains provides similar protection as an availability set, but VMSS is primarily for scaling, not for planned maintenance isolation.

D

Candidates may confuse proximity placement groups with availability sets or zones, thinking that grouping VMs closely together provides some form of redundancy or fault tolerance.

357
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

B

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

D

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

When would these options actually be correct?

A

If the question stated that engineers should have full control including deletion, or if no restriction on deletion is needed, then no lock would be appropriate.

B

When the requirement is to prevent all changes to a resource group, including read operations like viewing secrets or keys, and no maintenance actions are needed.

D

A scenario where you need to prevent specific resource configurations (e.g., ensuring VMs are only deployed in certain regions) while allowing other operations. For example, 'You need to ensure that all VMs in a resource group are deployed in the West US region, but engineers can still manage them. What should you use?'

Why candidates pick the wrong answer

A

Candidates may think that RBAC roles alone are sufficient to prevent deletion, overlooking that resource locks provide an additional layer of protection.

B

Candidates may confuse 'prevent deletion' with 'prevent changes' and think ReadOnly is a stronger lock, or they may not realize that ReadOnly blocks write operations needed for maintenance.

D

Candidates may confuse Azure Policy with resource locks because both are used for governance and control. They might think a deny assignment can selectively block deletions while allowing other changes, not realizing it applies to specific policy conditions rather than operations.

358
MCQmedium

You need to view recommendations about underutilized virtual machines, security improvements, and cost-saving opportunities in Azure. Which service should you use?

A.Azure Advisor
B.Azure Policy
C.Network Watcher
D.Azure Backup
AnswerA

Azure Advisor is the correct service for viewing recommendations about underutilized virtual machines. It continuously analyzes your resource configuration and telemetry, such as CPU and network utilization, to provide personalized best practices across cost, security, reliability, and performance. For VMs that are idle or have low usage over a 14-day period, Advisor generates specific recommendations to right-size or shut down the machine, making it the appropriate tool for optimization guidance.

Why this answer

Azure Advisor provides personalized best-practice recommendations related to reliability, security, performance, operational excellence, and cost.

Why the other options are wrong

B

Azure Policy is used to enforce organizational standards and assess compliance, not to provide recommendations on underutilized resources, security improvements, or cost savings.

C

Network Watcher provides network monitoring and diagnostics (e.g., packet capture, topology), not recommendations on underutilized VMs, security improvements, or cost savings.

D

Azure Backup is a service for backing up data and workloads, not for providing recommendations on underutilized resources, security improvements, or cost savings.

When would these options actually be correct?

B

When a question asks how to enforce tagging rules, restrict resource types, or audit compliance with corporate policies across Azure subscriptions, Azure Policy is the correct service.

C

When the question asks for a service to monitor network performance, diagnose connectivity issues, or capture network traffic between VMs in Azure.

D

When the question asks for a service to protect data and restore it in case of failure or disaster, such as 'You need to ensure virtual machine data is recoverable after accidental deletion.'

Why candidates pick the wrong answer

B

Candidates may confuse policy enforcement with advisory recommendations, thinking that policies can also suggest improvements, but Azure Policy only enforces rules, not provides proactive advice.

C

Candidates may confuse network monitoring with general Azure monitoring and assume Network Watcher offers broader recommendations, or they think 'underutilized VMs' relates to network usage.

D

Candidates may confuse Azure Backup with Azure Advisor because both are related to management and optimization, but Backup focuses on data protection rather than recommendations.

359
MCQhard

A finance department stores spreadsheets in an Azure file share. Yesterday a user deleted a subfolder tree, but other folders were modified after that point and must not be rolled back. The administrator wants to restore only the deleted subfolder tree to its state from yesterday. What should the administrator use?

A.Restore the entire share from Azure Backup to the yesterday recovery point.
B.Use the Azure Files snapshot taken before the deletion and copy back only the required folders.
C.Enable blob soft delete on the storage account and then recover the folders.
D.Create a new file share and use synchronization to merge the deleted content.
AnswerB

Azure Files snapshots are read-only, point-in-time copies of the entire file share. Because the snapshot was taken before the deletion, it still contains the full folder tree. You can mount that snapshot over SMB or via the Azure portal, then copy back only the affected folders to the live share using tools like AzCopy or Robocopy, leaving all other files and any subsequent valid changes untouched. This is the minimal-impact recovery method.

Why this answer

Azure Files supports snapshot-based restore at the share level. By taking a snapshot before the deletion, the administrator can mount that snapshot as a read-only copy of the share, then copy back only the deleted subfolder tree without affecting any modifications made to other folders after the snapshot was taken. This meets the requirement of restoring only the deleted content while preserving later changes.

Exam trap

The trap here is that candidates confuse Azure Files snapshots with Azure Backup or blob soft delete, assuming any recovery mechanism can selectively restore without understanding that only snapshots allow granular copy-back without affecting current data.

Why the other options are wrong

A

Restoring the entire share from Azure Backup to yesterday's recovery point would roll back all changes made after that point, including modifications to other folders that must not be rolled back.

C

Blob soft delete is for Azure Blob Storage, not Azure Files. The question specifies an Azure file share, so blob soft delete cannot be used to recover deleted folders in a file share.

D

Creating a new file share and using synchronization would not restore the deleted subfolder tree to its previous state; it would merge current content, potentially overwriting modifications that must be preserved.

When would these options actually be correct?

A

If the requirement were to restore the entire file share to a previous state, and no other folders had been modified after the recovery point, then using Azure Backup to restore the whole share would be appropriate.

C

An administrator needs to recover accidentally deleted blobs in an Azure Blob Storage container, and the storage account has blob soft delete enabled. The administrator can use the soft delete feature to undelete the blobs within the retention period.

D

An administrator needs to migrate data from an on-premises server to Azure while maintaining continuous access and minimizing downtime. Using Azure File Sync to synchronize the on-premises share with a new Azure file share would be correct.

Why candidates pick the wrong answer

A

Candidates may think Azure Backup is the standard way to recover deleted data, overlooking that file share snapshots provide granular restore without affecting other changes.

C

Candidates may confuse Azure Files with Azure Blob Storage or think that soft delete applies to all storage types, not realizing it is specific to blobs.

D

Candidates may think synchronization can selectively restore deleted items by syncing from a backup or previous state, but Azure File Sync does not provide point-in-time recovery of deleted folders.

360
MCQmedium

An application uploads documents by using one of the storage account access keys. The team wants to rotate keys without interrupting uploads. Which process should the administrator follow?

A.Regenerate both keys at the same time so the account is fully refreshed.
B.Switch the app to the secondary key, regenerate the primary key, and then update the app back later.
C.Disable shared key authorization before rotating the keys.
D.Delete the storage account and create a new one with the same name.
AnswerB

Azure Storage provides two account keys so you can rotate credentials with no downtime. The correct approach is to move the application to the secondary key first, verify that it works, regenerate the primary key, and then later rotate the app back if needed. This preserves access throughout the process and avoids a period where the application has no valid key.

Why this answer

It follows the safe key rotation pattern: switch the application to use the secondary key, regenerate the primary key (which invalidates the old primary key), and then later update the application back to the primary key if desired. This ensures the application never loses access during the rotation, as it always has a valid key in use.

Exam trap

The trap here is that candidates may think regenerating both keys at once is acceptable, not realizing that the application would lose access immediately, or they may overcomplicate the solution by disabling authorization or recreating the account.

Why the other options are wrong

A

Regenerating both keys simultaneously would break the application's access immediately, as the app would have no valid key to use during the rotation, causing upload interruptions.

C

Disabling shared key authorization before rotating keys would immediately break the application's ability to upload documents, as it relies on access keys. This interrupts uploads, which the question explicitly aims to avoid.

D

Deleting and recreating the storage account would cause downtime and data loss, which is unnecessary and disruptive for key rotation.

When would these options actually be correct?

A

This option would be correct if the question specified that the application can tolerate downtime or if the keys are not currently in use, and the goal is to refresh both keys without maintaining a fallback.

C

This option would be correct if the question required enforcing Azure AD authentication only and disabling shared key access as a security best practice, with the application already updated to use Azure AD or managed identities for authentication.

D

This option would be correct if the question asked for a method to completely reset all access keys and start fresh, such as after a security breach where keys are compromised and the account is no longer trusted.

Why candidates pick the wrong answer

A

Candidates may think regenerating both keys at once is efficient and 'fully refreshes' the account, overlooking the need for a seamless transition without service disruption.

C

Candidates may think disabling shared key authorization is a necessary security step before key rotation, but they overlook that the application currently uses access keys, so disabling them first would cause an outage.

D

Candidates may think a clean slate is the safest approach, overlooking the fact that key rotation can be done without deleting the account.

361
MCQmedium

A development subnet must access an Azure Storage account privately, but the security team does not want to create a private IP in the VNet. They only want the subnet identity to be extended to the storage service. Which feature should the administrator configure?

A.Private endpoint
B.Service endpoint
C.Azure Front Door
D.Network security group outbound rule
AnswerB

A service endpoint extends the VNet and subnet identity to the supported Azure service without creating a private IP address in the VNet. That fits the requirement exactly because the team wants private access semantics from the subnet while avoiding a private endpoint. It is the correct choice when the main goal is to restrict service access to a subnet rather than provide a private IP-based connection.

Why this answer

A service endpoint extends the VNet identity to the Azure Storage service, allowing traffic from the subnet to reach the storage account over the Azure backbone network without requiring a private IP. This meets the requirement of private access without creating a private IP in the VNet, as the subnet's identity is used for access control via the storage account firewall.

Exam trap

The trap here is that candidates often confuse service endpoints with private endpoints, assuming both require a private IP, but service endpoints use the subnet's identity without assigning a private IP, which is the key distinction tested in this question.

Why the other options are wrong

A

Private endpoint creates a private IP in the VNet, which the security team explicitly wants to avoid. The requirement is to extend the subnet identity to the storage service without a private IP.

C

Azure Front Door is a global load balancer and application delivery network for HTTP/HTTPS traffic, not a feature to extend subnet identity to Azure Storage for private access. It does not provide private connectivity from a subnet to a storage account.

D

Network security group (NSG) outbound rules control traffic filtering, not private connectivity or identity extension to a service. They cannot provide a private subnet identity to Azure Storage.

When would these options actually be correct?

A

A question where the requirement is to access an Azure Storage account privately with a private IP address within the VNet, ensuring traffic never traverses the public internet.

C

A company needs to provide secure, fast, and scalable global access to a web application hosted in Azure, with features like SSL termination, URL-based routing, and WAF. In that scenario, Azure Front Door would be the correct answer.

D

An NSG outbound rule would be correct in a scenario where the question asks how to block or allow specific outbound traffic from a subnet to an Azure Storage account, such as denying all outbound traffic except to a specific storage endpoint for security compliance.

Why candidates pick the wrong answer

A

Candidates may confuse private endpoint with service endpoint, both providing private access, but fail to note the key difference that private endpoint uses a private IP, which is prohibited here.

C

Candidates may confuse Azure Front Door's ability to route traffic to Azure services with private connectivity, or think it can replace service endpoints for storage access due to its integration with Azure services.

D

Candidates may confuse traffic filtering with connectivity, thinking that an NSG rule can establish private access by allowing outbound traffic to the storage service, but it only controls allowed destinations, not the network path or identity.

362
Multi-Selectmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

B

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

C

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

E

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

When would these options actually be correct?

B

This option would be correct in a scenario where the contractor pool is static (no turnover) and the administrator needs to grant specific, individual permissions that differ per contractor, with no requirement for automated group-based management.

C

This option would be correct in a question about enabling VM sign-in for a group of users using Microsoft Entra ID authentication, where a Microsoft 365 group can be used to grant access to VMs joined to Microsoft Entra ID.

E

A question asks how to grant an Azure VM access to Key Vault secrets without storing credentials. The correct answer would be to assign a user-assigned managed identity to the VM and grant that identity the Key Vault Secrets User role.

Why candidates pick the wrong answer

B

Candidates may think direct assignment is simpler or more straightforward, not realizing it creates administrative overhead for a dynamic group like a monthly-changing contractor pool.

C

Candidates may confuse Microsoft 365 groups with security groups, thinking both can be used for Azure role assignments, or they may focus on the 'VM sign-in' aspect without considering the core requirement of managing role access for a changing contractor pool.

E

Candidates may confuse managed identities with security groups, thinking they can dynamically manage user access, or they may overcomplicate the solution by introducing an identity concept that is not designed for user role assignments.

363
MCQhard

A container group runs a one-time import job that writes data to an external system. If the job succeeds, the container must stop and stay stopped. If the job fails, it should automatically retry by restarting. Which restart policy should the administrator choose?

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

OnFailure matches a batch-style workload that should retry after an error but remain stopped after a successful run. It allows the container group to restart when the process exits unsuccessfully while avoiding unnecessary reruns after completion.

Why this answer

The OnFailure restart policy is correct because it instructs Azure Container Instances (ACI) to restart the container only when the process exits with a non-zero exit code, indicating failure. For a one-time import job that must stop permanently on success (exit code 0) and retry on failure, OnFailure matches this exact behavior without unnecessary restarts.

Exam trap

The trap here is that candidates often confuse 'OnFailure' with 'Always' for retry scenarios, not realizing that 'Always' restarts even after success, which would break the 'stop on success' requirement.

Why the other options are wrong

A

The 'Always' policy restarts the container regardless of exit code, so even after a successful job completion, the container would restart, preventing it from staying stopped as required.

B

The 'Never' restart policy means the container will never be restarted, even if the job fails. Since the requirement is to automatically retry on failure, 'Never' does not satisfy the retry condition.

D

The 'Manual' restart policy is not a valid option for Azure Container Instances; the available policies are Always, Never, and OnFailure. Therefore, it cannot be selected for any restart behavior.

When would these options actually be correct?

A

For a long-running service like a web server or a background worker that must be kept running continuously, such as a container hosting an API that should restart after any crash or stop to maintain availability.

B

If the question stated that the container should run exactly once and never be restarted under any circumstances (e.g., a data export that must not duplicate records), then 'Never' would be correct.

D

In a scenario where a container group runs a batch job that must be manually monitored and restarted by an administrator after failure, and the environment does not support automatic restart policies, a 'Manual' policy would be correct. For example, in a custom orchestration system where the container is expected to exit and be restarted only via external triggers.

Why candidates pick the wrong answer

A

Candidates may confuse a one-time job with a service that needs high availability, assuming that any stop is a failure and should be restarted, overlooking the requirement to stop on success.

B

Candidates might think 'Never' is appropriate because the container should stop after success, but they overlook the need for automatic retry on failure.

D

Candidates may mistakenly think 'Manual' is a valid Azure Container Instances restart policy, confusing it with other Azure services like Azure Container Apps or Docker Compose where manual restart is an option.

364
MCQmedium

You need to control inbound and outbound traffic to resources in a subnet by allowing or denying traffic based on IP address, port, and protocol. Which Azure feature should you use?

A.A network security group
B.A route table
C.A private DNS zone
D.Azure Advisor
AnswerA

NSGs are the Azure feature used to allow or deny traffic based on rule criteria.

Why this answer

A network security group (NSG) is the correct Azure feature because it contains security rules that allow or deny inbound and outbound traffic at the subnet or network interface level based on source/destination IP address, port, and protocol (TCP, UDP, or Any). This directly matches the requirement to control traffic by these three parameters.

Exam trap

The trap here is that candidates often confuse a route table (which controls traffic routing) with an NSG (which controls traffic filtering), especially since both are associated with subnets in the Azure portal.

Why the other options are wrong

B

A route table controls network traffic routing (next hop) between subnets and on-premises networks, not traffic filtering based on IP, port, and protocol. It does not allow or deny traffic; it directs packets.

C

A private DNS zone is used for custom domain name resolution within a virtual network, not for filtering traffic based on IP, port, or protocol.

D

Azure Advisor provides recommendations for best practices in cost, security, reliability, and performance, but it does not control traffic flow based on IP, port, or protocol.

When would these options actually be correct?

B

You need to control the path traffic takes from a subnet to another network, such as forcing all internet-bound traffic through a network virtual appliance. A route table with user-defined routes would be the correct answer.

C

You need to resolve a custom domain name (e.g., contoso.com) to a private IP address within your Azure virtual network, ensuring that only resources in the virtual network can resolve the name.

D

When the question asks for a service that provides personalized recommendations to optimize Azure resources for high availability, security, performance, or cost, Azure Advisor is the correct answer.

Why candidates pick the wrong answer

B

Candidates may confuse routing (path selection) with filtering (allow/deny), or think that controlling traffic flow includes both routing and security filtering.

C

Candidates may confuse DNS zones with network security because both involve controlling network behavior, but DNS zones handle name resolution, not traffic filtering.

D

Candidates may confuse Azure Advisor's security recommendations with actual security controls, thinking it can enforce traffic rules.

365
MCQmedium

Based on the exhibit, the alert rule is firing, but the operations team is not receiving any notification. What should you change to make the alert send an email when the condition is met?

A.Increase the evaluation frequency to 15 minutes so Azure sends a summary notification.
B.Attach an action group that includes the required email recipient.
C.Create a diagnostic setting on the virtual machine and send logs to a storage account.
D.Move the virtual machine into a different resource group so the alert can notify the team.
AnswerB

Azure Monitor alerts need an action group to deliver notifications or trigger automation. In this case the rule is already evaluating correctly, but no action is configured, so the alert has nowhere to send the notification. Attaching an action group with the operations email address fixes the issue without changing the threshold or scope.

Why this answer

An alert rule in Azure Monitor requires an action group to define the notification actions (e.g., email, SMS) when the alert fires. Without an action group attached to the alert rule, no notifications are sent, even if the condition is met. Option B correctly identifies that attaching an action group containing the required email recipient will enable email notifications.

Exam trap

The trap here is that candidates often assume increasing evaluation frequency or moving resources will fix notification delivery, but the core requirement is that an action group must be attached to the alert rule to define the notification channel.

Why the other options are wrong

A

Increasing evaluation frequency does not add email notification capability; the alert rule lacks an action group, which is required to send emails.

C

Creating a diagnostic setting on the virtual machine and sending logs to a storage account does not configure notifications; it only archives or streams logs. The alert rule already fires, but notifications require an action group with email recipients.

D

Moving the virtual machine to a different resource group does not affect alert notifications; action groups are independent of resource group membership and must be explicitly attached to the alert rule.

When would these options actually be correct?

A

If the question were 'The alert fires too slowly; what should you change to get faster notifications?', increasing evaluation frequency would be correct to reduce the time between condition checks.

C

This option would be correct if the question asked: 'You need to collect and store VM performance logs for compliance auditing. What should you do?' In that scenario, a diagnostic setting sending logs to a storage account is appropriate.

D

This option would be correct if the question were about resolving a resource conflict (e.g., a policy or role assignment preventing alert creation) or if the alert rule needed to be scoped to a specific resource group for organizational management.

Why candidates pick the wrong answer

A

Candidates may confuse evaluation frequency with notification delivery, thinking more frequent evaluations will trigger email sending, but email requires an action group.

C

Candidates may confuse diagnostic settings with alert notifications, thinking that sending logs to storage will somehow trigger an email, or they may believe that logging is a prerequisite for alerting.

D

Candidates may mistakenly believe that resource group membership controls alert delivery, or that moving resources can fix notification issues without understanding the role of action groups.

366
Multi-Selecteasy

A Python app running on an Azure VM must upload blobs to one container in a storage account. The app must not store a storage account key or SAS token on the VM. Which two actions should the administrator take? Select two.

Select 2 answers
A.Enable a system-assigned managed identity on the VM.
B.Assign the Storage Blob Data Contributor role to that managed identity at the container scope.
C.Store the storage account access key in an environment variable on the VM.
D.Generate a service SAS and copy it into the application configuration.
E.Assign the Contributor role on the resource group to the managed identity.
AnswersA, B

A system-assigned managed identity lets the VM request Azure access tokens without storing secrets on the server. The identity is automatically created and tied to that VM, which fits a simple single-VM app. This is the safest starting point when a workload must authenticate to Azure Storage without an account key or SAS token.

Why this answer

A system-assigned managed identity on the VM allows Azure AD authentication without storing any credentials on the VM. By assigning the Storage Blob Data Contributor role to that identity at the container scope, the app can use Azure AD tokens to authenticate and upload blobs, eliminating the need for a storage account key or SAS token.

Exam trap

The trap here is that candidates often confuse the Contributor role (which grants management-level access) with the Storage Blob Data Contributor role (which grants data-plane access), and may overlook that scoping the role to the container (rather than the storage account or resource group) is the most secure and correct approach.

Why the other options are wrong

C

The question explicitly requires that the app must not store a storage account key on the VM. Storing the key in an environment variable still places the key on the VM, violating the requirement.

D

The question explicitly states the app must not store a SAS token on the VM. Generating a service SAS and copying it into the application configuration violates this requirement.

E

The Contributor role at the resource group scope grants full management access to all resources in the group, but does not include the specific data permissions (e.g., Storage Blob Data Contributor) needed to upload blobs. Managed identities require a data role on the storage container or account to access blob data.

When would these options actually be correct?

C

If the question allowed storing a key on the VM (e.g., 'The app can securely store a key using environment variables') and did not require managed identity, then storing the access key in an environment variable would be a valid approach.

D

If the question allowed storing a SAS token and required fine-grained, time-limited access without using managed identities, generating a service SAS and embedding it in the app configuration would be correct.

E

If the question required the VM to manage the storage account itself (e.g., create/delete containers, update account settings) rather than access blob data, assigning the Contributor role on the resource group would be correct. For example, a management app that needs to reconfigure storage accounts.

Why candidates pick the wrong answer

C

Candidates may think environment variables are a secure way to store secrets, overlooking the explicit prohibition against storing any key on the VM. They might also be unfamiliar with managed identity alternatives.

D

Candidates may think a SAS token is a secure way to grant access without a storage account key, overlooking the requirement that no token be stored on the VM.

E

Candidates may confuse the Contributor role (which grants management access) with data access roles, assuming any role assignment on the resource group will allow blob operations. They might also think a broad role is sufficient without understanding Azure RBAC's separation between management and data planes.

367
Matchinghard

Match each Recovery Services vault setting or feature to the behavior an administrator should expect after changing it.

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

Concepts
Matches

Keeps deleted backup items recoverable for a limited retention period.

Stops future backups but preserves existing recovery points in the vault.

Stops protection and removes stored recovery points after the deletion process completes.

Allows restore operations from the secondary region when the vault uses geo-redundant storage and the feature is enabled.

Why these pairings

Changing replication to GRS replicates all existing recovery points. Soft delete retains deleted data for 14 days. Changing storage replication after backup requires reconfiguration.

Custom managed identity grants specific resource access. Diagnostics settings send logs to Log Analytics. Cross Region Restore enables restore in paired region with GRS.

368
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

D

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

When would these options actually be correct?

A

An administrator needs to apply consistent policies (e.g., allowed regions) and access control across multiple subscriptions, and wants to organize subscriptions into a hierarchy for governance. Management groups would be the correct feature to add.

D

A question asks: 'Which Azure feature should an administrator use to ensure that only authorized users can manage a critical resource, even if it is moved to another resource group?' In that scenario, role assignments would be correct because they define permissions that can be inherited or reassigned after a move.

Why candidates pick the wrong answer

A

Candidates may confuse management groups with a way to track ownership or cost, because they are used for organizing resources and applying policies at scale.

D

Candidates may confuse role assignments with tracking ownership, as roles often define who can manage resources, but they do not carry metadata like cost center or owner tags across moves.

369
MCQmedium

A company has frontend and backend VMs in the same subnet. Security rules must allow the frontend tier to reach only the backend tier on TCP 443, without assigning rules to individual VM IP addresses. What should the administrator use in the NSG rule?

A.A user-defined route that sends frontend traffic to the backend subnet.
B.A network security group rule that references both subnets by address prefix only.
C.Application security groups for the frontend and backend VMs.
D.A VNet peering connection between the two tiers.
AnswerC

Application security groups (ASGs) are the correct mechanism because they let you group VM NICs by workload role (frontend or backend) and then write NSG rules that use those groups as source and destination. This works even when both tiers share the same subnet because the grouping is by application attribute, not IP topology. ASG-based rules also survive IP address changes and simplify maintenance by centralizing the role definition outside the NSG.

Why this answer

Application Security Groups (ASGs) allow you to group VMs logically by their application tier (e.g., frontend, backend) without relying on individual IP addresses. You can then create an NSG rule that uses the frontend ASG as the source and the backend ASG as the destination, restricting traffic to TCP 443. This meets the requirement of not assigning rules to individual VM IPs while ensuring only frontend VMs can reach backend VMs within the same subnet.

Exam trap

The trap here is that candidates assume subnet-based NSG rules are sufficient for tier isolation, but since both tiers share the same subnet, a subnet-to-subnet rule would allow all VMs in that subnet to communicate, failing the requirement to restrict traffic to only frontend-to-backend on TCP 443.

Why the other options are wrong

A

User-defined routes control traffic routing, not security filtering. The question requires allowing traffic on TCP 443, which is a security rule function, not a routing decision.

B

Option B is wrong because using subnet address prefixes in an NSG rule would allow traffic between any VMs in the two subnets, not just between the specific frontend and backend tiers. The requirement is to restrict traffic to only the frontend and backend VMs, not all VMs in the subnets.

D

VNet peering connects entire virtual networks, not individual tiers within the same subnet. The question specifies frontend and backend VMs are in the same subnet, so peering is irrelevant and cannot restrict traffic between tiers.

When would these options actually be correct?

A

An administrator needs to force traffic from the frontend subnet to the backend subnet through a network virtual appliance (NVA) for inspection. A UDR with the next hop set to the NVA IP would be correct.

B

This option would be correct if the question required allowing traffic between all VMs in two subnets (e.g., allow all traffic from subnet A to subnet B on TCP 443) without needing to specify individual VM IPs. For example: 'Allow all VMs in the frontend subnet to communicate with all VMs in the backend subnet on TCP 443.'

D

A question where two VNets need to communicate, such as connecting a hub VNet to a spoke VNet, and the goal is to enable cross-VNet traffic without using a VPN gateway or ExpressRoute.

Why candidates pick the wrong answer

A

Candidates may confuse routing (UDR) with security filtering (NSG), thinking that directing traffic to the backend subnet inherently permits it, overlooking that NSGs still block by default.

B

Candidates may think that referencing subnets by address prefix is sufficient to control traffic between tiers, overlooking that it applies to all VMs in the subnet, not just the intended application tiers.

D

Candidates may confuse VNet peering with a method to control traffic between tiers, not realizing it operates at the VNet level and cannot filter traffic within the same subnet.

370
Multi-Selecteasy

Which two statements about application security groups and service tags are correct? Select two.

Select 2 answers
A.An application security group lets you reference a set of virtual machines in NSG rules.
B.A service tag is a Microsoft-managed label for a service or address range.
C.Application security groups are used to assign Azure roles.
D.Service tags are custom labels you create for your own subscriptions.
E.Service tags create a private IP address for a service.
AnswersA, B

An application security group (ASG) is a logical grouping of virtual machine network interfaces, often based on workload such as web servers or database servers. When you write an NSG rule, you can use the ASG name as the source or destination instead of individual IP addresses or CIDR blocks. This simplifies rule management because adding or removing VMs from the ASG automatically updates which interfaces match the rule, without requiring edits to the NSG itself. ASGs are supported only for NICs in the same virtual network as the NSG that references them.

Why this answer

An application security group (ASG) allows you to group virtual machines logically, and then reference that group as a source or destination in network security group (NSG) rules. This simplifies rule management by decoupling the rule from individual VM IP addresses or NICs, enabling dynamic membership based on application tiers.

Exam trap

The trap here is confusing application security groups (which handle network traffic filtering) with Azure RBAC roles (which handle access control), and assuming service tags are user-defined labels rather than Microsoft-managed, dynamic IP prefix groups.

Why the other options are wrong

C

Application security groups are used to group virtual machines for network security rule application, not for Azure role assignment. Azure roles are assigned via Azure RBAC, not ASGs.

D

Service tags are Microsoft-managed labels for Azure services, not custom labels created by users for their own subscriptions.

E

Service tags do not create private IP addresses; they represent a group of IP address prefixes for a given Azure service, which Microsoft manages and updates automatically.

When would these options actually be correct?

C

If the question were about a feature that groups resources for role assignment, such as 'management groups' or 'Azure AD groups', then a similar statement about grouping for role assignment would be correct. For example: 'Which feature allows you to assign Azure roles to a set of users?'

D

If the question asked 'Which statement about Azure tags is correct?' and an option said 'Tags are custom labels you create for your own subscriptions,' that would be correct, as resource tags are user-defined metadata.

E

If the question asked 'Which feature provides a static public IP address for an Azure service?' then 'Service tags create a private IP address for a service' would be incorrect, but a similar wrong option might be 'Azure Front Door creates a private IP address for a service'—however, no scenario makes this statement correct. A correct scenario would be: 'Which statement about service endpoints is true?' where 'Service endpoints create a private IP address for a service' is still wrong. This option is never correct.

Why candidates pick the wrong answer

C

Candidates may confuse the concept of grouping resources for security (ASGs) with grouping for access control (RBAC), as both involve grouping and security.

D

Candidates may confuse service tags with resource tags, both of which are labels, but service tags are predefined by Microsoft while resource tags are user-defined.

E

Candidates may confuse service tags with service endpoints or private endpoints, which do assign private IP addresses to services, leading them to incorrectly attribute this capability to service tags.

371
MCQmedium

Based on the exhibit, the team wants to validate that a protected Azure VM can be recovered without affecting production. Which restore approach best meets the requirement?

A.Use Replace existing VM so the test uses the production name and disks.
B.Restore the VM to a separate resource group or test environment from the latest recovery point.
C.Export a snapshot and assume that proves the VM can boot successfully.
D.Enable Site Recovery failover, because backup restore and failover are identical.
AnswerB

Restoring the VM to a separate resource group or isolated test environment from the latest recovery point creates a fully independent copy of the VM, including its managed disks, network interfaces, and boot state, without any dependency on the production resource locks or network conflicts. This is the approved method for backup validation because it exercises the entire restore pipeline—reading the Recovery Services vault data, reconstructing the VM ARM template, and provisioning new resources—while leaving the original VM untouched. The team can then perform boot tests, application checks, and connectivity verifications on this restored instance, and tear it down without risk to production.

Why this answer

Restoring the VM to a separate resource group or test environment from the latest recovery point creates an isolated copy of the VM that does not interact with production resources. This approach validates recoverability without risking production name conflicts, IP address overlaps, or accidental data modification. Azure Backup's restore-to-new-location option explicitly supports this isolation by allowing you to choose a different resource group, virtual network, and storage account.

Exam trap

The trap here is that candidates confuse 'Replace existing VM' with a non-disruptive test, not realizing that this option directly modifies the production VM's disks and metadata, which would cause downtime and data loss if the test fails.

Why the other options are wrong

A

Using 'Replace existing VM' would overwrite the production VM with the restored data, which directly impacts production and violates the requirement to avoid affecting production.

C

Exporting a snapshot only captures the disk state at a point in time, but does not validate that the VM can boot or that applications are functional; it lacks the restore and boot verification steps required to confirm recoverability without impacting production.

D

Site Recovery failover is designed for disaster recovery and would impact production by failing over the VM, whereas the requirement is to validate recovery without affecting production.

When would these options actually be correct?

A

This option would be correct if the requirement were to quickly restore a VM to its original state to fix a production issue, and the team explicitly wants to replace the existing VM with the backup data.

C

This option would be correct if the requirement were to create a portable disk copy for manual attachment to another VM for data extraction, without needing to validate full VM boot or application functionality.

D

If the requirement were to test disaster recovery failover in a non-production environment using an isolated test network, then enabling Site Recovery failover to a separate recovery site would be correct.

Why candidates pick the wrong answer

A

Candidates may think 'Replace existing VM' is a quick way to test recovery without realizing it actually modifies the production VM, confusing a restore operation with a non-disruptive validation test.

C

Candidates may mistakenly believe that a snapshot is sufficient to prove recoverability, overlooking the need for a full restore and boot test to validate the backup's integrity and the VM's operability.

D

Candidates may confuse backup restore with Site Recovery failover, thinking both are interchangeable for recovery validation, but failover is intended for actual disaster scenarios, not non-disruptive testing.

372
MCQmedium

An operations team maintains a hardened Windows Server image with application prerequisites and monitoring tools already installed. They want to deploy future VMs from the same versioned image in multiple subscriptions and promote a new build only after testing. Which Azure feature should they use?

A.A managed disk snapshot created from one of the VMs
B.An Azure Compute Gallery image version
C.A custom script extension installed during VM provisioning
D.An availability set containing the VMs
AnswerB

An Azure Compute Gallery image version is a managed, versioned artifact that packages a fully configured OS—including a hardened Windows Server baseline—into a reusable entity. It supports regional replication, controlled sharing via RBAC or community gallery, and distinct version numbers so VM deployments can be pinned to a known-good configuration. This is the proper mechanism to consistently deploy identical, hardened VMs across subscriptions or regions.

Why this answer

An Azure Compute Gallery (formerly Shared Image Gallery) allows you to store and manage multiple versions of a custom VM image, replicate them across regions, and share them across subscriptions. This enables the team to maintain a hardened, versioned image, deploy VMs from it in multiple subscriptions, and promote a new build only after testing by creating a new image version.

Exam trap

The trap here is that candidates often confuse a managed disk snapshot with a reusable image, but snapshots lack versioning, cross-subscription sharing, and the ability to promote builds after testing, which are core requirements for this scenario.

Why the other options are wrong

A

A managed disk snapshot captures a point-in-time copy of a single disk, but it does not support versioning, replication across subscriptions, or the structured testing and promotion workflow required for maintaining a hardened image pipeline.

C

A custom script extension runs scripts during VM provisioning but does not create a reusable, versioned image that can be deployed across multiple subscriptions and tested before promotion.

D

An availability set is a logical grouping of VMs to provide high availability during maintenance or failures, not a mechanism for deploying versioned images across multiple subscriptions or managing image lifecycle.

When would these options actually be correct?

A

A question asks: 'You need to create a backup of a VM's OS disk that can be used to restore the VM to the same state in the same region. Which Azure feature should you use?'

C

When the question asks for a method to install software or apply configurations automatically during initial VM deployment, such as joining a domain or installing an application, without needing a pre-built image.

D

When the question asks for a feature that ensures VMs are distributed across multiple fault domains and update domains to maintain service availability during planned or unplanned downtime, an availability set would be the correct answer.

Why candidates pick the wrong answer

A

Candidates may confuse snapshots with image management because both involve capturing VM state, but snapshots lack the versioning, sharing, and testing capabilities of an Azure Compute Gallery.

C

Candidates may confuse the need for automation during provisioning with the requirement for a reusable image, thinking that a script extension can replicate the same setup across VMs.

D

Candidates may confuse availability sets with image management because both involve VMs, or they might think that deploying VMs from the same image requires grouping them in an availability set.

373
MCQmedium

You need to be notified whenever the average CPU usage of VM-App01 exceeds 80 percent for 10 minutes. The solution must send an email to the operations team automatically. What should you configure?

A.Create an Azure Monitor metric alert and link it to an action group.
B.Create an Azure Advisor recommendation alert.
C.Create an activity log alert for the virtual machine.
D.Create a subscription budget alert.
AnswerA

An Azure Monitor metric alert continuously evaluates the VM's platform metric for Percentage CPU (a value emitted by Azure Monitor from the VM's hypervisor) against a defined threshold. When the average CPU usage exceeds the threshold, the alert fires and activates a linked action group, which delivers notifications via email, SMS, webhook, ITSM, or automation runbook. This is the intended mechanism for real-time, metric-based performance alerting on a VM.

Why this answer

Azure Monitor metric alerts can evaluate performance counters like CPU usage over a specified time window (e.g., 10 minutes) and trigger an action group when the threshold (80%) is exceeded. The action group can be configured with an email notification to the operations team, meeting the requirement automatically.

Exam trap

The trap here is confusing activity log alerts (which track management-plane operations) with metric alerts (which track performance data), leading candidates to choose Option C when they need real-time metric-based monitoring.

Why the other options are wrong

B

Azure Advisor recommendation alerts notify about recommendations for cost, security, reliability, and performance, not real-time metric thresholds like CPU usage. They cannot trigger on a specific metric condition such as CPU > 80% for 10 minutes.

C

Activity log alerts monitor changes to Azure resources (e.g., VM creation, deletion), not performance metrics like CPU usage. They cannot trigger based on metric thresholds.

D

Subscription budget alerts monitor cost spending against a budget, not performance metrics like CPU usage. They cannot trigger on average CPU exceeding a threshold.

When would these options actually be correct?

B

You need to be alerted when Azure Advisor identifies a recommendation for your VM, such as 'Right-size underutilized VMs' or 'Enable backup for VMs'. An Advisor recommendation alert would email the team when such a recommendation is generated.

C

You need to be notified when a virtual machine is deleted or stopped. An activity log alert for the 'Delete Virtual Machine' or 'Deallocate Virtual Machine' operation would be correct.

D

If the question asked for notification when the cost of VM-App01 exceeds a certain amount (e.g., $500) for a month, then a subscription budget alert would be correct.

Why candidates pick the wrong answer

B

Candidates may confuse 'recommendation' with 'alert' and think Advisor can monitor metrics, or they may recall that Advisor provides proactive insights and assume it can trigger on performance thresholds.

C

Candidates may confuse activity log alerts with metric alerts, thinking that any alert on a VM can monitor performance, or they may not understand the distinct purposes of different alert types.

D

Candidates may confuse budget alerts with performance alerts, thinking 'budget' relates to resource usage rather than financial cost.

374
MCQeasy

A stateless web application needs a group of identical Azure VMs that can automatically add more instances during the workday and remove them at night based on CPU usage. What should the administrator deploy?

A.An availability set with two VMs
B.A virtual machine scale set with autoscale rules
C.A single VM with a larger disk
D.An Azure Policy assignment to increase CPU capacity
AnswerB

A virtual machine scale set with autoscale rules is the correct choice because it is designed specifically to run a group of identical VMs that can dynamically scale out and in based on demand. Autoscale rules can monitor metrics such as CPU percentage, memory, or HTTP queue depth, and automatically add or remove VM instances without manual intervention. The stateless nature of the web app means each instance is interchangeable, which perfectly matches the VMSS model where all VMs use the same configuration template.

Why this answer

A virtual machine scale set (VMSS) with autoscale rules is the correct solution because it provides a group of identical, load-balanced VMs that can automatically scale out (add instances) during high CPU usage in the workday and scale in (remove instances) at night based on CPU thresholds. This matches the stateless, elastic requirement perfectly, as VMSS is designed for horizontal scaling of identical instances with autoscale policies tied to metrics like CPU percentage.

Exam trap

The trap here is that candidates often confuse availability sets (which provide fault tolerance but no scaling) with virtual machine scale sets (which provide both scaling and high availability), or they mistakenly think Azure Policy can dynamically adjust compute resources, when it only enforces configuration rules.

Why the other options are wrong

A

An availability set provides high availability for a fixed number of VMs but does not support automatic scaling based on CPU usage or schedule.

C

A single VM with a larger disk cannot automatically scale out or in based on CPU usage; it lacks the ability to add or remove instances dynamically, which is required for handling variable workload during the day and night.

D

Azure Policy is used to enforce compliance rules (e.g., tagging, allowed locations) and cannot dynamically add or remove VM instances based on CPU usage. It does not provide autoscaling capabilities.

When would these options actually be correct?

A

When the requirement is to ensure high availability for a set of VMs (e.g., at least two VMs in different fault/update domains) without any need for automatic scaling.

C

This option would be correct in a scenario where the requirement is to improve performance of a single VM by increasing its storage capacity or I/O throughput, such as for a database server that needs more disk space but does not require horizontal scaling.

D

An Azure Policy assignment would be correct if the question asked: 'An administrator needs to ensure that all VMs in a subscription are deployed with a specific SKU or have mandatory tags. What should they use?'

Why candidates pick the wrong answer

A

Candidates may confuse availability sets with scaling solutions, thinking that adding more VMs to an availability set can handle increased load, but it lacks autoscaling capability.

C

Candidates might think that increasing disk size or performance can handle higher CPU loads, confusing vertical scaling (upgrading a single VM) with horizontal scaling (adding more VMs).

D

Candidates may confuse Azure Policy with autoscaling because both involve 'rules' and 'automation', leading them to think Policy can adjust capacity when it only enforces configuration standards.

375
MCQmedium

A web tier and an app tier run on separate Azure VMs in the same region. Each VM's NIC is added to an application security group named WebASG or AppASG. The administrator must allow only the web tier to connect to the app tier on TCP 8443, and future VM scale-outs must be included automatically. Which NSG rule should be created?

A.An inbound rule that uses the current web VM's private IP as the source and the current app VM's private IP as the destination.
B.An inbound rule with source WebASG, destination AppASG, protocol TCP, and destination port 8443.
C.A route table that sends TCP 8443 traffic from the web subnet to the app subnet.
D.An Azure Firewall application rule collection that permits all traffic between the two subnets.
AnswerB

Using application security groups is the best fit because the rule follows the role of the VM, not a fixed IP address. When new web or app VMs are added to their respective ASGs, the NSG rule automatically covers them. This provides least-privilege connectivity between tiers while keeping the configuration maintainable during scale-out and redeployment events.

Why this answer

Application security groups (ASGs) allow you to configure network security as a natural extension of an application's structure, enabling you to group VMs by their roles (e.g., web tier, app tier) and define rules based on those groups. By creating an inbound NSG rule with source WebASG and destination AppASG on TCP port 8443, any VM added to WebASG can initiate traffic to any VM in AppASG, and future scale-outs are automatically included without manual IP updates. This approach is dynamic, scalable, and aligns with the requirement for automatic inclusion of new VMs.

Exam trap

The trap here is that candidates often confuse network security groups (NSGs) with route tables, thinking that routing can enforce access control, or they default to using static IP addresses in NSG rules, missing the dynamic, group-based capability of application security groups that automatically includes new VMs.

Why the other options are wrong

A

This rule uses static private IPs, so it fails to automatically include future VM scale-outs, violating the requirement for automatic inclusion.

C

Route tables control IP routing between subnets, not traffic filtering. They cannot enforce application-layer allow rules like TCP port 8443, and they don't integrate with application security groups for automatic scale-out inclusion.

D

Azure Firewall application rules are for outbound HTTP/S traffic from applications, not for inbound network filtering between VMs. This question requires an NSG rule, not a firewall rule, and the requirement is for inbound connectivity from web to app tier.

When would these options actually be correct?

A

If the question required restricting access to a single, specific VM (e.g., a management VM) and did not require automatic inclusion of new VMs, using static private IPs would be appropriate.

C

A question where the requirement is to force traffic from the web subnet to the app subnet through a specific next hop (e.g., a firewall or NVA) for inspection, and the goal is routing control, not access control based on ASGs.

D

This option would be correct if the question required filtering outbound HTTP/S traffic from the web tier to the internet, or if it required centralized logging and inspection of all traffic between subnets using Azure Firewall, and the question explicitly stated to use Azure Firewall instead of NSGs.

Why candidates pick the wrong answer

A

Candidates may think that specifying exact IPs provides precise control, overlooking the need for scalability and dynamic membership provided by application security groups.

C

Candidates may confuse routing with network security, thinking that directing traffic via a route table can restrict which ports are allowed, or they may assume route tables can filter traffic like a firewall rule.

D

Candidates may think Azure Firewall is a more comprehensive solution for controlling traffic between tiers, or they may confuse application rules with network rules, assuming it can filter inbound traffic between VMs.

Page 4

Page 5 of 14

Page 6