Courseiva

AZ-104 (AZ-104) — Questions 901975

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

Page 12

Page 13 of 14

Page 14
901
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

This option would be correct if the security policy allowed storing secrets on the VM and the application needed to authenticate using a service principal with a client secret, for example, when running on-premises or on a VM that cannot use managed identities.

C

If the question asked for a managed identity that can be pre-created and assigned to multiple VMs, or if the scenario required separating identity lifecycle from VM lifecycle (e.g., identity created by security team and later assigned to VMs), then creating a user-assigned managed identity would be correct.

D

If the question required secure SSH access to the Linux VM without passwords, and the security policy allowed certificate-based authentication, enabling SSH certificate authentication would be correct. For example: 'An administrator needs to connect to a Linux VM securely without using passwords. What should be configured?'

Why candidates pick the wrong answer

A

Candidates may think that storing a secret in a protected file is a secure workaround, not realizing that managed identity provides a more secure and policy-compliant solution without any stored credentials.

C

Candidates may confuse user-assigned managed identities as a way to avoid storing credentials, not realizing that the identity must be assigned to the VM to be usable. They might think creating the identity is sufficient without assignment.

D

Candidates may confuse SSH certificates with managed identities or think that any certificate can authenticate to Azure services, not realizing SSH certificates are only for VM access, not Azure AD authentication.

902
MCQeasy

Based on the exhibit, the business wants two Azure VMs to stay available if a host is patched or fails. A full datacenter outage is not part of the requirement. What should you use?

A.Deploy the VMs in an availability set.
B.Deploy the VMs in the same availability zone.
C.Use a virtual machine scale set with autoscale only.
D.Place both VMs on a dedicated host.
AnswerA

An availability set is designed to protect VMs from host-level issues such as planned maintenance and individual hardware failures. It spreads VMs across update and fault domains, which fits the requirement exactly when datacenter-level protection is not needed.

Why this answer

An availability set protects against failures within a single datacenter by distributing VMs across multiple fault domains (physical racks with separate power and network) and update domains (groups that are patched sequentially). This ensures that during host patching or a host failure, at least one VM remains available, meeting the requirement without needing to survive a full datacenter outage.

Exam trap

The trap here is that candidates often confuse availability zones (which protect against datacenter-level failures) with availability sets (which protect against host-level failures), leading them to choose zones even when the requirement explicitly excludes a full datacenter outage.

Why the other options are wrong

B

Availability zones protect against datacenter-level failures, not host-level failures. The requirement is only for host patching or failure, so an availability set (which protects against host failures within a single datacenter) is sufficient and more cost-effective.

C

A virtual machine scale set with autoscale only does not guarantee availability during host patching or failure; it scales out based on load, not to maintain a fixed number of VMs across fault domains. The requirement is for two VMs to stay available, not to scale dynamically.

D

Dedicated hosts isolate VMs from other tenants but do not protect against host patching or failure within the same host; a single dedicated host is a single point of failure, so both VMs would still be affected by a host issue.

When would these options actually be correct?

B

If the business requirement were to protect against a full datacenter outage (e.g., due to a natural disaster or power failure), deploying VMs in different availability zones would be correct. For example, a question stating 'The VMs must remain available if an entire datacenter fails' would make B the answer.

C

When the requirement is to automatically adjust the number of VM instances based on CPU or memory metrics to handle variable load, and availability during host maintenance is not a primary concern. For example, a web app that needs to scale out during peak hours and scale in during off-peak.

D

If the requirement included compliance or licensing needs that mandate physical isolation from other customers, and the business accepted the risk of a single host failure, then deploying VMs on a dedicated host would be correct.

Why candidates pick the wrong answer

B

Candidates may confuse availability zones with availability sets, thinking that zones provide higher availability for all scenarios, or they may over-engineer the solution by choosing a more expensive option that addresses a broader failure scope than required.

C

Candidates may think that a scale set inherently provides high availability because it can create multiple instances, but they overlook that autoscale alone does not distribute VMs across fault domains to protect against host failures.

D

Candidates may think dedicated hosts provide high availability by isolating VMs from other tenants, but they overlook that VMs on the same dedicated host share the same physical hardware and thus are not resilient to host-level failures.

903
MCQeasy

A VM named VM01 stopped sending Heartbeat records to Log Analytics 15 minutes ago. Which KQL query should you run to confirm the VM's recent heartbeat entries?

A.Heartbeat | where Computer == "VM01" and TimeGenerated > ago(15m)
B.AzureActivity | where ResourceProviderValue == "Microsoft.Compute/virtualMachines"
C.Heartbeat | summarize count() by Computer
D.Perf | where CounterName == "% Processor Time"
AnswerA

This query correctly queries the Heartbeat table, which is the dedicated Log Analytics table for agent health signals. The Heartbeat table is populated with a record from VM01 every minute by the Log Analytics agent, and the filter `TimeGenerated > ago(15m)` restricts results to records ingested in the last 15 minutes. If no rows are returned, it indicates that the agent on VM01 has stopped sending heartbeats, confirming the reported issue. The `Computer == "VM01"` filter ensures you isolate that specific virtual machine from other agents reporting to the same workspace.

Why this answer

The Heartbeat table in Log Analytics stores records sent by the Azure Monitor Agent (AMA) or Log Analytics agent every 5 minutes by default. Querying Heartbeat with a filter for Computer == 'VM01' and TimeGenerated > ago(15m) directly checks if any heartbeat records were generated in the last 15 minutes, confirming whether the VM is still reporting. This is the correct approach because Heartbeat is the dedicated table for agent health, and the time filter matches the 15-minute window specified in the question.

Exam trap

The trap here is that candidates confuse the Heartbeat table (agent health) with AzureActivity (resource operations) or Perf (performance metrics), assuming any log data can confirm agent connectivity, but only Heartbeat provides the direct, time-stamped signal of agent liveness.

Why the other options are wrong

B

AzureActivity logs Azure Resource Manager operations, not VM heartbeat data. To confirm recent heartbeat entries, you need to query the Heartbeat table with a time filter, not AzureActivity.

C

This query summarizes heartbeat counts per computer but does not filter by VM01 or time range, so it cannot confirm recent heartbeat entries for a specific VM.

D

The Perf table tracks performance counters like CPU usage, not heartbeat records. The question specifically asks for heartbeat entries, so querying '% Processor Time' cannot confirm heartbeat status.

When would these options actually be correct?

B

This query would be correct if the question asked: 'Which KQL query lists all recent Azure Resource Manager operations for a specific virtual machine?'

C

This query would be correct for a question asking: 'Which KQL query shows the total number of heartbeat records per computer over the entire retention period?'

D

This query would be correct if the question asked: 'Which KQL query identifies a VM with high CPU usage in the last 15 minutes?' or 'Which query checks recent CPU performance for VM01?'

Why candidates pick the wrong answer

B

Candidates may confuse AzureActivity with VM health monitoring, thinking that resource provider operations include heartbeat data, or they may not know that Heartbeat is a separate table in Log Analytics.

C

Candidates may think summarizing counts is a quick way to see activity, but they overlook the need to filter by computer and time to check recent heartbeats.

D

Candidates may confuse performance monitoring with health monitoring, assuming CPU metrics indicate VM responsiveness, or they might think any recent data from the VM suffices to confirm heartbeat activity.

904
MCQhard

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

If the requirement were to grant read access only to resources within a specific resource group (e.g., RG-Web) and not to other resource groups in the same subscription, then assigning the Reader role at the resource group scope would be correct.

C

If the question required granting read access to all current and future resources across multiple subscriptions (e.g., Sales and Research) under the Corp management group, then assigning the Reader role at the management group scope would be correct.

D

This would be correct if the requirement was to grant read-only access to only a few specific resources (e.g., two virtual machines) and explicitly deny access to all other resources in the subscription, while avoiding any inheritance from higher scopes.

Why candidates pick the wrong answer

A

Candidates may think that assigning a role at a resource group is sufficient because they assume all resources are in that group, or they misunderstand that inheritance from subscription scope is needed to cover future resources.

C

Candidates may think that a management group is the only way to cover multiple subscriptions, but they overlook that the requirement is to restrict access to only the Sales subscription, not all subscriptions under Corp.

D

Candidates may think that assigning roles at the resource level gives precise control and avoids unintended access, but they overlook the administrative overhead and the requirement for future resources.

905
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

If the requirement were to grant read-only access to specific resource groups only (e.g., for a project-specific auditor) and not to all current and future resources across all subscriptions, then assigning Reader at each resource group would be appropriate.

C

If the requirement was to grant read access to all resources within a single subscription (not across multiple subscriptions), assigning Reader at the subscription scope would be correct due to inheritance to all resource groups and resources under that subscription.

D

If the question required granting a custom role with specific permissions on a single resource (e.g., a virtual machine) and explicitly stated that no other resources should be accessible, then assigning the role directly to that resource would be correct to avoid broader inheritance.

Why candidates pick the wrong answer

A

Candidates may think that assigning roles at the resource group level is sufficient and more granular, overlooking the need for scalability and coverage of future resources as stated in the question.

C

Candidates may mistakenly believe that assigning a role at one subscription will inherit to other subscriptions under the same management group, but role assignments do not propagate across sibling subscriptions.

D

Candidates may mistakenly believe that resource-level assignments are always necessary to ensure precise control, or they may not fully understand that role assignments at higher scopes (management group) inherit to all child resources, including future ones.

906
MCQeasy

You already created a metric alert rule. You want the alert to send email and call a webhook when it fires. Which component should you link to the alert rule?

A.A diagnostic setting
B.A Log Analytics workspace
C.An action group
D.An Azure Policy initiative
AnswerC

An action group is a resource that defines the notification and automation recipients for an alert—such as email, SMS, phone call, webhook, Azure function, ITSM, and automation runbook. When the metric alert condition is triggered, Azure sends the configured notifications to this group. You attach one or more action groups to the alert rule so that alerts are actually delivered; this is exactly what makes action groups the correct notification target.

Why this answer

An action group is the correct component because it defines the notification and automation actions (such as sending an email or invoking a webhook) that are triggered when a metric alert rule fires. In Azure Monitor, alert rules are linked to action groups to execute these responses; without an action group, the alert can only log the event but cannot perform any external notification or automation.

Exam trap

The trap here is that candidates often confuse diagnostic settings (which export data) with action groups (which define alert responses), leading them to select A instead of C.

Why the other options are wrong

A

A diagnostic setting controls which Azure resource logs and metrics are sent to destinations like Log Analytics or storage, not the notification actions (email/webhook) triggered by an alert rule.

B

A Log Analytics workspace is used for collecting, analyzing, and querying log data, not for configuring notification actions like email or webhook when an alert fires. Alert rules use action groups to define notification actions.

D

An Azure Policy initiative is used to enforce compliance rules across resources, not to define notification actions for alerts. Alert rules require an action group to specify email, SMS, webhook, or other notifications.

When would these options actually be correct?

A

When the question asks: 'You need to route platform logs and metrics from an Azure resource to a Log Analytics workspace for analysis. What should you configure?'

B

A Log Analytics workspace would be the correct answer if the question asked: 'You want to collect and analyze performance and log data from multiple Azure resources. Which resource should you create?'

D

You need to enforce that all resources in a subscription have a specific tag for cost tracking. An Azure Policy initiative containing a policy that requires the tag would be the correct component to assign to the subscription.

Why candidates pick the wrong answer

A

Candidates may confuse diagnostic settings with alert actions because both involve 'settings' and can send data to external endpoints, but diagnostic settings are for data collection, not alert notifications.

B

Candidates may confuse the role of Log Analytics workspaces in storing alert data (e.g., log alerts) with the mechanism for sending notifications, assuming the workspace itself handles notifications.

D

Candidates may confuse policy initiatives with alert actions because both involve 'rules' and 'compliance', leading them to think a policy initiative can trigger notifications when a condition is violated.

907
Multi-Selectmedium

You manage an Azure virtual network with multiple subnets, including a subnet named 'AppSubnet' that hosts critical application servers. You need to monitor and log network traffic to and from AppSubnet for security analysis. The solution must capture all flow logs without impacting application performance. Which three of the following should you implement? (Choose three.)

Select 3 answers
.Enable Network Watcher flow logs for AppSubnet.
.Deploy a network virtual appliance (NVA) in a transit subnet and route all traffic through it.
.Store the flow logs in an Azure Storage account.
.Enable diagnostic settings on each virtual machine in AppSubnet to log network traffic.
.Configure a retention policy for the flow logs to manage storage costs.
.Install a third-party packet capture agent on each application server.

Why this answer

Network Watcher flow logs capture IP traffic flowing through a subnet, providing security analysis without impacting performance because they are processed by the Azure network fabric, not by the VMs. Storing logs in an Azure Storage account ensures durable, cost-effective retention. Configuring a retention policy is essential to manage storage costs and comply with data lifecycle requirements.

Exam trap

The trap here is that candidates often confuse VM-level diagnostic settings (which log guest OS metrics) with subnet-level flow logs, or they mistakenly believe that deploying an NVA is required for traffic monitoring, when in fact Azure's native Network Watcher flow logs provide a performance-neutral solution.

908
MCQmedium

A development team stores build artifacts in Azure Blob Storage. The artifacts must remain available if one datacenter in the Azure region fails, but the business does not want to pay for replication to another region. Which redundancy option should the administrator select?

A.LRS, because it keeps multiple copies in the same zone and is the cheapest option.
B.ZRS, because it distributes copies across availability zones within the same region.
C.GRS, because it keeps the workload available in two regions at all times.
D.RA-GRS, because it provides zone redundancy and read access in the secondary region.
AnswerB

ZRS is the right choice when you want resilience to a datacenter or zone failure within a region without paying for geo-replication. It stores copies across multiple availability zones, which improves availability while keeping the data in a single region. That matches the requirement to stay regional but survive a datacenter outage.

Why this answer

B is correct because Zone-Redundant Storage (ZRS) synchronously replicates data across three Azure availability zones within the same region, ensuring durability even if one entire datacenter (zone) fails. This meets the requirement of intra-region resilience without incurring the cost of geo-replication to another region.

Exam trap

The trap here is that candidates often confuse ZRS with LRS, thinking LRS provides zone-level redundancy because it uses three copies, but LRS copies are within a single datacenter, not across zones.

Why the other options are wrong

A

LRS only replicates data within a single datacenter, so if that datacenter fails, the artifacts become unavailable. The question requires availability if one datacenter fails, which ZRS provides by replicating across multiple availability zones within the region.

C

GRS replicates data to a secondary region, incurring cross-region costs, but the question explicitly states the business does not want to pay for replication to another region.

D

RA-GRS replicates to a paired secondary region (geo-redundancy), not within the same region, so it does not meet the requirement to avoid cross-region replication costs.

When would these options actually be correct?

A

LRS would be correct if the question specified that the data must be protected only against hardware failures within a single datacenter (e.g., disk or server failures) and cost minimization is the primary concern, with no requirement for datacenter-level failure protection.

C

Select GRS when the requirement is to protect against a region-wide outage by replicating data to a paired secondary region, and the business accepts the additional cost for cross-region disaster recovery.

D

A question requiring read access to data during a regional outage, with the business willing to pay for cross-region replication, would make RA-GRS correct. For example: 'Users need read access to blobs if the primary region fails; cost is not a concern.'

Why candidates pick the wrong answer

A

Candidates may choose LRS because it is the cheapest option and they incorrectly assume that 'one datacenter failure' refers to a single server or rack, not an entire datacenter, or they confuse LRS with zone-level redundancy.

C

Candidates may think GRS provides the highest availability and mistakenly choose it without reading the cost constraint, or they confuse 'region' with 'datacenter' and assume GRS is needed for a single datacenter failure.

D

Candidates may confuse 'zone' with 'region' and think RA-GRS provides zone redundancy, or they focus on the 'read access' feature without noting the cross-region replication requirement.

909
MCQhard

A legal department keeps evidence files in Azure Blob Storage. The files are accessed only a few times per year, but they must stay online and be immediately readable when requested. The team wants the lowest-cost online tier and does not want a rehydration step. Which tier should you choose?

A.Hot, because it prioritizes immediate access over storage cost.
B.Cool, because it is an online tier for infrequent access.
C.Cold, because it keeps data online and is intended for rarely accessed content.
D.Archive, because it has the lowest cost and can be opened instantly from the portal.
AnswerC

Cold is the right tier because the files must remain immediately readable and cannot be placed into an offline state. The scenario says the data is accessed only a few times per year, so a lower-cost online tier is appropriate. Archive would introduce rehydration delay, which the business explicitly does not want. Cold preserves online availability while reducing storage cost compared with hotter tiers.

Why this answer

The Cold tier is the correct choice because it is an online tier designed for rarely accessed data that must remain immediately readable without a rehydration step. It offers lower storage costs than Hot or Cool while still providing instant access, meeting the requirement for the lowest-cost online tier.

Exam trap

The trap here is that candidates confuse 'lowest cost' with the Archive tier, forgetting that Archive is offline and requires a rehydration step, which violates the requirement for immediate readability without a rehydration step.

Why the other options are wrong

A

Hot tier is designed for frequently accessed data and has the highest storage cost, which contradicts the requirement for the lowest-cost online tier for rarely accessed files.

B

Cool tier requires a minimum of 30 days storage and has a higher per-GB cost than Cold, but the question specifies 'lowest-cost online tier' and 'immediately readable' — Cool is not the cheapest online tier for rarely accessed data.

D

Archive tier requires a rehydration step (which can take hours) to make data readable, contradicting the requirement for immediate readability without a rehydration step.

When would these options actually be correct?

A

If the question specified that the data is accessed frequently (e.g., multiple times per day) and requires the lowest latency, Hot tier would be correct despite higher cost.

B

A company stores backup files that are accessed monthly and must be immediately available. They want to minimize cost while keeping data online. Cool tier would be correct because it balances cost and access frequency for data accessed every 30 days.

D

If the question specified that data can tolerate a rehydration delay of several hours and the lowest storage cost is the only priority, Archive would be correct. For example: 'A team needs to store backup tapes for regulatory compliance, accessed once a year, and can wait up to 24 hours for retrieval.'

Why candidates pick the wrong answer

A

Candidates may assume that 'immediate access' always requires Hot tier, overlooking that Cold tier also provides immediate online access at lower cost for infrequent access.

B

Candidates see 'infrequent access' and assume Cool is the best fit, but they overlook that Cold is also online and cheaper for data accessed only a few times per year.

D

Candidates see 'lowest cost' and assume Archive is always the best choice for rarely accessed data, overlooking the rehydration requirement and the need for immediate online access.

910
MCQhard

Your company deploys a network virtual appliance (NVA) in a hub subnet. All outbound internet traffic from Subnet-App in a spoke VNet must pass through the NVA for inspection. What should you configure on Subnet-App?

A.A private DNS zone
B.A user-defined route with a next hop of Virtual Appliance
C.A service endpoint for Microsoft.Storage
D.A NAT gateway on the NVA subnet only
AnswerB

A user-defined route (UDR) with a next hop type of 'Virtual Appliance' is the correct way to force subnet traffic through an NVA. When the route table is associated with the spoke subnet, any traffic destined for the internet (or another network) is matched by the route and forwarded to the private IP address of the NVA. This enables the NVA to inspect, filter, and forward traffic as required. Without this explicit route, Azure's default routing would send traffic directly to the internet, bypassing the appliance.

Why this answer

A user-defined route (UDR) with a next hop of Virtual Appliance forces all outbound traffic from Subnet-App to be forwarded to the NVA for inspection. This overrides Azure's default system route for 0.0.0.0/0, which normally sends internet-bound traffic directly to the internet. By specifying the NVA's private IP as the next hop, you ensure traffic is routed through the hub subnet for inspection before leaving the network.

Exam trap

The trap here is that candidates often confuse a NAT gateway (which translates source IPs) with a route-based forced tunneling solution, or they assume a service endpoint can redirect traffic through an NVA, when in fact service endpoints bypass forced tunneling by design.

Why the other options are wrong

A

A private DNS zone resolves custom domain names within a VNet, not route traffic. It cannot force outbound traffic through an NVA.

C

A service endpoint for Microsoft.Storage allows direct access to Azure Storage from a subnet without going through the internet, but it does not redirect or inspect outbound internet traffic. The requirement is to force all outbound traffic through the NVA, which requires a user-defined route, not a service endpoint.

D

A NAT gateway provides source network address translation for outbound traffic but does not force traffic through an NVA for inspection; it only changes the source IP and allows direct internet access.

When would these options actually be correct?

A

When you need to resolve a custom domain name (e.g., contoso.com) to a private IP address within a VNet, you would create a private DNS zone and link it to the VNet.

C

A service endpoint for Microsoft.Storage would be correct if the question asked: 'You need to ensure that traffic from Subnet-App to Azure Storage accounts uses the Azure backbone network instead of the public internet.' In that scenario, enabling a service endpoint on the subnet provides secure and optimized connectivity to Storage.

D

If the requirement is to provide outbound internet connectivity to a subnet with a single, predictable public IP address (e.g., for whitelisting), and no inspection is needed, you would configure a NAT gateway on the subnet or its route table.

Why candidates pick the wrong answer

A

Candidates may confuse DNS resolution with traffic routing, thinking a private DNS zone can redirect traffic to the NVA.

C

Candidates may confuse service endpoints with routing or think that service endpoints can be used to force traffic through an NVA, not understanding that service endpoints only affect traffic to specific Azure services and do not redirect general internet traffic.

D

Candidates may confuse NAT gateway with a means to route traffic through an NVA, not realizing that NAT gateway is for source translation and does not redirect traffic to a next hop.

911
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

B

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

C

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

D

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

When would these options actually be correct?

B

When the question asks for a way to allow a team to view all resources across a management group hierarchy without making changes, a Reader role assignment at the management group is the correct answer.

C

A CanNotDelete lock would be correct if the question asked to prevent accidental deletion of critical resources (e.g., a production subscription) while still allowing modifications and deployments.

D

If the question asked for enforcing a naming convention that includes region codes (e.g., 'east-rg') to ensure resources are deployed in specific regions, a tag requirement via resource group naming could be used as a governance tool.

Why candidates pick the wrong answer

B

Candidates may confuse role-based access control (RBAC) with policy enforcement, thinking that restricting permissions can block deployments, but RBAC controls who can act, not what can be deployed.

C

Candidates may confuse locks with policies, thinking that a lock can restrict where resources are deployed, or they may overestimate the scope of locks as a governance tool.

D

Candidates may confuse tag-based naming conventions with actual policy enforcement, thinking that requiring a region tag in the resource group name can prevent deployment in other regions.

912
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

If the question specified that subscriptions are created infrequently and each has unique governance requirements that cannot be standardized, then manual per-subscription assignment would be appropriate.

C

An administrator needs to prevent accidental deletion of a critical subscription that contains production resources. The correct answer would be to apply a CanNotDelete resource lock at the subscription level.

D

If the question required simplifying resource management within a single subscription by grouping related resources for cost tracking or role-based access control, then placing resources into one shared resource group per business unit would be correct.

Why candidates pick the wrong answer

A

Candidates may think manual assignment ensures precise control, overlooking the need for automation and inheritance at scale.

C

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

D

Candidates may think that grouping resources by business unit ensures consistent governance, but they overlook that resource groups do not enforce policies across subscriptions or provide automatic inheritance.

913
Multi-Selectmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

C

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

D

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

E

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

When would these options actually be correct?

C

If the question stated that the policy was assigned at the management group but should only apply to a specific resource group, reassigning at the resource group scope would correct the scope and ensure new resources are evaluated correctly.

D

In a scenario where the goal is to identify non-compliant resources without automatic remediation, and the administrator plans to manually or separately fix them, AuditIfNotExists would be the correct effect to use.

E

If the policy had the Audit effect and the administrator needed to quickly bring only recently created resources into compliance for a temporary audit, manually tagging the newest VMs could be a rapid workaround.

Why candidates pick the wrong answer

C

Candidates may think narrowing the scope forces immediate compliance, or confuse scope reassignment with remediation actions.

D

Candidates may think that auditing is a necessary first step before remediation, or confuse the Modify effect with AuditIfNotExists, not realizing that Modify already includes automatic remediation.

E

Candidates may think manual intervention is a quick fix to achieve compliance without understanding that the Modify effect automates remediation, making manual tagging redundant and incomplete.

914
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

An Azure RBAC role assignment would be correct if the question asked: 'A company wants to allow only a specific group of users to manage virtual machines in a subscription, while preventing others from doing so.'

C

A company wants to prevent accidental deletion of critical resources in a production subscription. Applying a CanNotDelete lock at the subscription scope ensures that no resources can be deleted until the lock is removed.

D

A company wants to automatically apply a 'CostCenter' tag to all resources created under a management group, ensuring consistent tagging for cost tracking across subscriptions.

Why candidates pick the wrong answer

A

Candidates may confuse RBAC with Azure Policy, thinking that role assignments can deny actions based on region, but RBAC focuses on who can perform actions, not on what conditions (like region) are allowed.

C

Candidates may confuse resource locks with policy enforcement, thinking that a lock can block all operations including creation, or they may assume that locks can restrict resource location.

D

Candidates may confuse tag inheritance with policy enforcement, thinking that inheriting a 'region' tag could restrict creation, but tags alone have no effect on resource provisioning.

915
Multi-Selecteasy

A managed data disk was accidentally deleted from a VM. A snapshot taken the day before is still available. Which two actions should the administrator perform to recover the data? Select two.

Select 2 answers
A.Create a new managed disk from the snapshot.
B.Attach the new managed disk to the VM.
C.Mount the snapshot directly as a data disk.
D.Redeploy the VM and reinstall the operating system.
E.Delete the snapshot after verifying it exists.
AnswersA, B

A snapshot is a read-only, point-in-time copy of the original disk. To use it as a live volume, you must first create a new managed disk from the snapshot (e.g., via Azure CLI 'az disk create --source snapshot'). This new managed disk becomes fully writable and attachable to the VM, allowing the data to be restored without rebuilding the OS.

Why this answer

A snapshot is a point-in-time, read-only copy of a managed disk. To recover the data, you must create a new managed disk from the snapshot using the `az disk create --source` command or the Azure portal. This new disk will contain the exact data as it existed when the snapshot was taken.

Exam trap

The trap here is that candidates confuse snapshots with disks, assuming a snapshot can be directly attached to a VM, when in fact Azure requires an explicit disk creation step from the snapshot before attachment.

Why the other options are wrong

C

Snapshots are not directly mountable as disks; they must first be used to create a managed disk before attaching to a VM.

D

Redeploying the VM and reinstalling the OS does not recover the deleted data disk; it only resets the VM's state and loses all data on the OS disk, leaving the deleted managed disk unrecovered.

E

Deleting the snapshot after verifying it exists would destroy the only recovery point, making data restoration impossible. The snapshot must be retained until the disk is successfully recreated and data is verified.

When would these options actually be correct?

C

If the question asked for a method to create a new VM from a snapshot, mounting the snapshot directly would be incorrect; however, in a scenario where you need to recover a single file from a snapshot without creating a disk, you could use the snapshot to create a disk and then mount it, but the snapshot itself cannot be mounted.

D

This option would be correct in a scenario where a VM is unresponsive due to a host failure or underlying hardware issue, and the question asks for the action to restore connectivity without affecting data disks.

E

In a scenario where the question asks for cleanup steps after successfully restoring a VM from a snapshot, and the snapshot is no longer needed for backup or compliance, deleting it would be correct to reduce storage costs.

Why candidates pick the wrong answer

C

Candidates may confuse snapshots with disk images or think that snapshots can be attached directly like a disk, overlooking the required intermediate step of disk creation.

D

Candidates may confuse redeployment as a recovery method for disk data, mistakenly thinking it restores the VM to a previous state including attached disks.

E

Candidates may think that verifying the snapshot's existence is a necessary step before deletion, and they might confuse this with proper snapshot lifecycle management, not realizing that the snapshot is still needed for recovery.

916
MCQmedium

Remote administrators work from home laptops and need secure access to Azure VMs in a virtual network. There is no branch office device to configure, and each administrator should connect individually using Azure-side VPN authentication. Which option should be implemented?

A.VNet peering between the administrators' home networks and Azure.
B.A point-to-site VPN connection to an Azure VPN gateway.
C.An ExpressRoute circuit from each administrator's home internet connection.
D.A service endpoint enabled on the VM subnet.
AnswerB

Point-to-site VPN is designed for individual client devices such as administrator laptops. It does not require a branch router or firewall, and it provides encrypted access into the Azure virtual network over the internet. This matches the need for per-user remote access to Azure VMs without standing up an on-premises VPN device.

Why this answer

A point-to-site (P2S) VPN connection allows individual remote clients to connect securely to an Azure virtual network using an Azure VPN gateway. This solution requires no on-premises device, supports per-user authentication (e.g., Azure AD, certificate, or RADIUS), and is ideal for ad-hoc remote access from home laptops.

Exam trap

The trap here is that candidates confuse point-to-site VPN with site-to-site VPN or VNet peering, assuming any 'connection' between networks works, but only point-to-site supports individual client authentication without a branch device.

Why the other options are wrong

A

VNet peering connects virtual networks within Azure, not remote user devices. It does not provide VPN connectivity for individual administrators from their home laptops.

C

ExpressRoute provides dedicated private connectivity from an on-premises location to Azure, but it requires a physical circuit and a router at the customer site, which is not available for individual home laptops. It does not support per-user VPN authentication from remote laptops.

D

Service endpoints provide secure connectivity from a virtual network to Azure PaaS services (e.g., Storage, SQL) over the Azure backbone, not remote user access to VMs. They do not support individual VPN connections from home laptops.

When would these options actually be correct?

A

A question requiring connectivity between two Azure virtual networks in different regions or subscriptions, where you need to route traffic privately and without a VPN gateway.

C

A company has a branch office with a router that can connect to an ExpressRoute provider, and they need high-bandwidth, low-latency, and reliable connectivity to Azure for multiple users in that office. The question would specify a physical location with networking equipment.

D

A question requiring secure, private access from an Azure VNet to an Azure Storage account, bypassing the public internet, with the constraint that the storage account uses a service endpoint and firewall rules to allow only traffic from that VNet.

Why candidates pick the wrong answer

A

Candidates may confuse VNet peering with VPN connectivity, thinking it can extend the network to remote users, or they may mistakenly believe peering supports client connections.

C

Candidates may think ExpressRoute offers the most secure and reliable connection, and they might overlook the requirement for individual remote access without on-premises hardware, assuming ExpressRoute can be used for any remote connectivity.

D

Candidates may confuse service endpoints with VPN or remote access solutions, thinking they provide general secure connectivity from external sources to Azure resources, when they actually only extend VNet identity to PaaS services.

917
MCQeasy

Before changing a managed data disk on a production VM, you want a point-in-time copy that you can keep and restore later if needed. What should you create?

A.A managed disk snapshot
B.An availability set
C.A load balancer backend pool
D.A resource lock
AnswerA

A snapshot captures a point-in-time copy of a managed disk. It is the right choice when you want a recoverable copy before making changes. You can create it for an OS disk or data disk and use it later to restore or create a new disk if the original change does not work as expected.

Why this answer

A managed disk snapshot captures a point-in-time, read-only copy of a managed disk. You can use it to restore the VM to that exact state by creating a new disk from the snapshot and attaching it to the VM. Snapshots are independent of the source disk's lifecycle, so you can keep them indefinitely for backup or recovery purposes.

Exam trap

The trap here is that candidates may confuse a resource lock (which protects against deletion but does not create a copy) with a backup mechanism, or think an availability set provides data redundancy, when in fact only a snapshot or backup service captures a point-in-time copy of the disk.

Why the other options are wrong

B

An availability set is a logical grouping of VMs to ensure high availability during planned or unplanned maintenance, not a mechanism for creating point-in-time copies of disks.

C

A load balancer backend pool is a configuration for distributing traffic across VMs, not a mechanism for creating point-in-time copies of a managed disk. It cannot be used to restore a disk to a previous state.

D

A resource lock prevents accidental deletion or modification of a resource, but it does not create a point-in-time copy of a managed disk. The question specifically requires a copy that can be restored later, which only a snapshot provides.

When would these options actually be correct?

B

When the question asks for a feature that ensures VMs are distributed across fault domains and update domains to maintain availability during Azure maintenance events, an availability set is the correct answer.

C

When the question asks: 'You need to ensure that incoming traffic to a set of VMs is distributed evenly. What should you configure?' In that context, a load balancer backend pool is the correct answer.

D

A resource lock would be correct if the question asked: 'You want to prevent accidental deletion of a critical VM. What should you create?' In that scenario, a resource lock (e.g., CanNotDelete) is the appropriate solution.

Why candidates pick the wrong answer

B

Candidates may confuse 'availability' with 'backup' or think that an availability set provides data redundancy or snapshots, misunderstanding its purpose as a high-availability construct.

C

Candidates may confuse the concept of 'backup' with 'load balancing' or think that a backend pool provides redundancy that could serve as a restore point, misunderstanding the purpose of load balancers.

D

Candidates may confuse 'protecting' a resource with 'backing it up.' A resource lock seems like a safety measure, but it does not create a recoverable copy, leading to this incorrect choice.

918
MCQmedium

You create a private endpoint for an Azure SQL Database server. Virtual machines in VNet-Prod must resolve the server name to the private IP address of the endpoint. What should you configure?

A.A private DNS zone linked to VNet-Prod
B.A user-defined route on the subnet
C.An additional public IP address
D.A Recovery Services vault
AnswerA

A private DNS zone (privatelink.database.windows.net) linked to VNet-Prod is essential because the SQL server's FQDN must resolve to the private endpoint's IP address within the VNet. When you create a private endpoint, Azure automatically adds an A record in this zone, but only if the zone is linked to the VNet where clients operate. Without that link, name resolution for the FQDN would continue using public DNS, bypassing the private IP and defeating the private endpoint's purpose. This zone and link are the standard mechanism for enabling private name resolution for Azure PaaS services.

Why this answer

A private endpoint uses a private IP address from your VNet, but DNS resolution must be configured to map the Azure SQL Database server name (e.g., `server.database.windows.net`) to that private IP. By creating a private DNS zone (privatelink.database.windows.net) and linking it to VNet-Prod, Azure automatically creates an A record for the private endpoint, ensuring VMs resolve the server name to the private IP instead of the public IP. This is the standard and required configuration for private endpoint name resolution.

Exam trap

The trap here is that candidates assume private endpoints automatically update DNS without additional configuration, but Azure requires a private DNS zone (or custom DNS server) to override public resolution—otherwise, the server name still resolves to the public IP.

Why the other options are wrong

B

A user-defined route (UDR) controls network traffic flow, not DNS resolution. The question requires name resolution to the private IP, which is handled by DNS, not routing.

C

An additional public IP address does not enable private name resolution; it would expose the SQL Database via a public endpoint, defeating the purpose of the private endpoint.

D

A Recovery Services vault is used for backup and disaster recovery (e.g., Azure Backup, Site Recovery), not for DNS resolution or private endpoint connectivity.

When would these options actually be correct?

B

A UDR would be correct if the question asked how to force traffic from VMs to the private endpoint through a firewall or network virtual appliance, or to override the default system route for a specific subnet.

C

When you need to provide outbound internet connectivity from a subnet that lacks a default route, such as for a NAT gateway or a load balancer's outbound rules.

D

You need to protect Azure SQL Database by enabling backup and restore operations, and you must store backup data in a Recovery Services vault with geo-redundancy.

Why candidates pick the wrong answer

B

Candidates may confuse routing with DNS resolution, thinking that directing traffic via a UDR will also resolve names, or they may assume that private endpoints require custom routes to function.

C

Candidates may think a public IP is needed for connectivity, misunderstanding that private endpoints use private IPs and require DNS resolution, not public IPs.

D

Candidates may confuse 'Recovery Services' with 'DNS resolution' or think it provides network recovery features, but it is unrelated to private endpoint name resolution.

919
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

B

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

C

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

D

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

When would these options actually be correct?

B

Azure RBAC would be the correct answer if the question described a deployment failure due to insufficient permissions, such as the user lacking 'Contributor' or 'Owner' role on the resource group or subscription, causing an authorization error.

C

Resource locks would be correct if the question described a scenario where a resource cannot be deleted or updated despite having correct permissions, and the issue is a lock preventing the operation (e.g., a Delete lock on a critical resource).

D

Azure Monitor would be correct if the question asked which service to use for collecting and analyzing metrics and logs from deployed resources, or for setting up alerts based on performance or availability criteria.

Why candidates pick the wrong answer

B

Candidates may confuse RBAC with policy because both involve governance, but RBAC controls who can do what, while Azure Policy controls what resources are allowed. The tag requirement seems like a permission issue to those unfamiliar with Azure Policy.

C

Candidates may confuse resource locks with policy enforcement because both can prevent changes, but locks are about protecting resources from accidental deletion/modification, not about compliance rules like tagging.

D

Candidates may confuse Azure Monitor's ability to detect missing tags via alerts or queries with the ability to enforce tag requirements, not realizing that enforcement requires Azure Policy.

920
Multi-Selectmedium

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

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

Why this answer

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

Exam trap

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

921
Multi-Selecteasy

A help desk analyst needs to find Azure VM heartbeat records in Log Analytics and limit results to the last 30 minutes. Which two KQL elements should be used? Select two.

Select 2 answers
A.where
B.ago()
C.summarize
D.join
E.extend
AnswersA, B

The `where` operator in Kusto Query Language (KQL) filters a tabular input based on a boolean predicate, returning only rows for which the expression evaluates to true. In a heartbeat query, this is the primary way to restrict results to a relevant time window or status, such as `where TimeGenerated > ago(30m)` or `where Computer == "webserver1"`. Unlike operators that transform or aggregate data, `where` preserves the original columns and row structure, making it the correct choice when you need to retrieve actual heartbeat record details rather than summaries.

Why this answer

The `where` operator filters the result set based on a specified condition, which is essential for limiting records to those with a timestamp within the last 30 minutes. The `ago()` function returns a datetime value representing the current time minus a given timespan, allowing you to create a dynamic filter like `where TimeGenerated > ago(30m)`. Together, they enable precise time-based filtering in Kusto Query Language (KQL) for Log Analytics.

Exam trap

Microsoft often tests the misconception that `summarize` or `extend` can filter data by time, but only `where` with a time-based condition like `ago()` actually removes rows from the result set.

Why the other options are wrong

C

The question asks for filtering heartbeat records to the last 30 minutes, which requires a time filter (where with ago()) and not aggregation. summarize is used for aggregating data (e.g., count, average), not for filtering time ranges.

D

The 'join' operator is used to combine rows from two tables based on a matching key, not to filter time-based data. It does not limit results to the last 30 minutes.

E

The 'extend' operator creates calculated columns but does not filter data by time. To limit results to the last 30 minutes, you need a time filter using 'where' with 'ago()'.

When would these options actually be correct?

C

A question that asks: 'Which KQL element should be used to count the number of heartbeat records per hour for the last 24 hours?' In that case, summarize with bin(TimeGenerated, 1h) would be correct to group and count records.

D

A question asks: 'You need to combine heartbeat records from two different Azure VMs into a single result set based on a common field like ResourceId.' In that case, 'join' would be correct.

E

When you need to add a new column to query results, such as calculating uptime from heartbeat timestamps, 'extend' is correct. For example: 'Heartbeat | extend Uptime = now() - TimeGenerated'.

Why candidates pick the wrong answer

C

Candidates may confuse filtering with aggregation, thinking that summarizing data by time is the same as limiting results to a time range, or they may misread the question as requiring a count of heartbeats.

D

Candidates may think 'join' is needed to merge heartbeat data from multiple sources, but the question only requires filtering a single table by time.

E

Candidates may think 'extend' can filter time by adding a time-related column, confusing column creation with row filtering.

922
MCQeasy

Based on the exhibit, what configuration should the administrator change so VMs in the spoke can resolve internal names from the hub?

A.Add a route table entry that points to the hub DNS server.
B.Set the spoke VNet custom DNS server to 10.50.0.4.
C.Enable a service endpoint for Microsoft.Storage on the spoke subnet.
D.Create a private endpoint for the spoke VM subnet.
AnswerB

The spoke is still using Azure-provided DNS, which cannot resolve the hub's internal records. Pointing the spoke VNet to the hub DNS server lets its VMs query the same internal namespace and resolve names correctly.

Why this answer

The hub VNet has a DNS server at 10.50.0.4 that is configured to resolve internal names. By setting the spoke VNet's custom DNS server to 10.50.0.4, VMs in the spoke will forward DNS queries to that server, enabling resolution of internal names from the hub. This overrides the default Azure-provided DNS and directs name resolution to the hub's DNS infrastructure.

Exam trap

The trap here is confusing network routing (route tables) with DNS resolution; candidates often think adding a route to the hub DNS server's IP will fix name resolution, but DNS queries are sent to the configured DNS server address, not routed based on destination IP.

Why the other options are wrong

A

Adding a route table entry directs traffic but does not configure the DNS server address that VMs use for name resolution. The spoke VMs need their DNS server setting changed to the hub's DNS IP (10.50.0.4) to resolve internal names.

C

Enabling a service endpoint for Microsoft.Storage on the spoke subnet does not affect DNS resolution for internal names; it only allows private access to Azure Storage from the spoke subnet over the Microsoft backbone network.

D

Creating a private endpoint for the spoke VM subnet does not enable DNS resolution of hub internal names; private endpoints are used for secure access to Azure PaaS services, not for DNS forwarding or resolution.

When would these options actually be correct?

A

If the question were about enabling network traffic to reach a custom DNS server located in the hub, and the spoke VMs already had the correct DNS server configured, then adding a route table entry to direct DNS query traffic to that server would be correct.

C

This option would be correct if the question asked how to securely access Azure Storage accounts from the spoke VNet without using public IP addresses, by routing traffic through the Azure backbone.

D

This option would be correct in a scenario where the question asks how to securely connect a spoke VM to an Azure Storage account using a private IP address, ensuring traffic does not traverse the public internet.

Why candidates pick the wrong answer

A

Candidates often confuse routing with DNS configuration, thinking that directing traffic to the DNS server via a route is sufficient, without realizing that VMs must also be configured to use that server for name resolution.

C

Candidates may confuse service endpoints with DNS resolution, thinking that enabling a service endpoint somehow enables name resolution for internal resources, or they may mistakenly believe that service endpoints provide DNS functionality.

D

Candidates may confuse private endpoints with DNS resolution capabilities, thinking that creating a private endpoint somehow enables name resolution across VNets, or they may overestimate the role of private endpoints in network connectivity.

923
Multi-Selecthard

A backend subnet contains 18 Linux VMs that must install updates from the internet. Security requires all outbound traffic to use one static public IP, and none of the VMs may have their own public IP addresses. Which two changes meet the requirement? Select two.

Select 2 answers
A.Associate a NAT gateway with the backend subnet and provide it with a public IP address or prefix.
B.Ensure the VMs do not have individual public IP addresses assigned.
C.Create a public load balancer and add the VMs to its backend pool.
D.Use a private endpoint for internet updates so outbound traffic remains private.
E.Attach a route table with 0.0.0.0/0 to Virtual network gateway.
AnswersA, B

A NAT gateway attached to the backend subnet translates outbound traffic from the Linux VMs to its configured public IP address or prefix. This gives all 18 VMs a stable, predictable source IP when contacting update repositories, and it scales automatically through SNAT without needing a public IP on each VM NIC or a separate egress appliance.

Why this answer

A NAT gateway provides outbound internet connectivity for VMs in a subnet while using a single static public IP address. By associating a NAT gateway with the backend subnet and assigning it a public IP, all outbound traffic from the 18 Linux VMs will source NAT to that static IP, meeting the security requirement without assigning public IPs to individual VMs.

Exam trap

The trap here is confusing a public load balancer (inbound) with a NAT gateway (outbound), or assuming a route table alone can provide internet access without a NAT device or Azure Firewall.

Why the other options are wrong

C

A public load balancer does not provide outbound connectivity for VMs without public IPs; it only distributes inbound traffic. The VMs would still lack a static public IP for outbound traffic.

D

A private endpoint is used for inbound access to Azure services over a private IP, not for outbound traffic to the internet. It cannot provide outbound connectivity with a static public IP.

E

A route table with 0.0.0.0/0 to a Virtual network gateway forces all outbound traffic through the gateway, but the gateway does not provide a single static public IP for outbound traffic; it typically uses the gateway's public IP, which may not be static and is not designed for outbound-only NAT.

When would these options actually be correct?

C

If the requirement were to distribute inbound internet traffic to the VMs (e.g., for a web application) while keeping them private, a public load balancer with backend pool members would be correct.

D

When the requirement is to securely access an Azure service (e.g., Storage, SQL Database) from a virtual network without using a public endpoint, ensuring traffic stays within the Microsoft backbone.

E

When the requirement is to force all outbound traffic from a subnet through a VPN or ExpressRoute gateway for inspection or tunneling to an on-premises network, and the VMs must not have direct internet access.

Why candidates pick the wrong answer

C

Candidates may confuse load balancers with NAT devices, thinking a public load balancer can also handle outbound traffic, or they may overlook that load balancers are primarily for inbound traffic.

D

Candidates may confuse private endpoints with NAT or VPN solutions, thinking 'private' implies outbound privacy, but private endpoints are for inbound private connectivity only.

E

Candidates may think that a route table with 0.0.0.0/0 to a gateway can centralize outbound traffic, similar to a NAT gateway, but they overlook that the gateway does not provide static outbound IP NAT and is intended for hybrid connectivity, not internet access.

924
Multi-Selecteasy

A customer wants official information about whether an Azure service issue is affecting their subscription or the wider Azure platform. Which two sources should they check? Select two.

Select 2 answers
A.Azure Advisor
B.Azure Service Health
C.Backup center
D.Azure Status
E.Resource Graph
AnswersB, D

Azure Service Health provides a personalized view of the health of Azure services and regions used by your subscriptions. It surfaces active incidents, upcoming planned maintenance, and health advisories that directly affect your resources, based on your selected subscriptions and regions. This is the official, tenant-aware channel for service-impacting events, making it the correct source for outage information tailored to your environment.

Why this answer

Azure Service Health (B) provides personalized alerts and guidance when Azure service issues affect your subscription, including planned maintenance and health advisories. Azure Status (D) offers a global view of the health of all Azure services across regions, which is the official source for widespread platform issues. Together, they cover both subscription-specific and platform-wide service incidents.

Exam trap

The trap here is that candidates often confuse Azure Service Health (subscription-specific) with Azure Status (global platform health) and may pick Azure Advisor or Backup center because they sound like they could provide health information, but they serve entirely different monitoring and maintenance functions.

Why the other options are wrong

A

Azure Advisor provides personalized recommendations for optimizing Azure resources, not real-time service health or outage information. It does not offer official status updates on service issues affecting subscriptions or the wider platform.

C

Backup center is used to manage and monitor backups, not to check for Azure service issues affecting a subscription or the wider platform.

E

Resource Graph is a query tool for exploring Azure resources, not for monitoring service health or outages. It does not provide official information about Azure service issues affecting a subscription or the platform.

When would these options actually be correct?

A

Azure Advisor would be correct in a question asking for a tool that provides best practices and recommendations to improve reliability, security, cost, and performance of Azure resources, such as 'Which Azure service provides personalized recommendations for resource optimization?'

C

A question asks: 'Which Azure service should you use to centrally manage and monitor backups across your environment?' Backup center would be the correct answer.

E

A question asking: 'Which tool allows you to query and explore Azure resources across subscriptions using KQL?' would make Resource Graph the correct answer.

Why candidates pick the wrong answer

A

Candidates may confuse Azure Advisor's recommendations with health monitoring, assuming it can detect and report service issues, but its focus is on optimization rather than incident status.

C

Candidates may confuse 'service health' with 'backup health' and think Backup center provides similar status information about Azure services.

E

Candidates may confuse Resource Graph with a monitoring or health tool because its name suggests it provides an overview of resources, but it lacks real-time service health data.

925
MCQhard

An Azure VM backup job starts failing immediately after protection is enabled. The error states that the VM agent is not ready. The VM was created from a custom image and no extensions have ever installed successfully. What should the administrator verify first?

A.That the Recovery Services vault is in the same resource group as the VM.
B.That the Azure VM Agent service is installed and running inside the guest OS.
C.That soft delete is enabled on the vault.
D.That the subscription has enough free Azure Backup storage capacity.
AnswerB

Azure VM Backup depends on the VM guest agent to coordinate extensions and backup integration. If the agent is missing, stopped, or unhealthy, backup jobs can fail immediately with a readiness message. Verifying the agent state is the correct first troubleshooting step before looking at policy, retention, or vault configuration.

Why this answer

The error 'VM agent not ready' indicates that the Azure Backup extension cannot communicate with the VM agent inside the guest OS. Since the VM was created from a custom image and no extensions have ever installed successfully, the most likely cause is that the Azure VM Agent service is not installed or not running. The agent is required for backup extensions to function, so verifying its status inside the guest OS is the first troubleshooting step.

Exam trap

The trap here is that candidates often assume the issue is a vault configuration or capacity problem, but the 'VM agent not ready' error specifically points to a missing or non-functional guest agent, which is a common oversight when using custom images.

Why the other options are wrong

A

The error specifically states the VM agent is not ready, which is a guest OS issue, not a resource group placement issue. The Recovery Services vault can be in a different resource group than the VM and still function correctly.

C

Soft delete is a data protection feature that prevents accidental deletion of backup data, but it does not affect the VM agent readiness or backup job initiation. The error specifically indicates the VM agent is not responding, which is unrelated to soft delete settings.

D

The error specifically states the VM agent is not ready, which is a guest OS issue, not a storage capacity issue. Backup storage capacity does not affect the VM agent's readiness.

When would these options actually be correct?

A

If the error message indicated that the backup job failed because the vault could not communicate with the VM due to network restrictions, and the question asked what to verify first, then checking that the vault is in the same resource group might be relevant if a resource group-level network security group is blocking traffic.

C

If the question described a scenario where backup data was being deleted accidentally or a user wanted to recover deleted backup items, verifying that soft delete is enabled would be the correct first step to ensure recoverability.

D

If the error message indicated insufficient storage quota or backup job failures due to capacity limits, then verifying free Azure Backup storage capacity would be the correct first step.

Why candidates pick the wrong answer

A

Candidates may mistakenly think that Azure resources must be in the same resource group to interact, confusing resource group scope with functional connectivity requirements.

C

Candidates may confuse soft delete with a prerequisite for backup success, thinking that enabling it is necessary for backup jobs to run, when in fact it only protects backup data after creation.

D

Candidates may confuse general backup failures with capacity issues, assuming that lack of storage space could prevent backup jobs from starting.

926
MCQhard

Your company wants to query performance and event data from multiple Azure virtual machines by using Kusto Query Language. The operations team also wants to centralize retention and analysis of this data. What should you deploy?

A.A Log Analytics workspace.
B.Azure Advisor.
C.Azure Network Watcher only.
D.A network security group.
AnswerA

A Log Analytics workspace is the correct destination for querying performance and event data because it acts as Azure Monitor's central repository for log data. It ingests activity logs, resource diagnostics, and VM guest metrics, retaining them for customizable retention periods and enabling rich KQL (Kusto Query Language) queries across all collected signals for troubleshooting and analysis.

Why this answer

A Log Analytics workspace is the correct choice because it is the central repository in Azure Monitor for collecting telemetry and log data from Azure virtual machines. It supports Kusto Query Language (KQL) for querying performance and event data, and it provides centralized retention, analysis, and alerting capabilities, meeting both requirements.

Exam trap

The trap here is that candidates often confuse Azure Advisor or Network Watcher as monitoring tools, but neither provides the centralized log storage and KQL querying required for VM performance and event data analysis.

Why the other options are wrong

B

Azure Advisor provides personalized recommendations for best practices in Azure, but it does not collect, store, or allow querying of performance and event data from VMs using KQL.

C

Azure Network Watcher provides network monitoring and diagnostics, but it does not centralize querying of performance and event data from multiple VMs using Kusto Query Language; that requires a Log Analytics workspace.

D

A network security group (NSG) filters network traffic to and from Azure resources; it does not collect, retain, or analyze performance and event data using Kusto Query Language.

When would these options actually be correct?

B

An exam question asking: 'Which Azure service provides recommendations to improve the reliability, security, and performance of your Azure resources?' would have Azure Advisor as the correct answer.

C

If the question asked for a tool to monitor network traffic, diagnose connectivity issues, or capture network packets across Azure VMs, Azure Network Watcher would be the correct answer.

D

You need to restrict inbound and outbound network traffic to a subnet or network interface in Azure. Deploying a network security group and associating it with the subnet or NIC would be the correct answer.

Why candidates pick the wrong answer

B

Candidates may confuse Advisor's monitoring and recommendation capabilities with the data collection and analysis features of Log Analytics, assuming Advisor can also query performance data.

C

Candidates may confuse Network Watcher's monitoring capabilities with the broader data analysis and querying features of Log Analytics, assuming network monitoring includes performance and event data analysis.

D

Candidates may confuse NSG flow logs (which can be sent to Log Analytics) with the NSG itself, or mistakenly think NSGs provide centralized data analysis capabilities.

927
Multi-Selecthard

A reporting server must be resized from 4 vCPU to 8 vCPU for a four-hour batch window. The VM name, NIC, private IP, and attached managed disks must stay the same, and the team accepts a brief outage during the change. Which two actions should you choose? Select two.

Select 2 answers
A.Deallocate the VM before changing its size.
B.Resize the VM to a larger supported size.
C.Delete the VM and recreate it with a new size.
D.Generalize the VM first to preserve the existing configuration.
E.Take a snapshot of the OS disk instead of resizing.
AnswersA, B

Deallocating the VM releases the underlying compute host while preserving the managed OS and data disks, the NIC, and the VM's resource ID. This state allows Azure to reallocate the VM to a different cluster that has capacity for an 8-vCPU SKU, which would otherwise be impossible if the current host does not support the larger size. It also halts compute billing during the operation, though disk storage charges continue, making it a standard prerequisite for most size changes.

Why this answer

Deallocating the VM (stopping it in the Azure portal) releases the underlying hardware reservation, which is required before changing the VM size to a different SKU. This ensures the VM can be resized to a supported size without conflicts, and the brief outage is acceptable as stated in the scenario.

Exam trap

The trap here is that candidates may think resizing a VM can be done while it is running (hot resize) for all sizes, but Azure only supports hot resize for certain VM series; for most size changes, deallocation is required, and the question explicitly states a brief outage is acceptable, making deallocation the correct approach.

Why the other options are wrong

C

Deleting and recreating the VM would change the VM name, NIC, private IP, and attached managed disks, which must remain the same per the question constraints.

D

Generalizing a VM prepares it for creating reusable images, but it is unnecessary and disruptive for a simple resize operation. The question requires preserving the VM name, NIC, private IP, and disks, which are all retained by deallocating and resizing without generalization.

E

Taking a snapshot of the OS disk does not change the VM size; it only captures a point-in-time backup. The requirement is to resize the VM, not to back up the disk.

When would these options actually be correct?

C

If the question required changing the VM to a different size not supported by the current VM series, or if the VM needed to be moved to a different region or resource group while preserving the configuration, deleting and recreating might be necessary.

D

If the question asked to create multiple identical VMs from an existing VM for scaling out, or to migrate a VM to a different region while preserving its configuration, then generalizing the VM (using sysprep) would be the correct first step before capturing an image.

E

When the question asks to preserve the VM configuration and data before performing a risky operation (e.g., migrating to a different region or changing disk type), and the VM can be recreated from the snapshot with the same settings.

Why candidates pick the wrong answer

C

Candidates may think that deleting and recreating is the only way to change VM size, not realizing that resizing an existing VM is possible after deallocation.

D

Candidates may confuse the process of resizing with creating a new VM from an image, thinking that generalization is needed to 'preserve configuration' during any size change, or they may overcomplicate the simple resize operation by adding unnecessary steps.

E

Candidates may think a snapshot is necessary to preserve the disk configuration during resizing, but resizing does not affect disks, so no backup is needed.

928
MCQhard

A legacy application still authenticates to Azure Blob Storage by using the account key. Security now requires preventing any new requests that use shared key authorization, while leaving the storage account itself and Microsoft Entra-based access unchanged. Which setting should the administrator enable?

A.Rotate the storage account keys every 24 hours
B.Disable shared key access on the storage account
C.Require secure transfer for the storage account
D.Create a private endpoint for the storage account
AnswerB

Disabling shared key access sets the storage account's AllowSharedKeyAccess property to false, causing the Azure Storage resource provider to reject any request authenticated with the account access keys. This forces all requests to use identity-based authentication, such as Azure AD credentials, managed identities, or service principals. It is the only option that actually enforces a change in authentication method at the authorization level, directly preventing the legacy app from using its stored account key.

Why this answer

Disabling shared key access on the storage account enforces that all incoming requests must use Microsoft Entra ID (formerly Azure AD) authorization instead of the account key. This directly meets the security requirement to block new requests using shared key authorization while leaving the storage account itself and Entra-based access unchanged. The setting is available under the storage account's Configuration blade as 'Allow storage account key access'.

Exam trap

The trap here is that candidates often confuse disabling shared key access with rotating keys or enabling secure transfer, not realizing that only disabling shared key access actually blocks the authorization method itself, while the other options address key freshness or transport encryption, not authorization.

Why the other options are wrong

A

Rotating keys every 24 hours does not prevent new requests using shared key authorization; it only changes the key periodically, allowing continued use of shared key access.

C

Requiring secure transfer enforces HTTPS for all requests but does not block shared key authorization; it only ensures data is encrypted in transit, not that shared key authentication is disabled.

D

Creating a private endpoint restricts network access to the storage account via a private IP, but it does not prevent requests that use shared key authorization. The requirement is to block shared key access, not network-level access.

When would these options actually be correct?

A

This would be correct in a scenario where the requirement is to periodically update the account key to minimize the risk of key compromise, without disabling shared key access entirely.

C

This option would be correct in a scenario where the question asks: 'An organization needs to ensure that all data transferred to Azure Storage is encrypted over the network. Which setting should be enabled?'

D

This option would be correct in a scenario where the requirement is to ensure that all traffic to the storage account goes through a private network, eliminating exposure to the public internet, while still allowing authorized access via Microsoft Entra ID or shared keys.

Why candidates pick the wrong answer

A

Candidates may think frequent key rotation effectively blocks unauthorized access, but it does not stop legitimate applications from using shared key authorization.

C

Candidates may confuse 'secure transfer' with disabling shared key access, thinking that enforcing HTTPS somehow prevents shared key usage, or they may misread the requirement as a security encryption need rather than an authentication restriction.

D

Candidates may confuse network security controls with authentication controls, thinking that a private endpoint can block shared key access because it limits network connectivity, but shared key authorization is an authentication method that can still be used over private endpoints.

929
Multi-Selecthard

A stateless web service runs on identical VMs and must keep serving traffic if Microsoft takes one datacenter out of service in the region. The load must also scale out automatically during peak hours, and instances should be spread across independent zone boundaries. Which two configurations should the administrator use? Select two.

Select 2 answers
A.Virtual machine scale set
B.Availability zones
C.Availability set
D.Proximity placement group
E.Dedicated host
AnswersA, B

A virtual machine scale set is correct because it is designed to run a stateless web service on a fleet of identical VM instances. It automatically scales out and in based on CPU, memory, or custom metrics, distributes traffic via a load balancer, and replaces unhealthy instances using health probes, making it the optimal compute model for this workload.

Why this answer

A is correct because Virtual Machine Scale Sets (VMSS) provide built-in autoscaling capabilities that automatically adjust the number of VM instances based on demand (e.g., CPU or memory metrics), ensuring the web service scales out during peak hours. Additionally, VMSS supports spreading instances across availability zones, which protects against a single datacenter failure by distributing VMs across independent zone boundaries within a region.

Exam trap

The trap here is that candidates often confuse Availability Sets (which protect against rack-level failures within one datacenter) with Availability Zones (which protect against full datacenter outages), leading them to select Availability Set instead of Availability Zones for cross-datacenter resilience.

Why the other options are wrong

C

An availability set only protects against rack-level failures within a single datacenter, not against an entire datacenter outage. It also does not support automatic scaling.

D

Proximity placement groups reduce network latency by keeping VMs close together, but they do not provide fault isolation across independent zone boundaries or automatic scaling, which are required for high availability and auto-scaling across datacenters.

E

Dedicated hosts provide physical server isolation for compliance or licensing, but do not offer automatic scaling or distribution across independent zone boundaries, which are required for high availability and auto-scaling in this scenario.

When would these options actually be correct?

C

For a multi-tier application where VMs must be placed in separate fault domains and update domains within a single datacenter to protect against hardware failures and planned maintenance, while not requiring cross-datacenter redundancy or auto-scaling.

D

A question requiring low-latency communication between VMs in a tightly coupled application (e.g., HPC or latency-sensitive workloads) where all VMs must be in the same datacenter to minimize network latency, and fault tolerance is not the primary concern.

E

A question requiring compliance with licensing agreements that tie to specific physical servers, or needing to guarantee VM placement on dedicated hardware for regulatory reasons, would make dedicated hosts the correct answer.

Why candidates pick the wrong answer

C

Candidates may confuse availability sets with availability zones, thinking both provide datacenter-level redundancy, or they may overlook the requirement for automatic scaling and focus only on high availability.

D

Candidates may confuse proximity placement groups with availability zones, thinking that grouping VMs close together ensures high availability, but they fail to recognize that proximity groups actually increase risk by placing VMs in the same failure domain.

E

Candidates may think dedicated hosts improve reliability or availability, but they actually focus on hardware isolation, not fault tolerance across datacenters or auto-scaling.

930
Multi-Selecthard

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

C

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

D

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

E

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

When would these options actually be correct?

C

In a scenario where each application requires strict administrative isolation, separate billing, and independent policy enforcement, and the number of applications is small (e.g., under 10), creating a dedicated subscription per application could be correct.

D

If the question asked for a simple way to identify resources in a small, single-subscription environment where naming conventions are strictly enforced and no automated cost aggregation is required, using resource names might be acceptable.

E

If the requirement was to apply common policies (e.g., allowed regions) across multiple subscriptions for all applications, and cost reporting was handled separately via tags, then a single management group would be correct.

Why candidates pick the wrong answer

C

Candidates may think that a separate subscription provides the ultimate isolation and simplifies chargeback, not realizing that resource groups and tags achieve the same goals more efficiently and without hitting subscription limits.

D

Candidates may think resource names are sufficient because they are familiar with naming conventions and underestimate the need for scalable, queryable metadata like tags for cross-subscription reporting.

E

Candidates may confuse management groups with resource groups, thinking they can serve as access boundaries and cost centers, but management groups lack built-in cost aggregation and RBAC scoping for individual applications.

931
MCQhard

A virtual machine scale set must increase instance count when average CPU exceeds 75 percent and decrease when it stays below 30 percent. What Azure feature should you configure?

A.Availability zones
B.Autoscale settings
C.Azure Policy
D.Update management
AnswerB

Autoscale settings are the built-in Azure Monitor feature that directly controls the instance count of a Virtual Machine Scale Set by evaluating performance metrics such as average CPU utilization, memory pressure, or custom application metrics. When a metric breach occurs (for example, sustained CPU above a threshold for a defined duration), Autoscale logically triggers a scale-out action to add instances, or a scale-in action when demand drops, making it the only mechanism among these options that performs runtime workload-based capacity adjustments.

Why this answer

Autoscale settings are the correct feature because they allow you to define scale-out and scale-in rules based on performance metrics like average CPU percentage. In this scenario, you would configure a scale-out rule to increase the instance count when average CPU exceeds 75% and a scale-in rule to decrease it when CPU stays below 30%.

Exam trap

The trap here is that candidates may confuse Autoscale with Availability zones, thinking that distributing instances across zones automatically handles scaling, but zones only provide redundancy, not dynamic capacity adjustment based on load.

Why the other options are wrong

A

Availability zones are used to protect applications and data from datacenter failures by distributing resources across multiple zones, not for scaling based on CPU metrics.

C

Azure Policy is used to enforce organizational standards and assess compliance, not to automatically scale resources based on performance metrics like CPU usage.

D

Update management in Azure (e.g., Azure Automation Update Management) is used to manage OS updates and patches for VMs, not to scale instances based on CPU metrics. Autoscale settings are required for scaling rules.

When would these options actually be correct?

A

A question asks: 'You need to ensure that your virtual machine scale set remains available during a regional outage. Which feature should you configure?'

C

An exam question asks: 'You need to ensure that all virtual machines in a subscription are deployed only in approved regions. Which Azure feature should you use?' In that case, Azure Policy would be correct to enforce location compliance.

D

A question asks: 'You need to ensure all VMs in a scale set are automatically patched with the latest security updates. Which Azure feature should you configure?' In that case, Update Management would be correct.

Why candidates pick the wrong answer

A

Candidates may confuse high availability features with autoscaling, thinking that distributing instances across zones also handles performance-based scaling.

C

Candidates may confuse Azure Policy with autoscaling because both involve rules and conditions, but Policy focuses on governance, not dynamic scaling.

D

Candidates may confuse 'update management' with scaling updates or think it can adjust instance counts, but it is solely for patching and compliance.

932
MCQmedium

You need to run a script on VM-App02 immediately after deployment to install a custom monitoring agent. The solution should not require opening additional inbound management ports. What should you use?

A.Boot diagnostics
B.Custom Script Extension
C.An inbound NSG rule for WinRM
D.A proximity placement group
AnswerB

Custom Script Extension is an Azure VM extension that executes arbitrary scripts at deployment completion through the VM agent. It runs as SYSTEM/root via the extension handler, can source script content from Azure Storage, GitHub, or inline, and returns provisioning status after successful execution. This makes it the native post-deployment automation mechanism for installing software, unlike telemetry or network controls.

Why this answer

The Custom Script Extension (CSE) is the correct choice because it allows you to run a script on a VM immediately after deployment without opening any inbound management ports. CSE downloads and executes scripts on the VM via the Azure fabric, using the VM's outbound connectivity to Azure storage or GitHub, and does not require any inbound port (like RDP or WinRM) to be open. This meets the requirement of not opening additional inbound management ports while enabling post-deployment configuration.

Exam trap

The trap here is that candidates often confuse the Custom Script Extension with other VM management features like boot diagnostics or inbound port rules, mistakenly thinking they need to open a port (like WinRM or SSH) to run a script, when the extension uses the VM's outbound-only communication channel.

Why the other options are wrong

A

Boot diagnostics captures serial console output and screenshots for troubleshooting boot failures, not for running scripts or installing software after deployment.

C

An inbound NSG rule for WinRM would open a management port (5985/5986), violating the requirement to not open additional inbound management ports. The question explicitly prohibits this.

D

A proximity placement group is used to reduce network latency between VMs by ensuring they are physically close in the datacenter. It does not run scripts or install software, so it cannot deploy a custom monitoring agent.

When would these options actually be correct?

A

When you need to troubleshoot a VM that fails to boot or crashes, and you require access to console logs or screenshots to diagnose the issue without RDP/SSH.

C

If the question required remote management of a VM after deployment (e.g., to run a script or configure settings) and allowed opening management ports, then an inbound NSG rule for WinRM would be correct. For example: 'You need to remotely execute PowerShell commands on a VM after deployment. What should you configure?'

D

You need to ensure that multiple VMs in an availability set are as close as possible to minimize network latency for a latency-sensitive application. A proximity placement group would be the correct choice to co-locate the VMs.

Why candidates pick the wrong answer

A

Candidates may confuse boot diagnostics with a method to execute commands at startup, or think it can run scripts during the boot process.

C

Candidates may think WinRM is needed to run scripts remotely, but they overlook the explicit constraint against opening inbound management ports. The Custom Script Extension runs during deployment without requiring open ports.

D

Candidates may confuse 'proximity' with 'immediate' or think it relates to running tasks close to deployment, but it is purely a placement feature for latency optimization.

933
MCQmedium

A virtual machine is already protected by Azure Backup. The business wants the VM backed up every day at 11:00 PM and wants daily recovery points retained for 30 days, without re-onboarding the VM. What should the administrator modify?

A.Create a new Recovery Services vault and re-register the VM
B.Modify the backup policy associated with the protected VM
C.Install a new VM extension to change retention behavior
D.Take a manual snapshot of the VM disk every night
AnswerB

Backup schedule and retention are controlled by the backup policy in the Recovery Services vault. Updating that policy changes how future recovery points are created and retained for the protected VM. This is the correct operational object to edit because the VM is already onboarded and the requirement is to adjust policy settings, not the vault itself.

Why this answer

Azure Backup uses backup policies to define the backup schedule and retention rules for protected resources. By modifying the existing policy associated with the VM, you can change the backup time to 11:00 PM and set daily recovery point retention to 30 days without needing to re-onboard the VM or create a new vault.

Exam trap

The trap here is that candidates may think changing the backup schedule or retention requires re-onboarding the VM or creating a new vault, but Azure Backup allows in-place policy modification for already protected resources.

Why the other options are wrong

A

Creating a new Recovery Services vault and re-registering the VM is unnecessary because the existing vault and backup policy can be modified to meet the new schedule and retention requirements without re-onboarding.

C

Installing a new VM extension does not change backup retention or schedule; Azure Backup policies control retention and frequency, not VM extensions.

D

Taking a manual snapshot does not integrate with Azure Backup's retention policy or schedule; it requires manual effort and does not satisfy the requirement for automated daily backups with 30-day retention.

When would these options actually be correct?

A

This option would be correct if the question stated that the VM is not currently protected by Azure Backup and needs to be onboarded to a new vault with a specific policy, or if the existing vault is in a different region or subscription that cannot be used.

C

If a VM is not backing up properly due to a missing or corrupted backup extension, reinstalling the extension can restore backup functionality without changing the policy.

D

If the question asked for a temporary, ad-hoc backup outside of the existing policy (e.g., before a risky change) and the business does not require automated retention or scheduling, a manual snapshot would be appropriate.

Why candidates pick the wrong answer

A

Candidates may think that changing the backup schedule or retention requires a new vault or re-registration, not realizing that existing backup policies can be edited and applied to protected VMs.

C

Candidates may think that backup behavior is controlled by VM-level extensions, confusing the backup extension with policy settings.

D

Candidates may think manual snapshots are a quick way to achieve the desired retention without understanding that Azure Backup policies automate scheduling and retention, making manual snapshots inefficient and non-compliant with the stated requirements.

934
MCQhard

A contractor needs to upload files into one blob container for six hours. The administrator must avoid sharing the storage account key, and the access token should keep working even if the storage account keys are rotated later. Which access mechanism should be issued?

A.An account SAS signed with the storage account key
B.A service SAS signed with the storage account key
C.A user delegation SAS signed through Microsoft Entra authentication
D.The storage account access key itself in a temporary script variable
AnswerC

A user delegation SAS is signed with a user delegation key obtained from Microsoft Entra ID (Azure AD), not with the storage account key. The signing principal must have the RBAC permission Microsoft.Storage/storageAccounts/blobServices/generateUserDelegationKey, and the resulting SAS is scoped to the container with granular permissions and a short validity window. This provides a revocable, isolated credential that avoids exposing the storage account key, making it the correct choice for a temporary contractor upload.

Why this answer

A user delegation SAS is signed with Microsoft Entra credentials rather than the storage account key, so it remains valid even if the storage account keys are rotated. This meets the requirement to avoid sharing the account key while providing temporary, scoped access for exactly six hours. The contractor can upload files without the administrator exposing the account key or needing to manage key rotation.

Exam trap

The trap here is that candidates often confuse service SAS and user delegation SAS, assuming both are tied to the account key, but only service SAS is; user delegation SAS uses Entra ID and survives key rotation.

Why the other options are wrong

A

An account SAS signed with the storage account key would be invalidated if the storage account keys are rotated, which violates the requirement that the access token must keep working after key rotation.

D

Sharing the storage account key itself violates the requirement to avoid sharing the key, and rotating the key would invalidate any temporary script variable using it, failing the requirement that the access token keeps working after key rotation.

When would these options actually be correct?

A

If the question required a SAS that provides access to multiple services (e.g., blobs, queues, tables) or to the entire storage account, and key rotation is not a concern, an account SAS signed with the storage account key would be appropriate.

D

If the question required granting full, unrestricted access to the storage account for a short period and there was no concern about key rotation or security best practices, providing the account key in a script variable could be a quick solution.

Why candidates pick the wrong answer

A

Candidates may think an account SAS is more flexible and secure than sharing the key directly, but they overlook that it is still tied to the storage account key and will break upon key rotation.

D

Candidates may think using the account key directly is simpler and more straightforward than setting up SAS or delegation, especially when the access is temporary and they overlook the key rotation and security requirements.

935
MCQmedium

An on-premises application connects to Azure through an existing site-to-site VPN. The application must access an Azure Blob Storage account over a private IP, and the storage account must not accept public network traffic. Which configuration should the administrator deploy?

A.A service endpoint on the on-premises network and a storage account firewall exception.
B.A private endpoint for the storage account in an Azure VNet reachable through the VPN.
C.A NAT gateway on the subnet that hosts the storage account.
D.An application security group applied to the storage account.
AnswerB

A private endpoint gives the storage account a private IP address inside a VNet. Because the on-premises network already reaches Azure through a site-to-site VPN, on-prem clients can reach that private IP over the encrypted tunnel, provided DNS is also configured to resolve the private name correctly. This satisfies both goals: private connectivity and no public network access to the storage account.

Why this answer

A private endpoint assigns the storage account a private IP from an Azure VNet, making it accessible over the site-to-site VPN without traversing the public internet. This satisfies the requirement for private IP access and allows the storage account to block all public network traffic by disabling public network access in the firewall settings.

Exam trap

The trap here is that candidates often confuse service endpoints with private endpoints, assuming both provide private IP access, but only private endpoints remove the public endpoint entirely, which is necessary when public network access must be disabled.

Why the other options are wrong

A

A service endpoint does not provide a private IP for the storage account; it only allows access from a specific VNet subnet. The storage account would still have a public endpoint, and the firewall exception would allow public traffic from the on-premises VPN gateway's public IP, not a private IP.

C

A NAT gateway provides outbound internet connectivity for private subnets, but it does not enable private access to a storage account. The storage account must not accept public network traffic, and a NAT gateway does not create a private endpoint or bypass the public endpoint.

D

Application security groups (ASGs) are used to group virtual machines and apply network security rules, not to control access to Azure PaaS services like Blob Storage. They cannot restrict public network traffic to a storage account.

When would these options actually be correct?

A

This option would be correct if the requirement was to allow access from an on-premises network to an Azure storage account over the public internet, but restrict access to only the on-premises public IP. For example, if the storage account must accept public network traffic but only from a specific on-premises IP range.

C

A NAT gateway would be correct when you need to provide outbound internet access to resources in a private subnet (e.g., for updates or external API calls) while keeping them isolated from inbound internet traffic. For example, a question requiring outbound-only access for a VM without public IPs.

D

An administrator needs to control network traffic between groups of VMs in a VNet, such as allowing web tier VMs to communicate only with database tier VMs. Applying an ASG to the VMs and referencing it in a network security group rule would be the correct solution.

Why candidates pick the wrong answer

A

Candidates may confuse service endpoints with private endpoints, thinking that a service endpoint provides a private IP connection. They might also believe that a firewall exception for the VPN gateway's public IP is sufficient for private IP access.

C

Candidates may confuse NAT gateway with providing private connectivity, thinking it can route traffic privately to Azure services, or they may misunderstand that NAT is for outbound-only traffic, not inbound private access.

D

Candidates may confuse ASGs with service endpoints or private endpoints, thinking they provide a way to secure access to Azure services, or they may assume ASGs can be applied to any Azure resource, not just VMs.

936
MCQhard

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

A system-assigned managed identity would be correct if the script only needed to manage resources within the same subscription as the VM, and the VM was not regularly redeployed from a standard image (so the identity would persist).

C

If the question allowed storing secrets securely (e.g., using Azure Key Vault with a managed identity to access the secret) and the VM was not redeployed from a standard image, a service principal with a secret stored in Key Vault could be used.

D

A question asks for a secure way to grant a client application time-limited access to a specific Azure Storage blob or container without exposing the storage account key. SAS tokens provide granular, revocable access to storage resources.

Why candidates pick the wrong answer

A

Candidates may think system-assigned managed identity is simpler and sufficient, overlooking the cross-subscription requirement and the fact that it is destroyed when the VM is redeployed.

C

Candidates may default to using a service principal for cross-subscription access without considering the constraints of no secret storage and VM redeployment, overlooking managed identity options.

D

Candidates may confuse SAS with a general-purpose authentication mechanism for Azure CLI, or think it can be used to sign scripts, because SAS is a common security feature in Azure.

937
Multi-Selectmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

C

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

D

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

E

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

When would these options actually be correct?

C

This option would be correct if the question required granting read-only access to all resources within a subscription for a user, and there was no need for group-based management or temporary access. For example: 'A new employee needs read-only access to all resources in the subscription for auditing purposes.'

D

If the requirement were for a contractor to have write permissions (e.g., to deploy resources) for a limited time, and the organization uses manual oversight to ensure compliance, then assigning Contributor at the resource group scope could be considered, though still not best practice.

E

In a scenario where a user already has read access via a role assignment (e.g., Reader) and the administrator wants to prevent accidental deletion or changes to critical resources, a resource lock (e.g., CanNotDelete) would be the correct additional measure.

Why candidates pick the wrong answer

C

Candidates may think assigning the Reader role directly to the user is simpler and sufficient, overlooking the need for scoped access and the requirement to remove access by removing a single identity from a group.

D

Candidates may think Contributor is a 'standard' role and assume that discipline (e.g., verbal instructions) can prevent misuse, underestimating the need for least privilege and proper access controls.

E

Candidates may confuse resource locks with role-based access control, thinking a lock can restrict access to read-only, when in fact locks only protect against operations on the resource itself, not access permissions.

938
MCQmedium

You plan to deploy two virtual machines that run the same line-of-business application. The VMs must remain available during planned maintenance of the Azure platform, but autoscaling is not required. What should you use?

A.A Virtual Machine Scale Set.
B.An availability set.
C.Azure Container Apps.
D.A private endpoint.
AnswerB

An availability set is the correct, targeted Azure construct for a small fixed set of VMs that must stay up together. When you place both VMs in the same availability set, Azure distributes them across fault domains and update domains, so a single rack failure or a planned maintenance reboot affects only one VM at a time. This meets the high-availability requirement directly and qualifies the deployment for the 99.95% VM SLA. It is simpler and more appropriate than scale-out or container-based alternatives for exactly two VMs running the same line-of-business application.

Why this answer

An availability set ensures that VMs are distributed across multiple fault domains and update domains within an Azure datacenter. This protects against both hardware failures (fault domains) and planned Azure platform maintenance (update domains), as only one update domain is rebooted at a time. Since autoscaling is not required, an availability set is the correct choice for high availability during planned maintenance.

Exam trap

The trap here is that candidates often confuse availability sets (for planned maintenance and hardware fault tolerance) with Virtual Machine Scale Sets (for autoscaling and load balancing), leading them to select the scale set even when autoscaling is explicitly not required.

Why the other options are wrong

A

Virtual Machine Scale Set provides autoscaling and load balancing, but the question explicitly states autoscaling is not required and only two VMs are needed. An availability set is sufficient for planned maintenance resilience.

C

Azure Container Apps is a serverless container service for running microservices and applications, not for deploying traditional VMs. The question explicitly requires deploying two VMs, which Container Apps does not support.

D

A private endpoint provides secure connectivity to Azure PaaS services over a private IP address, but it does not ensure VM availability during Azure platform maintenance. The question requires high availability for VMs, which is addressed by an availability set, not network connectivity.

When would these options actually be correct?

A

When the requirement includes automatic scaling based on demand (e.g., variable load) and you need to manage multiple identical VMs as a group, such as a web front-end that scales out during peak hours.

C

You need to deploy a containerized application that can scale based on HTTP traffic or events, and you want to avoid managing the underlying infrastructure. Azure Container Apps would be the correct choice for a serverless container workload with autoscaling.

D

A private endpoint would be correct if the question asked: 'You need to ensure that a virtual machine can securely access an Azure Storage account without using the public internet. What should you use?'

Why candidates pick the wrong answer

A

Candidates may confuse availability sets with scale sets, thinking scale sets also provide high availability during maintenance, but scale sets are primarily for scaling, not just availability.

C

Candidates may confuse Azure Container Apps with Azure Virtual Machine Scale Sets or think it can run VMs, not understanding that it is a container orchestration service for containers, not virtual machines.

D

Candidates may confuse private endpoints with high availability solutions, thinking that private connectivity implies resilience, or they may misread the question as focusing on security rather than availability.

939
MCQhard

An administrator enabled diagnostic settings on an Azure Storage account using the resource-specific schema. A coworker then ran a query against AzureDiagnostics and got no rows, even though failed blob writes occurred during the last hour. What is the best fix?

A.Switch the diagnostic setting back to the legacy AzureDiagnostics schema so all logs land there.
B.Query the storage account's dedicated resource-specific log table and filter for failed write operations.
C.Use the Azure Activity log because blob write failures are always control-plane events.
D.Create a metric alert on storage capacity because that metric includes failed requests.
AnswerB

When resource-specific diagnostic mode is enabled, logs no longer land in AzureDiagnostics for that resource. The correct action is to query the dedicated storage log table produced by the diagnostic setting, then filter for the failed write status and time window. This aligns the query with the actual schema that is collecting the data.

Why this answer

When a diagnostic setting is configured with the resource-specific schema, Azure routes logs to dedicated tables (e.g., StorageBlobLogs) rather than the legacy AzureDiagnostics table. Querying AzureDiagnostics returns no rows because the logs are not stored there. The correct fix is to query the appropriate resource-specific log table (e.g., StorageBlobLogs) and filter for failed write operations, as this table contains the detailed, schema-specific data for the storage account's blob operations.

Exam trap

The trap here is that candidates assume all diagnostic logs land in the AzureDiagnostics table by default, overlooking that the resource-specific schema redirects logs to dedicated tables, leading them to incorrectly choose Option A or fail to query the correct table.

Why the other options are wrong

A

When resource-specific schema is enabled, logs are sent to dedicated tables (e.g., StorageBlobLogs), not to AzureDiagnostics. Querying AzureDiagnostics returns no rows because logs are no longer stored there.

C

Blob write failures are data-plane events, not control-plane events. The Azure Activity log only captures control-plane operations (e.g., creating a storage account), not data-plane operations like blob writes.

D

Metric alerts on storage capacity do not include failed requests; they monitor capacity metrics like used storage. Failed blob writes are data-plane operations logged in diagnostic logs, not captured by capacity metrics.

When would these options actually be correct?

A

If the diagnostic setting was configured with the 'Send to Log Analytics workspace' destination and the 'AzureDiagnostics' schema (legacy mode), then querying AzureDiagnostics would be correct. This option is correct when the diagnostic setting explicitly uses the legacy schema.

C

This option would be correct if the question asked about a control-plane operation, such as 'A user failed to create a new storage account' or 'An administrator deleted a storage account.' In those cases, the Activity log would contain the relevant failure events.

D

If the question asked for a way to be notified when storage account capacity exceeds a threshold (e.g., 80% full), creating a metric alert on the 'Used Capacity' metric would be the correct solution.

Why candidates pick the wrong answer

A

Candidates may be familiar with the legacy AzureDiagnostics table and assume all Azure logs land there, not realizing that resource-specific tables are used when that schema is selected.

C

Candidates may confuse control-plane and data-plane operations, or mistakenly think that all Azure failures are logged in the Activity log, especially when they are unfamiliar with diagnostic settings and resource-specific tables.

D

Candidates may confuse 'metric alerts' with 'log alerts' or think that capacity metrics aggregate all request failures, not realizing that capacity metrics only track storage usage, not operation outcomes.

940
MCQmedium

A Windows Azure VM must download configuration data from Azure Key Vault during first boot. Security policy forbids storing passwords, certificates, or client secrets on the VM. What should the administrator configure?

A.Create a service principal and place its secret in the VM's startup script.
B.Enable a system-assigned managed identity on the VM and grant it Key Vault access.
C.Attach a custom script extension that embeds the Key Vault password in plain text.
D.Use an Entra ID user account and sign in interactively after deployment.
AnswerB

A system-assigned managed identity gives the VM an automatically managed identity with no stored credentials. The VM can authenticate to Key Vault through Azure AD and receive only the permissions it needs. Because the identity is tied to the VM lifecycle, it is ideal for first-boot configuration tasks that must avoid passwords, certificates, and client secrets.

Why this answer

A system-assigned managed identity provides an automatically managed service principal in Entra ID, tied to the VM's lifecycle. Granting this identity the appropriate Key Vault access policy (e.g., Get, List secrets) allows the VM to authenticate to Key Vault without any stored credentials, satisfying the security policy. The VM can then retrieve configuration data during first boot using the Azure Instance Metadata Service (IMDS) endpoint.

Exam trap

The trap here is that candidates may think a service principal with a stored secret (Option A) is required for automated access, overlooking that managed identities eliminate the need for any stored credentials.

Why the other options are wrong

A

Storing the service principal's secret in the VM's startup script violates the security policy forbidding passwords, certificates, or client secrets on the VM.

C

The custom script extension would embed the Key Vault password in plain text, violating the security policy that forbids storing passwords, certificates, or client secrets on the VM.

D

Interactive sign-in with an Entra ID user account is not automated and requires manual intervention, which violates the requirement for first-boot automation without storing credentials on the VM.

When would these options actually be correct?

A

If the security policy allowed storing secrets on the VM and the VM needed to authenticate to Azure services using a service principal with a client secret, this would be a valid approach.

C

If the security policy allowed storing secrets on the VM, and the requirement was to run a script during first boot that uses a hardcoded password (e.g., for a legacy application), then a custom script extension with embedded credentials could be acceptable.

D

If the question required interactive user authentication for a one-time administrative task on a VM, such as troubleshooting or manual configuration, and automation was not needed, then using an Entra ID user account to sign in interactively would be appropriate.

Why candidates pick the wrong answer

A

Candidates may think a service principal is required for authentication and overlook the security constraint, or they may not be aware that managed identities eliminate the need for secrets.

C

Candidates may think custom script extensions are a standard way to run startup scripts, and they might overlook the security policy restriction against storing secrets on the VM.

D

Candidates may think that using an existing Entra ID user account avoids storing secrets on the VM, but they overlook the need for automated, unattended access during first boot.

941
Matchinghard

Match each storage or PaaS access requirement to the correct Azure networking approach or DNS action.

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

Concepts
Matches

Create a private endpoint and link the correct private DNS zone to the VNet.

Use a service endpoint on the subnet and allow that subnet in the storage account network rules.

The private DNS zone is missing, not linked to the VNet, or the record has not been populated.

Use a service endpoint with a network rule on the SQL server.

Use the storage firewall with a virtual network rule for AppSubnet; if the on-premises source also needs access, allow its public IP separately. No private endpoint is required.

Why these pairings

VPN and ExpressRoute provide private connectivity, Private Link ensures private IP access, and DNS CNAME records map custom domains to Azure endpoints.

942
Multi-Selecthard

A user deleted a nested folder tree from an Azure file share yesterday. Other folders in the share were updated after the deletion and must not be rolled back. Which two actions should the administrator take? Select two.

Select 2 answers
A.Restore the entire file share from the latest snapshot.
B.Open a snapshot taken before the deletion.
C.Copy only the deleted folder tree back into the live share.
D.Convert the file share to the Hot access tier.
E.Delete the newer folders so the share matches the snapshot exactly.
AnswersB, C

Opening a snapshot taken before the deletion provides a read-only, point-in-time view of the entire file share as it existed earlier. Because Azure Files snapshots are share-level, they contain the deleted folder tree in its prior state, allowing you to browse and identify the exact content to recover. This is the correct first step because it isolates the source data without altering the live share.

Why this answer

Azure file share snapshots provide a point-in-time, read-only copy of the entire share. By opening a snapshot taken before the deletion, the administrator can browse the exact folder tree as it existed at that time. Option C is correct because the administrator can copy only the deleted folder tree from the snapshot back into the live share, leaving all other folders (including those updated after the deletion) intact.

Exam trap

The trap here is that candidates often assume the only way to recover deleted data is to restore the entire share from a snapshot, overlooking the ability to mount the snapshot and perform a granular copy of only the deleted items.

Why the other options are wrong

A

Restoring the entire file share from the latest snapshot would roll back all changes, including the updates made after the deletion that must not be rolled back.

D

The Hot access tier affects storage costs and performance for blobs, not file shares. It does not provide any mechanism to restore deleted files or folders.

E

Deleting newer folders to match the snapshot would also remove the updates that must not be rolled back, violating the requirement to preserve those changes.

When would these options actually be correct?

A

If the question stated that no other files were modified after the deletion and the goal is to recover the entire share to its state before the deletion, restoring from the latest snapshot would be correct.

D

An administrator needs to optimize costs for a blob storage account with frequent access patterns. Converting the blob storage account to the Hot access tier would reduce access costs compared to the Cool tier.

E

If the question required restoring the file share to an exact previous state (e.g., after accidental bulk deletion) and no updates needed to be preserved, deleting newer folders to match a snapshot would be a valid approach.

Why candidates pick the wrong answer

A

Candidates may think snapshots are the primary recovery method and overlook the requirement to preserve later updates, assuming a full restore is the only option.

D

Candidates may confuse file shares with blob storage and think that changing the access tier can help with data recovery or performance improvements for deleted files.

E

Candidates may think that restoring from a snapshot requires making the live share identical to the snapshot, and deleting newer folders seems like a direct way to achieve that without understanding that it would discard recent changes.

943
MCQeasy

After applying a custom image, a VM restarts to a black screen and never reaches the sign-in prompt. The administrator wants the fastest way to inspect the boot process without connecting to the guest OS. What should be used?

A.Azure Advisor
B.Boot diagnostics
C.Managed identity
D.Azure Policy
AnswerB

Boot diagnostics captures console output and screenshots from the VM startup process. When a VM fails before reaching the sign-in screen, this is often the fastest place to look for boot errors, driver issues, or configuration problems. It gives administrators visibility into what happened before the operating system completed startup, without requiring guest access.

Why this answer

Boot diagnostics captures serial console output and screenshots of the VM during the boot process, allowing you to inspect boot failures like a black screen without needing to connect to the guest OS. This is the fastest method because it provides immediate, out-of-band access to boot logs and visual state, even when the OS is unresponsive.

Exam trap

The trap here is that candidates may confuse Azure Advisor's 'diagnostic' recommendations with actual boot diagnostics, or assume Managed Identity can somehow 'log in' to inspect the OS, when only Boot Diagnostics provides host-level, out-of-band boot visibility.

Why the other options are wrong

A

Azure Advisor provides recommendations for best practices in cost, security, reliability, and performance, but it does not offer real-time boot process inspection or console output for a VM that fails to boot.

C

Managed identity is used for authenticating to Azure resources without storing credentials, not for inspecting VM boot processes or diagnosing boot failures.

D

Azure Policy is used to enforce organizational standards and assess compliance, not to inspect boot processes or diagnose VM startup issues. It cannot provide boot-level logs or screenshots.

When would these options actually be correct?

A

When an administrator needs to review personalized recommendations to optimize Azure resources for high availability, security, or cost, and the question specifically asks for a service that provides proactive guidance based on Azure best practices.

C

An administrator needs to grant a VM access to Azure Key Vault secrets without using service principals or shared secrets. Managed identity would be the correct answer to enable secure authentication.

D

An exam question asks: 'You need to ensure that all VMs in a subscription are deployed only in specific regions. Which feature should you use?' Azure Policy would be correct for enforcing such compliance rules.

Why candidates pick the wrong answer

A

Candidates may confuse Azure Advisor's monitoring and recommendation capabilities with the ability to diagnose boot issues, assuming it can provide insights into VM startup problems.

C

Candidates may confuse 'identity' with 'diagnostics' or think that managed identity can be used to access boot logs, but it has no role in boot process inspection.

D

Candidates may confuse Azure Policy with diagnostic tools because both involve 'policy' or 'rules,' leading them to think it can help troubleshoot boot failures.

944
MCQeasy

Based on the exhibit, what should the administrator configure so storage logs can be queried later with KQL?

A.Create a backup policy for the storage account so the logs are retained automatically.
B.Enable a resource lock on the storage account so no logs are lost.
C.Turn on blob versioning so every change to the storage account is searchable.
D.Configure diagnostic settings to send logs to a Log Analytics workspace.
AnswerD

Diagnostic settings on a storage account export platform logs (such as StorageRead, StorageWrite, and StorageDelete) and metrics to a selected destination, including a Log Analytics workspace, where they become available for KQL queries. This is the only option that actually streamlines operational data into an analytical store, enabling you to filter, aggregate, and investigate activity directly. Because Azure Monitor diagnostic settings can be configured per resource and per log category, they provide the precise mechanism to make storage account events searchable and actionable.

Why this answer

Diagnostic settings in Azure allow you to stream platform logs, including storage logs, to a Log Analytics workspace. Once the logs are in Log Analytics, you can query them using Kusto Query Language (KQL) to analyze storage operations, errors, and metrics. This is the only option that directly enables querying storage logs with KQL.

Exam trap

The trap here is that candidates confuse data protection features (backup, locks, versioning) with logging and monitoring capabilities, failing to recognize that only diagnostic settings can route logs to a Log Analytics workspace for KQL queries.

Why the other options are wrong

A

Creating a backup policy for the storage account retains copies of data but does not capture or forward operational logs to a queryable destination like Log Analytics. KQL queries require logs in a Log Analytics workspace, not backup vaults.

B

A resource lock prevents accidental deletion or modification of the storage account, but it does not enable log collection or querying with KQL. Logs must be sent to a Log Analytics workspace to be queried with KQL.

C

Blob versioning preserves previous versions of blobs, but it does not capture or store diagnostic logs (e.g., read/write operations) in a format queryable by KQL. Diagnostic settings must send logs to a Log Analytics workspace for KQL queries.

When would these options actually be correct?

A

A question asks: 'You need to ensure that storage account data can be restored to a point in time after accidental deletion. What should you configure?' In that scenario, a backup policy (e.g., Azure Backup) would be the correct answer to enable data recovery.

B

An administrator needs to ensure that diagnostic settings on a storage account cannot be deleted or altered by unauthorized users, and the question asks for a method to protect the configuration of log collection. In that case, enabling a resource lock would be correct.

C

If the question asked 'How to preserve previous versions of blobs for point-in-time recovery or auditing changes to blob data?', then enabling blob versioning would be the correct answer.

Why candidates pick the wrong answer

A

Candidates may confuse 'retaining logs' with 'retaining data backups,' assuming that backing up the storage account also preserves logs for querying. They overlook that logs must be explicitly sent to a Log Analytics workspace for KQL access.

B

Candidates may think that locking the storage account preserves logs by preventing changes, but they overlook that logs must first be collected and sent to a queryable destination like Log Analytics.

C

Candidates may confuse blob versioning with log retention, thinking that versioning captures all changes including logs, or they may overgeneralize versioning as a catch-all for data preservation and queryability.

945
MCQhard

A team needs one Azure Files share that can be mounted by both Windows and Linux VMs. The VMs are joined to the same on-premises Active Directory Domain Services domain, and the security team forbids storage account keys. The team also wants to manage access with existing AD group memberships. What should the administrator configure?

A.Use Azure Files over SMB and enable AD DS authentication
B.Use a blob container and mount it through the Blob API
C.Use anonymous access on an Azure File share
D.Use a premium NFS file share with a shared access signature
AnswerA

Azure Files over SMB supports both Windows and Linux clients, and AD DS authentication lets the team use existing domain identities and groups instead of storage keys. This keeps permissions centralized and avoids embedding secrets in scripts or mount commands. It is the most appropriate choice when both operating systems must share the same file data and access control should come from the established directory service.

Why this answer

Azure Files supports SMB protocol, which can be mounted by both Windows and Linux VMs. By enabling AD DS authentication, the administrator can use existing on-premises Active Directory group memberships to control access to the file share without requiring storage account keys, satisfying the security team's requirement.

Exam trap

The trap here is that candidates may confuse NFS with SMB, assuming NFS is the only option for Linux, but Azure Files supports SMB for both Windows and Linux, and AD DS authentication is only available for SMB shares, not NFS.

Why the other options are wrong

B

Blob containers cannot be mounted as file shares; they require Blob API access, not SMB or NFS, and do not support AD DS authentication for mounting by VMs.

C

Anonymous access on an Azure File share does not allow authentication via AD group memberships, and the security team forbids storage account keys, making it unsuitable for managing access with existing AD groups.

D

A premium NFS file share cannot be mounted by Windows VMs, and using a shared access signature (SAS) violates the security team's forbiddance of storage account keys, as SAS tokens are derived from keys.

When would these options actually be correct?

B

An administrator needs to store and access unstructured data (e.g., images, logs) from applications using REST APIs, and requires AD DS authentication for access control without using storage account keys.

C

An administrator needs to provide read-only access to a publicly shared file share for anonymous users without requiring authentication, such as for distributing public documents or software installers.

D

An administrator needs to provide high-performance, low-latency file storage for Linux VMs only, and the security team allows SAS tokens for temporary access. In that case, a premium NFS file share with SAS would be correct.

Why candidates pick the wrong answer

B

Candidates may confuse blob storage with file shares, thinking both can be mounted as drives, or assume the Blob API can be used for file-level access with AD authentication.

C

Candidates may think anonymous access simplifies setup by avoiding authentication, but they overlook the requirement to manage access via AD group memberships and the security policy against storage account keys.

D

Candidates may think NFS is universally mountable by both Windows and Linux, and SAS seems like a secure alternative to storage account keys, overlooking the OS compatibility and key derivation issue.

946
MCQeasy

A storage account should accept traffic only from one subnet, but the team does not want to create a private IP address for the service in the virtual network. What should they enable?

A.Private endpoint, because it is the only way to allow one subnet.
B.Service endpoint, because it allows the subnet to access the storage service securely over the Azure backbone.
C.User-assigned managed identity, because it controls subnet access.
D.Blob soft delete, because it helps restrict where traffic comes from.
AnswerB

A service endpoint lets you restrict storage access to a specific subnet without creating a private IP for the service in the virtual network.

Why this answer

Service endpoints allow a subnet to access Azure PaaS services (like Storage) over the Azure backbone without requiring a private IP address. By enabling a Microsoft.Storage service endpoint on the subnet and configuring the storage account firewall to allow traffic only from that subnet, the team meets the requirement securely and cost-effectively.

Exam trap

The trap here is confusing private endpoints (which assign a private IP) with service endpoints (which do not), leading candidates to incorrectly choose private endpoint when the question explicitly prohibits creating a private IP address.

Why the other options are wrong

A

Private endpoint assigns a private IP to the storage account in the virtual network, which the team explicitly wants to avoid. The question requires restricting access to one subnet without creating a private IP, so service endpoint is correct.

C

User-assigned managed identity controls authentication and authorization, not network-level access. It does not restrict traffic to a specific subnet.

D

Blob soft delete is a data protection feature that recovers deleted blobs; it does not restrict network traffic to a subnet.

When would these options actually be correct?

A

A question where the requirement is to ensure that traffic to the storage account never traverses the public internet and remains entirely within the Microsoft backbone, and the team is willing to create a private IP for the service in the virtual network.

C

When a question asks for a way to grant a virtual machine or Azure resource access to a storage account without using storage account keys, and the solution must avoid hard-coding credentials. User-assigned managed identity would be correct for that scenario.

D

A question asks: 'Which feature protects against accidental deletion of blobs by retaining deleted data for a specified period?' Blob soft delete would be the correct answer.

Why candidates pick the wrong answer

A

Candidates may confuse private endpoints with service endpoints, thinking both provide subnet-level access control, but private endpoints involve private IPs and are often seen as more secure, leading to selection despite the constraint against private IPs.

C

Candidates may confuse managed identities with service endpoints or private endpoints, thinking they provide network access control, when they actually provide identity-based access.

D

Candidates may confuse 'soft delete' with 'network security' because both involve 'delete' and 'restrict' in their descriptions, leading to a mistaken belief that soft delete can filter traffic.

947
MCQeasy

Based on the exhibit, which KQL clause should replace the blank to show only heartbeat records from the last 30 minutes?

A.project Computer, TimeGenerated
B.where TimeGenerated >= ago(30m)
C.extend TimeWindow = 30m
D.sort by TimeGenerated desc
AnswerB

The where clause filters rows before summarizing, and ago(30m) is the KQL function that represents the last 30 minutes from the current time. This is the correct way to restrict the Heartbeat table to recent records before calculating the most recent check-in for each computer. It is a standard operational troubleshooting pattern in Log Analytics.

Why this answer

The KQL clause `where TimeGenerated >= ago(30m)` filters the results to include only records where the `TimeGenerated` timestamp is within the last 30 minutes. The `ago()` function calculates a datetime value relative to the current time, and the `>=` operator ensures only records from that point forward are returned. This directly satisfies the requirement to show heartbeat records from the last 30 minutes.

Exam trap

The trap here is that candidates often confuse filtering (`where`) with projection (`project`), sorting (`sort`), or extending (`extend`), and may choose a clause that manipulates the output format or order instead of actually restricting the rows based on a time condition.

Why the other options are wrong

A

The 'project' operator only selects columns to display, it does not filter records by time. The question requires filtering heartbeat records to those from the last 30 minutes, which requires a 'where' clause with a time condition.

C

The `extend` operator adds a calculated column but does not filter records; it would not limit results to the last 30 minutes.

D

The `sort by` clause only orders results but does not filter them; it cannot limit records to the last 30 minutes.

When would these options actually be correct?

A

This option would be correct in a question that asks: 'Which KQL clause should be used to display only the Computer and TimeGenerated columns from heartbeat records?' where the goal is column selection, not time filtering.

C

A question asking to add a column showing a 30-minute time window for each record, such as 'Add a column named TimeWindow that contains the value 30m for all records.'

D

If the question asked 'Which clause should replace the blank to display heartbeat records in descending order of time?' then `sort by TimeGenerated desc` would be correct.

Why candidates pick the wrong answer

A

Candidates may confuse the 'project' operator with filtering, thinking that selecting specific columns implicitly limits the data, or they may misread the question as asking about which columns to show rather than which records to keep.

C

Candidates may confuse adding a time-related column with filtering by time, or think `extend` can implicitly filter data.

D

Candidates may confuse sorting with filtering, thinking that sorting by time and then taking the top results implicitly filters to recent data.

948
MCQhard

A virtual machine is already protected by Azure Backup. The current policy runs daily at 23:00 and keeps daily recovery points for 30 days. The business now wants the same schedule but wants new daily recovery points retained for 90 days. No new vault or re-registration should occur. What should the administrator do?

A.Create a new Recovery Services vault and enable backup again with the longer retention period.
B.Edit the existing backup policy and change the daily retention for future recovery points.
C.Take nightly managed disk snapshots because snapshots automatically inherit the Recovery Services vault retention period.
D.Change the vault redundancy setting to increase the number of retained recovery points.
AnswerB

Backup retention is controlled by the backup policy attached to the protected VM. Updating the policy to retain daily recovery points for 90 days changes how future backups are kept without re-registering the workload or creating a new vault. Existing recovery points keep their original retention behavior, while newly created recovery points follow the updated rule. This is the normal, low-impact administrative change.

Why this answer

Azure Backup allows you to modify an existing backup policy to change the retention duration for future recovery points without creating a new vault or re-registering the VM. By editing the policy and setting the daily retention to 90 days, all new daily recovery points will be retained for the longer period, while existing recovery points remain unaffected by the change.

Exam trap

The trap here is that candidates may confuse vault redundancy settings with retention duration, or assume that a new vault is required to change retention, when in fact Azure Backup policies can be edited in place to adjust retention for future recovery points.

Why the other options are wrong

A

The question explicitly states 'No new vault or re-registration should occur', so creating a new Recovery Services vault violates that constraint. The existing vault and policy can be modified to extend retention without a new vault.

C

Managed disk snapshots do not automatically inherit Recovery Services vault retention policies; they have their own independent lifecycle and are not integrated with Azure Backup policies.

D

Changing the vault redundancy setting (e.g., from LRS to GRS) affects data replication, not the retention period of recovery points. Retention is controlled by the backup policy, not redundancy.

When would these options actually be correct?

A

This option would be correct if the question required isolating the backup data for compliance reasons (e.g., separate vault for different departments) or if the existing vault was corrupted or in a different region, necessitating a new vault for the backup.

C

If the requirement were to create crash-consistent backups independent of Azure Backup, with custom retention managed separately (e.g., via Azure Policy or automation), and the question explicitly allowed using snapshots instead of vault-based backups.

D

An administrator needs to ensure backup data is replicated to a paired region for disaster recovery compliance. Changing vault redundancy from Locally Redundant Storage (LRS) to Geo-Redundant Storage (GRS) would be correct.

Why candidates pick the wrong answer

A

Candidates may think that creating a new vault is the simplest way to change retention without modifying existing backups, or they may not realize that existing policies can be edited to extend retention for future recovery points.

C

Candidates may confuse managed disk snapshots with Azure Backup recovery points, assuming snapshots are automatically governed by the vault's retention settings, or think snapshots are a valid alternative to backup policies.

D

Candidates may confuse 'redundancy' with 'retention' due to similar terminology, or assume that increasing redundancy inherently extends how long backups are kept.

949
MCQeasy

You are deploying a new Windows VM and want it to start with the same custom software and configuration that already exist on an approved production VM. What should you use as the source for the new VM?

A.A marketplace image
B.A custom image
C.A snapshot of the OS disk
D.An availability set
AnswerB

A custom image is a generalized virtual hard disk (VHD) or managed image that contains the operating system, preinstalled software, and configuration settings (e.g., Windows updates, system roles, local policies) captured from a prepared source VM. For Windows, the source VM is generalized using Sysprep to remove machine-specific identifiers, making the image reusable for creating any number of identical VMs. Deploying from a custom image is the standard, supported way to launch new VMs with the exact same baseline and organizational configuration.

Why this answer

A custom image captures the exact OS configuration, installed software, and settings from a source VM, allowing you to deploy new VMs with identical customizations. Unlike a marketplace image, which provides only a generic OS, a custom image preserves all modifications made to the approved production VM, including applications and system tweaks.

Exam trap

The trap here is that candidates often confuse a snapshot with a custom image, not realizing that a snapshot is a disk-level backup requiring additional steps to create a deployable VM, whereas a custom image is directly usable for VM creation with the exact software and configuration.

Why the other options are wrong

A

A marketplace image is a generic, pre-configured image provided by Azure or third parties, not a custom image based on an existing approved production VM. It does not include the specific custom software and configuration already present on that VM.

C

A snapshot captures the state of a disk at a point in time but is not directly deployable as a VM; it must first be converted to a managed disk or used to create a custom image, which adds extra steps and does not preserve the full VM configuration like network settings.

When would these options actually be correct?

A

When the question asks for deploying a VM using a standard, Microsoft-verified Windows Server image without any customizations, or when you need to quickly deploy a VM with common configurations and no requirement to replicate an existing VM's custom setup.

C

When the goal is to create multiple VMs from the same OS disk state for disaster recovery or testing, and you plan to attach the snapshot as a disk to a new VM, or when you need to quickly restore a specific disk to a VM without preserving other VM-level settings.

Why candidates pick the wrong answer

A

Candidates may assume marketplace images are the easiest or default choice for any VM deployment, overlooking the requirement for custom software and configuration that only a custom image can provide.

C

Candidates may think a snapshot is equivalent to a custom image because both capture disk state, but they overlook that a snapshot lacks the generalized system preparation and VM-specific metadata required for direct deployment of a new VM with identical configuration.

950
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

This option would be correct if the question asked for a way to allow multiple users to access the VM with the same credentials, or if the scenario required a non-Azure-authenticated local account for legacy application compatibility.

C

When a question asks how to allow a specific resource to be excluded from an Azure Policy initiative (e.g., to bypass a compliance requirement) without modifying the policy itself, an exemption would be the correct answer.

D

If the question were about ensuring a VM can be accessed from the internet or needs outbound connectivity to Azure services without a NAT gateway, then assigning a public IP address would be correct.

Why candidates pick the wrong answer

A

Candidates may think a shared local account is a simple way to authenticate without Azure AD, overlooking that it still requires storing secrets on the VM.

C

Candidates may confuse 'exemption' with 'authentication' or think that an exemption allows the VM to bypass security controls to create resources.

D

Candidates may think a public IP is necessary for the VM to communicate with Azure Resource Manager APIs, but managed identities handle authentication without exposing the VM to the internet.

951
MCQmedium

Which statement best explains why centralized logging is valuable in security operations?

A.It improves visibility by collecting events from multiple devices in one place for review and investigation.
B.It guarantees that no unauthorized action can occur.
C.It replaces the need for NTP and authentication.
D.It automatically assigns IP addresses to monitoring systems.
AnswerA

Centralized logging aggregates syslog messages, Windows Event Logs, Azure Activity Logs, and resource diagnostic logs into a single Log Analytics workspace. This consolidation enables security and operations teams to search, correlate, and investigate events across all devices and workloads without jumping between multiple consoles. Because logs are stored in one queriable repository, incident response and root-cause analysis become significantly faster and more effective.

Why this answer

Centralized logging aggregates security events (e.g., Windows Event Log, syslog, Azure Activity Log) from multiple sources into a single repository like Azure Log Analytics or a SIEM. This consolidation enables security analysts to correlate events across devices, detect patterns indicative of attacks, and perform efficient forensic investigations without needing to access each device individually.

Exam trap

The trap here is that candidates may think centralized logging actively prevents security incidents (like a firewall or IDS), when in fact it is a passive detective control that improves visibility and post-incident analysis.

Why the other options are wrong

B

This option is wrong because centralized logging does not prevent unauthorized actions; it merely collects and stores logs for analysis. Security operations rely on other measures, such as access controls and monitoring, to prevent unauthorized activities.

C

This option is wrong because centralized logging does not replace the need for Network Time Protocol (NTP) or authentication; these are separate functions that ensure accurate time synchronization and secure access to systems, respectively.

D

This option is wrong because centralized logging does not involve the automatic assignment of IP addresses; it focuses on aggregating logs for analysis rather than managing network configurations.

When would these options actually be correct?

B

In a different exam scenario, a question might ask about the benefits of implementing a comprehensive security framework. In that context, if the question emphasized the role of logging in enforcing security policies, option B could be seen as correct, suggesting that centralized logging contributes to preventing unauthorized actions through policy enforcement.

C

In a question asking about the integration of various network services, one could argue that centralized logging systems can operate without NTP and authentication, focusing solely on log collection. In this context, if the question specified that centralized logging could function independently of these services, option C could be considered correct.

D

In a different exam scenario where the question asks about the functionalities of a network monitoring system that includes DHCP services, option D could be correct if the context is about how monitoring systems can manage IP address allocation for devices on a network.

Why candidates pick the wrong answer

B

Candidates may find this option tempting because it implies a strong security posture, suggesting that centralized logging could inherently prevent unauthorized actions. This reflects a common misconception that logging alone can secure systems without additional security measures.

C

Candidates might choose this option due to a misunderstanding of centralized logging's role, mistakenly believing it encompasses all aspects of system management, including time synchronization and authentication, leading to confusion about its capabilities.

D

Candidates might choose this option due to a misunderstanding of network management concepts, conflating centralized logging with network services like DHCP, leading to confusion about their distinct roles in IT operations.

952
MCQhard

You need to ensure that a virtual machine is protected by Azure Backup and can be restored from centralized backup data if the VM is deleted. Which Azure resource should you configure first?

A.A Recovery Services vault
B.An availability set
C.A network security group
D.A public IP address
AnswerA

A Recovery Services vault is the mandatory Azure resource that stores backup data and houses backup policies for Azure VM protection. When you enable Azure Backup, you must associate the VM with a vault; the service then orchestrates snapshot creation and retention settings defined by that vault's policy, without which no recovery point can be stored or restored.

Why this answer

A Recovery Services vault is the foundational Azure resource for Azure Backup. It stores backup data and recovery points, enabling centralized backup management and restoration even if the original VM is deleted. Without first configuring a Recovery Services vault, you cannot define backup policies or initiate backups for the VM.

Exam trap

The trap here is that candidates may confuse high-availability resources (like availability sets) with backup/recovery resources, failing to recognize that a Recovery Services vault is the prerequisite for any Azure Backup operation.

Why the other options are wrong

B

An availability set is used to distribute VMs across fault and update domains for high availability, not for backup or restore operations. It does not provide centralized backup data or protect against VM deletion.

C

A network security group (NSG) filters traffic to and from Azure resources but does not provide backup or restore capabilities. It cannot protect VM data or enable centralized backup restoration.

D

A public IP address is a networking resource that provides internet connectivity to a VM, not a backup or recovery resource. It cannot store backup data or enable VM restoration after deletion.

When would these options actually be correct?

B

You need to ensure that your application remains available during planned or unplanned maintenance. Which Azure resource should you configure for two or more VMs running the same workload?

C

A question asking: 'You need to restrict inbound traffic to a virtual machine. Which Azure resource should you configure first?' would make an NSG the correct answer, as it is the primary tool for network traffic filtering.

D

In a scenario where you need to ensure a VM can be accessed from the internet after a failover or migration, configuring a public IP address would be the correct first step. For example, when setting up a load-balanced web server with a public endpoint.

Why candidates pick the wrong answer

B

Candidates may confuse high availability with backup/disaster recovery, thinking that an availability set provides data protection or restore capabilities.

C

Candidates may confuse network security with data protection, thinking that securing network access is a prerequisite for backup, or they may misread the question as about protecting the VM from network threats rather than data loss.

D

Candidates may confuse the need for a public IP to access the backup service or think that a public IP is required for Azure Backup to function, but Azure Backup uses internal Azure infrastructure and does not require a public IP on the VM.

953
MCQmedium

A Virtual Machine Scale Set must add instances automatically when average CPU usage is above 75 percent and remove instances when CPU drops below 30 percent. Which feature should you configure?

A.Autoscale rules in Azure Monitor
B.A Recovery Services vault policy
C.Boot diagnostics
D.Azure Advisor only
AnswerA

Autoscale rules in Azure Monitor are the native mechanism for automatically adding or removing VM Scale Set instances based on metric thresholds such as CPU percentage, memory pressure, or a custom application metric. A rule defines a metric source, an operator (e.g., greater than), a threshold, and a duration, and when the condition holds, the scale action increments the instance count by a specified value. These rules can also include a cool-down period to prevent flapping, and schedule-based profiles allow time-window scaling. Because the autoscale engine is part of Azure Monitor, it is the correct component to implement metric-driven auto-instance provisioning for a scale set.

Why this answer

Autoscale rules in Azure Monitor allow you to define conditions for automatically scaling a Virtual Machine Scale Set (VMSS) based on metrics like average CPU usage. You can set a scale-out rule to add instances when CPU exceeds 75% and a scale-in rule to remove instances when CPU drops below 30%, with a cool-down period to prevent flapping. This is the native Azure feature designed for such metric-based auto-scaling scenarios.

Exam trap

The trap here is that candidates may confuse Azure Advisor (which gives recommendations) with the actual implementation of autoscale rules, or mistakenly think Recovery Services vault policies or boot diagnostics are involved in scaling decisions.

Why the other options are wrong

B

A Recovery Services vault policy is used for backup and disaster recovery of Azure VMs, not for scaling VM instances based on CPU metrics.

C

Boot diagnostics captures serial console output and screenshots for troubleshooting VM boot failures, but it does not provide autoscaling capabilities based on CPU metrics.

D

Azure Advisor provides recommendations for best practices but does not implement autoscaling rules. Autoscaling requires configuring Autoscale rules in Azure Monitor, not just Advisor.

When would these options actually be correct?

B

When the question asks about configuring backup schedules or retention policies for Azure VMs, such as 'You need to ensure daily backups of a VM are retained for 30 days. Which feature should you configure?'

C

A question asks: 'You need to troubleshoot why a VM in a scale set fails to start. Which feature should you enable to capture boot errors?' Boot diagnostics would be the correct answer.

D

A question asks: 'Which service provides cost optimization, security, and reliability recommendations for Azure resources?' In that case, Azure Advisor would be the correct answer.

Why candidates pick the wrong answer

B

Candidates may confuse 'policy' with scaling rules, or think Recovery Services vault can manage performance-based actions due to its role in VM protection.

C

Candidates may confuse boot diagnostics with monitoring features, thinking it can trigger actions based on performance metrics, or they may misremember it as a tool for performance analysis.

D

Candidates may think Azure Advisor can automatically adjust resources based on its recommendations, confusing advisory with automated scaling actions.

954
MCQeasy

Based on the exhibit, what should the administrator check first to resolve the backup failure for the Azure VM?

A.Increase the backup retention period in the vault policy.
B.Verify that the Azure VM Agent is installed and running on the VM.
C.Move the VM to a different availability zone.
D.Change the storage account redundancy to ZRS.
AnswerB

Azure VM backups depend on a healthy VM agent so Azure can coordinate snapshot and extension operations. If the job reports that the agent is not in a ready state, the first troubleshooting step is to confirm the agent is installed, running, and up to date. Custom images sometimes miss the agent or contain a broken installation, which causes backup jobs to fail immediately.

Why this answer

The Azure VM backup failure is most commonly caused by the Azure VM Agent (also known as the Windows Guest Agent or Linux Agent) not being installed, outdated, or in a non-responsive state. The backup extension relies on the VM Agent to execute snapshots and coordinate with the Azure Backup service; without a healthy agent, the backup process cannot initiate. Therefore, verifying the agent's installation and status is the first troubleshooting step.

Exam trap

The trap here is that candidates often jump to storage or networking changes (like redundancy or availability zones) when the real issue is a missing or broken VM Agent, which is a prerequisite for any guest-level operation including backup extensions.

Why the other options are wrong

A

The backup failure is due to the VM Agent not being installed or running, which is required for Azure Backup to take snapshots. Increasing the retention period does not address the root cause of the failure.

C

Moving the VM to a different availability zone does not resolve backup failures caused by the Azure VM Agent not being installed or running. Backup failures are typically related to agent issues, not zone placement.

D

Changing storage account redundancy to ZRS does not resolve backup failures caused by the Azure VM Agent not being installed or running. Backup failures typically relate to agent issues, not storage redundancy.

When would these options actually be correct?

A

If the question were about a backup job that succeeds but the administrator wants to keep recovery points for a longer duration to meet compliance requirements, then increasing the backup retention period in the vault policy would be the correct action.

C

An administrator needs to improve VM availability during a zone-wide outage. The question would ask: 'Which action should be taken to protect a VM from an availability zone failure?'

D

This option would be correct if the question described a scenario where backup failures occur due to storage account redundancy not meeting the required durability or availability SLA, such as when the backup policy requires geo-redundant storage but the account uses LRS.

Why candidates pick the wrong answer

A

Candidates may assume that backup failures are often related to policy misconfigurations, such as retention settings, rather than understanding that the VM Agent is essential for snapshot-based backups.

C

Candidates may confuse availability zone concepts with backup reliability, thinking that changing zones can fix backup issues, or they may overgeneralize zone redundancy as a solution for all failures.

D

Candidates may think that increasing redundancy (ZRS) improves backup reliability, but Azure Backup failures are rarely caused by storage redundancy settings; the agent is the more common culprit.

955
Multi-Selectmedium

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

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

Why this answer

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

Exam trap

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

956
MCQeasy

A Linux VM restarts after a configuration change and now stops before the sign-in prompt. The administrator cannot use SSH. Which Azure feature should be checked first to inspect the startup process?

A.Boot diagnostics
B.Network Watcher packet capture
C.Azure Advisor
D.Managed identity
AnswerA

Boot diagnostics is the correct first step because it captures two key artifacts: a screenshot of the VM's display and a serial console log that streams from the boot process before the operating system fully loads. For a Linux VM that restarts and then fails to come up, the serial log can reveal kernel panics, failed fstab mounts, missing device drivers, or misconfigured systemd services. This data is preserved even when the VM has no network connectivity or an unreachable SSH daemon, making it the only option that directly exposes boot-stage output.

Why this answer

Boot diagnostics captures serial console output and screenshots of the VM, allowing you to view kernel messages, boot logs, and the exact point where the startup process halts. Since SSH is unavailable and the VM stops before the sign-in prompt, this is the first Azure feature to check for troubleshooting the boot sequence.

Exam trap

The trap here is that candidates often confuse Boot diagnostics with Network Watcher or assume Azure Advisor can provide real-time troubleshooting, but only Boot diagnostics gives direct access to the VM's serial console and boot logs when SSH is unavailable.

Why the other options are wrong

B

Network Watcher packet capture is used to diagnose network traffic issues, not to inspect the startup process of a VM. The question involves a VM that stops before the sign-in prompt, which is a boot or OS-level problem, not a network connectivity issue.

C

Azure Advisor provides recommendations for best practices in reliability, security, performance, and cost, but it does not offer real-time or historical access to the VM's startup logs or serial console output, which are needed to diagnose a boot failure.

D

Managed identity is used for authenticating to Azure services without storing credentials, not for troubleshooting boot or startup issues. It does not provide any mechanism to inspect the VM startup process.

When would these options actually be correct?

B

When a VM is unreachable over the network (e.g., SSH fails) and you need to capture network packets to analyze traffic patterns, identify packet loss, or detect security threats. For example, if a VM is not responding to SSH due to a firewall rule or DDoS attack, packet capture would be the correct tool.

C

A question asks: 'Which Azure service provides personalized recommendations to improve the reliability, security, and performance of your Azure resources?' In that context, Azure Advisor is the correct answer.

D

A scenario where a VM needs to access Azure Key Vault or Azure Storage without managing secrets, and the question asks for the feature that enables secure authentication without credentials.

Why candidates pick the wrong answer

B

Candidates may confuse the inability to SSH with a network problem, assuming that packet capture can help diagnose why SSH is failing, when in fact the issue is a boot failure that occurs before network services start.

C

Candidates may think Azure Advisor can help diagnose issues because it provides recommendations for VM health, but it lacks the granular, low-level boot diagnostic data required for troubleshooting startup problems.

D

Candidates may confuse managed identity with other identity-related troubleshooting tools, or think it can be used to remotely access the VM's boot process via some identity-based mechanism.

957
MCQmedium

A subnet is connected to a NAT gateway, but outbound connections to a public software update site are still leaving through a network virtual appliance. The route table contains a 0.0.0.0/0 user-defined route to the appliance, and the business wants the NAT gateway to handle internet traffic while preserving private routes to the appliance. What is the best fix?

A.Increase the priority of the NSG rules on the subnet.
B.Remove the default UDR to the appliance and leave only the private-prefix routes in place.
C.Associate the NAT gateway with the virtual network instead of the subnet.
D.Enable service endpoints on the subnet to bypass the appliance.
AnswerB

The 0.0.0.0/0 UDR is forcing all outbound traffic to the appliance, which prevents the NAT gateway from handling internet destinations. Removing that default route lets Azure use the system internet route, where the NAT gateway can provide outbound SNAT. Specific routes for private prefixes can remain and continue to send internal traffic to the appliance.

Why this answer

The 0.0.0.0/0 user-defined route (UDR) to the network virtual appliance (NVA) has a higher priority than the NAT gateway's default route, so all internet-bound traffic is forced through the appliance. Removing that UDR while keeping private-prefix routes (e.g., 10.0.0.0/8) ensures that only private traffic uses the appliance, and internet traffic follows the NAT gateway's default route. This satisfies the business requirement of using the NAT gateway for internet traffic while preserving private routes through the NVA.

Exam trap

The trap here is that candidates assume a NAT gateway automatically overrides a 0.0.0.0/0 UDR, but in Azure, UDRs always take precedence over system routes, so the explicit route to the NVA must be removed to allow the NAT gateway to handle internet traffic.

Why the other options are wrong

A

NSG rules control inbound and outbound traffic at the network layer, but they do not influence routing decisions. The issue is that the 0.0.0.0/0 UDR overrides the NAT gateway's default route, so increasing NSG priority cannot redirect traffic to the NAT gateway.

C

Associating a NAT gateway with the virtual network is not supported; NAT gateways must be associated with a specific subnet. This would not resolve the routing conflict where the 0.0.0.0/0 UDR to the appliance overrides the NAT gateway.

D

Service endpoints do not affect routing for outbound internet traffic; they only secure traffic to Azure services over the Azure backbone. The issue is a UDR overriding NAT gateway, not service access.

When would these options actually be correct?

A

In a scenario where a subnet has multiple NSGs applied and the most restrictive rule is blocking desired traffic, increasing the priority of a permissive NSG rule would allow that traffic. For example, if an NSG rule with lower priority is denying RDP, raising the priority of an allow-RDP rule would fix it.

C

In a scenario where a NAT gateway needs to provide outbound internet access for multiple subnets, and the current configuration has the NAT gateway only associated with one subnet, the correct fix would be to associate the NAT gateway with the virtual network (if supported) or create additional NAT gateways for each subnet. However, note that as of current Azure capabilities, NAT gateways are associated at the subnet level, not the virtual network level.

D

If the question asked how to ensure traffic to Azure Storage or SQL Database from a subnet goes directly to the service without leaving the Azure network, enabling service endpoints would be correct.

Why candidates pick the wrong answer

A

Candidates may confuse NSG rules with routing, thinking that stricter NSG rules could force traffic through the NAT gateway, or they may overestimate the role of NSGs in controlling outbound internet paths.

C

Candidates may think that associating the NAT gateway at a higher scope (virtual network) would apply to all subnets, simplifying management, without realizing that Azure NAT gateways are subnet-level resources and cannot be associated with a virtual network.

D

Candidates may confuse service endpoints with a method to bypass a network virtual appliance for internet traffic, not realizing service endpoints only apply to specific Azure services.

958
MCQmedium

A team manages three backend servers in one subnet. The servers are replaced periodically, so their private IP addresses change. The NSG must allow inbound traffic from the web tier without updating individual IP addresses each time. Which destination object should be used in the NSG rule?

A.Application security group
B.Service tag
C.Route table
D.Private endpoint
AnswerA

An application security group lets you group VMs by application role rather than by fixed IP address. NSG rules can reference the ASG so the rule continues to work even when the VM IPs change.

Why this answer

An Application Security Group (ASG) allows you to group backend servers logically, regardless of their private IP addresses, and reference that group as the destination in an NSG rule. When servers are replaced and their IPs change, the ASG membership is automatically updated, so the NSG rule continues to apply without manual intervention. This is the correct approach for dynamic workloads where IP addresses are not static.

Exam trap

The trap here is that candidates often confuse Application Security Groups with Network Security Groups themselves, or mistakenly think Service Tags can be used to group their own VMs, when Service Tags are only for Azure platform services or well-known IP ranges.

Why the other options are wrong

B

Service tags represent groups of Azure service IP ranges (e.g., 'AzureLoadBalancer'), not dynamic private IPs of backend servers in a subnet. They cannot be used to group arbitrary VMs whose IPs change.

C

Route tables control network traffic routing between subnets or to virtual appliances, not NSG rule destination objects for filtering traffic based on application groups.

D

Private endpoints are used to securely access Azure PaaS services over a private IP address, not to group VMs for NSG rules. They do not provide a dynamic grouping mechanism for backend servers whose IPs change.

When would these options actually be correct?

B

A question asks to allow inbound traffic from Azure Load Balancer health probes to a subnet. Using the 'AzureLoadBalancer' service tag in the NSG rule would be correct, as it covers all probe source IPs without manual updates.

C

In a scenario where you need to force traffic from the web tier to the backend servers through a network virtual appliance (e.g., firewall) for inspection, a route table with a user-defined route (UDR) pointing to the appliance would be correct.

D

An exam question asks: 'You need to ensure that a storage account is accessible only from a specific virtual network without using a public endpoint. Which Azure feature should you use?' In that case, Private Endpoint is correct.

Why candidates pick the wrong answer

B

Candidates may confuse service tags with application security groups, thinking both are used to group IPs dynamically, but service tags are for Azure services, not custom VM groupings.

C

Candidates may confuse route tables with NSGs because both are network security features in Azure, and they might think a route table can be used to define allowed traffic destinations.

D

Candidates may confuse 'private' in Private Endpoint with 'private IP addresses' of the backend servers, mistakenly thinking it can be used to reference changing IPs, when it is actually for connecting to Azure services privately.

959
MCQmedium

A branch office has a single edge device with a static public IP and must connect securely to Azure so users can reach private VMs in a virtual network. The company wants traffic encrypted across the internet and does not need point-to-site access from individual laptops. Which solution should the administrator deploy?

A.A point-to-site VPN configuration for each user laptop.
B.A site-to-site VPN gateway connection.
C.A private endpoint to each virtual machine in Azure.
D.VNet peering between the branch and Azure.
AnswerB

Site-to-site VPN is the standard option for connecting an on-premises branch network to Azure through a VPN device or edge appliance. It uses the branch's static public IP, encrypts traffic over the internet, and allows users on the branch network to reach private Azure resources such as VMs inside the VNet.

Why this answer

A site-to-site VPN gateway connection (Option B) is correct because it creates an encrypted tunnel over the internet between the branch office's edge device with a static public IP and an Azure VPN gateway, allowing users to securely access private VMs in the virtual network. This solution meets the requirement for encrypted traffic across the internet without needing point-to-site access for individual laptops, as the entire branch network is connected via the VPN tunnel.

Exam trap

The trap here is that candidates often confuse private endpoints (Option C) with site-to-site VPNs, thinking private endpoints provide secure connectivity from on-premises, but private endpoints only work for PaaS services within Azure and do not create an encrypted tunnel from a branch office to VMs.

Why the other options are wrong

A

The question specifies that the branch office has a single edge device with a static public IP and needs to connect securely to Azure for all users to reach private VMs. A point-to-site VPN is designed for individual client connections, not for connecting an entire branch network, and would require configuring each user's laptop, which is not needed.

C

Private endpoints are used for secure access to Azure PaaS services (e.g., Storage, SQL) over a private IP within a VNet, not for connecting a branch office to Azure VMs. They do not provide site-to-site connectivity or encrypt traffic across the internet.

D

VNet peering connects two virtual networks within Azure, not an on-premises branch office to Azure. It does not support site-to-site connectivity over the internet or encryption across the public internet.

When would these options actually be correct?

A

A point-to-site VPN would be correct in a scenario where remote employees need to connect from individual laptops (e.g., home offices or traveling users) to access Azure VMs, and there is no branch office with a static public IP edge device.

C

A question asks: 'An organization needs to securely access an Azure Storage account from on-premises without using the public internet. Which solution should be deployed?' In that scenario, a private endpoint would be correct.

D

VNet peering is correct when you need to connect two virtual networks in Azure (same or different regions) to enable private IP communication between resources, such as linking a hub VNet to a spoke VNet without traversing the internet.

Why candidates pick the wrong answer

A

Candidates may confuse point-to-site with site-to-site VPNs, thinking both provide secure connectivity, or they may overlook the requirement that the branch office has a single edge device and needs to connect the entire network, not individual users.

C

Candidates may confuse private endpoints with VPNs because both involve private connectivity, but private endpoints are for PaaS services, not for site-to-site or remote access to VMs.

D

Candidates may confuse VNet peering with a VPN connection, thinking it can extend an on-premises network into Azure, but peering only works between Azure VNets.

960
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

B

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

C

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

D

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

When would these options actually be correct?

B

If the question asked for a subscription that should NOT inherit production governance, such as for testing or development, placing it under Sandbox-MG would be correct.

C

This option would be correct if the question asked for a way to organize resources within a subscription without inheriting management group policies, such as when deploying a project that needs custom policies not aligned with the production baseline.

D

This option would be correct in a scenario where the question asks for the best practice to avoid inheriting any existing policies or governance baselines, such as when setting up a completely isolated subscription for testing or a new environment that should not be affected by current management group policies.

Why candidates pick the wrong answer

B

Candidates may confuse 'sandbox' with a general-purpose management group, or assume any management group automatically inherits all baselines, ignoring that governance is specific to each group.

C

Candidates may confuse resource groups with management groups, thinking that creating a resource group under a management group achieves the same inheritance, or they may underestimate the role of management groups in policy inheritance.

D

Candidates may think that placing a subscription at the tenant root is a neutral starting point that allows them to later assign policies manually, but they overlook that the question specifically requires automatic inheritance of an existing baseline, which the tenant root does not provide.

961
MCQmedium

Based on the exhibit, a VM is protected by Azure Backup. The business wants daily backups at 11:00 PM, retention of daily recovery points for 30 days, and no changes to the existing vault or VM. The current policy already backs up every day but keeps recovery points for only 7 days. What should the administrator modify?

A.Create a new VM and attach the existing backup vault to it.
B.Edit the backup policy and change daily retention to 30 days.
C.Enable soft delete on the vault.
D.Move the VM to another availability zone.
AnswerB

Editing the backup policy is the correct fix because Azure Backup applies retention settings at the policy level, not the vault or VM level. The existing schedule already creates daily recovery points, so the only missing requirement is keeping those daily points for 30 days. By modifying the daily retention duration in the policy to 30 days, you directly satisfy the stated retention goal without affecting other protected items or requiring any reconfiguration of the VM.

Why this answer

The existing backup policy already performs daily backups at 11:00 PM, but its retention setting for daily recovery points is only 7 days. By editing the policy and changing the daily retention to 30 days, the administrator meets the business requirement without creating a new VM, altering the vault, or modifying the VM itself. Azure Backup policies allow modification of retention durations independently of backup frequency, so this is a straightforward configuration change.

Exam trap

The trap here is that candidates may think they need to create a new policy or modify the VM (e.g., move it to another zone) to change retention, when in fact Azure Backup allows direct editing of the existing policy's retention duration without any other infrastructure changes.

Why the other options are wrong

A

Creating a new VM does not address the requirement to change retention for the existing VM's backups. The existing VM already has a backup policy that needs modification, not a new VM.

C

Enabling soft delete on the vault does not change the retention period of recovery points; it only protects against accidental deletion of backup data. The requirement is to extend daily retention to 30 days, which is a policy setting, not a soft delete feature.

D

Moving the VM to another availability zone does not change the backup retention period. The requirement is to extend daily recovery point retention from 7 to 30 days, which is a policy setting, not a zone change.

When would these options actually be correct?

A

This would be correct if the question stated that the existing VM is corrupted or needs to be replaced, and the new VM must be protected under the same backup vault with the desired retention policy.

C

This option would be correct if the question asked: 'The business wants to ensure that if a backup is accidentally deleted, it can be recovered within 14 days. What should the administrator configure?'

D

This option would be correct in a scenario where the VM is in an availability set or zone that is experiencing failures, and the goal is to improve application availability by distributing VMs across zones. For example, a question asking how to increase VM resilience against datacenter failures.

Why candidates pick the wrong answer

A

Candidates may think that creating a new VM is necessary to apply a new policy, not realizing that existing backup policies can be edited directly.

C

Candidates may confuse soft delete with extending retention, thinking it helps retain backups longer, but soft delete is about recovery from deletion, not retention duration.

D

Candidates might confuse availability zones with backup or disaster recovery concepts, thinking that moving zones could affect backup retention or that it's a way to protect data longer.

962
MCQmedium

A three-tier application uses separate web and app VMs. The requirement is to allow only the web tier to reach the app tier on TCP 8080. The app subnet NSG already contains a DenyAllInbound rule at priority 200. What should the administrator do?

A.Create an inbound allow rule for the web ASG to the app ASG on TCP 8080 with priority 150.
B.Move the DenyAllInbound rule to priority 300 so all traffic is blocked first.
C.Add a user-defined route from the web subnet to the app subnet.
D.Associate the web and app NICs with the same application security group.
AnswerA

NSG rules are processed in priority order, where the lowest number wins. To permit only web-tier traffic to the app tier while preserving the deny rule, the allow rule must have a higher precedence than the DenyAllInbound entry. Using application security groups keeps the rule maintainable as VMs scale in or out, and the specific source, destination, and port limit access to exactly the required flow.

Why this answer

The existing DenyAllInbound rule at priority 200 will block all traffic to the app subnet unless a higher-priority (lower number) allow rule is created. By creating an inbound allow rule for the web Application Security Group (ASG) to the app ASG on TCP 8080 with priority 150, the administrator ensures that traffic from the web tier is explicitly permitted before the deny rule is evaluated, satisfying the requirement.

Exam trap

The trap here is that candidates may think moving the deny rule to a higher priority number (lower priority) will fix the issue, but without an explicit allow rule, traffic remains blocked; or they may confuse user-defined routes (which control routing) with NSG rules (which control filtering).

Why the other options are wrong

B

Moving the DenyAllInbound rule to a higher priority (300) would not change its effect; it still denies all traffic that is not explicitly allowed. The issue is that no allow rule exists for the web-to-app traffic, so lowering the priority does not create an allow rule.

C

User-defined routes (UDRs) control traffic routing between subnets, not access control. The requirement is to allow or deny traffic based on port and protocol, which is the function of NSG rules, not UDRs.

D

Associating web and app NICs with the same ASG would allow all traffic between them, not restrict to TCP 8080 only, and would bypass the DenyAllInbound rule, violating the requirement.

When would these options actually be correct?

B

This option would be correct if the requirement was to ensure that a specific deny rule is evaluated after other rules, for example, to allow logging of denied traffic before the final deny, or to reorder rules for troubleshooting without changing the effective access.

C

A UDR would be correct if the requirement was to force-tunnel traffic from the web subnet to the app subnet through a network virtual appliance (NVA) for inspection, or to override Azure's default routing to direct traffic to a specific next hop.

D

In a scenario where all VMs in the same tier need to communicate freely (e.g., all web servers need to allow all inbound traffic from each other), associating them with the same ASG and creating an allow rule for the ASG would be correct.

Why candidates pick the wrong answer

B

Candidates may think that adjusting priority alone can fix the problem, misunderstanding that NSG rules are evaluated in priority order and that a deny rule at any priority still blocks traffic unless a higher-priority allow rule exists.

C

Candidates may confuse routing (UDRs) with access control (NSGs), thinking that directing traffic via a route implicitly allows it, or they may overcomplicate the solution by introducing routing when a simple NSG rule suffices.

D

Candidates may think that using the same ASG simplifies security by grouping resources, but they overlook that ASGs are used for source/destination filtering, not to automatically allow all traffic between members.

963
MCQeasy

Based on the exhibit, what should the administrator configure to meet the storage access requirement?

A.Enable the Microsoft.Storage service endpoint on AppSubnet and allow that subnet on the storage account.
B.Create a private endpoint and disable all public network access.
C.Create a VPN gateway between the subnet and the storage account.
D.Attach a NAT gateway to the subnet and add a route table entry.
AnswerA

A service endpoint lets the subnet reach the storage service over the Azure backbone while the storage account still uses its public endpoint. Combined with the storage account's network rules, access can be restricted to AppSubnet only.

Why this answer

Enabling the Microsoft.Storage service endpoint on AppSubnet allows traffic from that subnet to be routed directly to the storage account over the Azure backbone network, bypassing the internet. By then configuring the storage account firewall to allow access only from that subnet, the administrator ensures that only resources within AppSubnet can access the storage account, meeting the requirement for restricted access.

Exam trap

The trap here is that candidates often confuse service endpoints with private endpoints, assuming private endpoints are always required for secure access, when in fact service endpoints are simpler and sufficient for scenarios where only subnet-level restriction is needed without full network isolation.

Why the other options are wrong

B

The question requires allowing access from a specific subnet (AppSubnet) to a storage account. A private endpoint would assign a private IP to the storage account within a virtual network, but the requirement is to allow access from AppSubnet, not to disable all public access. Disabling all public network access would block other necessary connections, such as from on-premises or other services.

C

A VPN gateway connects on-premises networks to Azure, not subnets within Azure to Azure services. The requirement is to allow a subnet within the same virtual network to access a storage account, which is achieved via service endpoints or private endpoints, not a VPN.

D

A NAT gateway provides outbound internet connectivity for private subnets but does not enable private access to Azure storage from a subnet. The requirement is to allow the subnet to access the storage account, which is achieved via service endpoints or private endpoints, not NAT.

When would these options actually be correct?

B

This option would be correct in a scenario where the requirement is to ensure that the storage account is accessible only from a specific virtual network and not from the public internet, and the subnet is already configured to use the private endpoint. For example, if the question states: 'The storage account must not be accessible from the public internet, and only resources in VNet1 should be able to access it.'

C

This option would be correct if the question required connecting an on-premises network to an Azure storage account securely over the internet, such as in a hybrid scenario where on-premises servers need to access Azure Files via a site-to-site VPN.

D

If the requirement were to allow virtual machines in a private subnet to access the internet (e.g., for downloading updates) while blocking inbound traffic, attaching a NAT gateway to the subnet and adding a route table entry would be correct.

Why candidates pick the wrong answer

B

Candidates may think that a private endpoint provides the most secure access by removing public exposure, and they might overlook that the question specifically asks for allowing access from a subnet, not blocking all other access.

C

Candidates may think a VPN provides secure connectivity between any two endpoints, including subnets and storage accounts, without understanding that VPNs are for cross-premises connections, not intra-VNet communication.

D

Candidates may confuse NAT gateway with providing private connectivity to Azure services, thinking it creates a direct path, or they may overcomplicate the solution by adding network address translation instead of using simpler service endpoints.

964
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

If the contractor needed to start and stop VMs across multiple resource groups within the same subscription, assigning the role at the subscription scope would be appropriate.

C

If the question required the contractor to manage VMs across multiple subscriptions that all belong to the same management group, and the role assignment should cover all those subscriptions, then assigning at the management group scope would be correct.

D

If the question required granting permissions to start and stop only one specific VM (e.g., a critical server) and no other resources, assigning the role at the VM scope would be correct.

Why candidates pick the wrong answer

A

Candidates may think subscription scope is necessary to cover all resources, overlooking the need for least privilege and the specific constraint to limit access to a single resource group.

C

Candidates may think that using a higher scope like management group is more efficient or covers all necessary resources, but they overlook the need for least privilege and the specific constraint to limit access to only one resource group.

D

Candidates may think that assigning at the most granular scope (VM) is always best, but they overlook that the requirement covers multiple VMs in the resource group.

965
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

If the requirement was to grant Reader access only to specific resource groups within a single subscription, and future resources were not a concern, then assigning the role at each resource group scope would be appropriate.

C

If the requirement were to grant access only to resources within a specific subscription (e.g., for auditing that subscription alone) and not to others or future subscriptions, then assigning the role at that subscription scope would be correct.

D

If the requirement were to grant Reader access only to a specific resource (e.g., a virtual machine) in the first subscription, and no other resources or subscriptions, then assigning at that resource scope would be correct.

Why candidates pick the wrong answer

A

Candidates may think granular control is better and assume assigning at resource group level is sufficient, overlooking the need for scalability and future-proofing across multiple subscriptions.

C

Candidates may think that assigning at one subscription is sufficient because they overlook the need for access to all subscriptions and future ones, or they misunderstand the inheritance of management group scopes.

D

Candidates may think that assigning at a resource scope is sufficient for that resource, but overlook the need for broader access across multiple subscriptions and future resources.

966
MCQhard

An administrator is deploying a route-based site-to-site VPN gateway. The GatewaySubnet already exists, but validation fails because the public IP configuration is incompatible with the chosen gateway. Which public IP setup is required for the gateway?

A.A Basic SKU public IP with dynamic allocation.
B.A Basic SKU public IP with static allocation.
C.A Standard SKU public IP with static allocation.
D.A private IP address assigned directly from GatewaySubnet.
AnswerC

Azure VPN gateways require a Standard public IP configuration, and the address must be statically allocated. This is part of the gateway's external-facing connectivity requirement and is validated during deployment. If a Basic or dynamically assigned public IP is selected, gateway creation can fail even when GatewaySubnet already exists and is sized correctly.

Why this answer

For a route-based site-to-site VPN gateway in Azure, the gateway must use a Standard SKU public IP address with static allocation. This is because route-based VPN gateways require the public IP to be statically assigned and the Standard SKU provides the necessary features like availability zones and zone resiliency, which are not supported by the Basic SKU. The Basic SKU public IP is incompatible with route-based VPN gateways, and a private IP from the GatewaySubnet cannot serve as the public endpoint for the VPN connection.

Exam trap

The trap here is that candidates often assume any static public IP will work, overlooking the SKU requirement—Azure specifically mandates Standard SKU for route-based VPN gateways, and Basic SKU is only valid for policy-based gateways or other services like basic load balancers.

Why the other options are wrong

A

Route-based VPN gateways require a Standard SKU public IP with static allocation. Basic SKU public IPs do not support the necessary features like BGP and active-active mode for route-based VPNs.

B

For a route-based VPN gateway, Azure requires a Standard SKU public IP with static allocation. Basic SKU public IPs are not supported for route-based VPN gateways.

D

A route-based site-to-site VPN gateway requires a public IP address for internet-facing communication; a private IP from GatewaySubnet cannot be used for external connectivity.

When would these options actually be correct?

A

This option would be correct for a policy-based VPN gateway (not route-based) or for a gateway that only needs basic connectivity without BGP or active-active support, such as a simple point-to-site VPN with Basic SKU.

B

This option would be correct for a policy-based VPN gateway, which supports Basic SKU public IPs with static allocation. For example, if the question specified 'policy-based site-to-site VPN gateway', then a Basic SKU static public IP would be required.

D

This would be correct if the question asked about configuring an internal-only VPN gateway (e.g., for ExpressRoute or VNet-to-VNet) that does not require public IP, or if the scenario specified using a private endpoint for VPN.

Why candidates pick the wrong answer

A

Candidates may assume Basic SKU is sufficient because it is cheaper and commonly used for other Azure resources, or they may confuse the requirements for policy-based vs. route-based VPN gateways.

B

Candidates may confuse route-based and policy-based VPN gateways, or assume that Basic SKU is sufficient since it works for other resources like VMs, leading them to overlook the specific SKU requirement for route-based gateways.

D

Candidates may confuse GatewaySubnet with the source of the gateway's IP address, thinking a private IP is sufficient for internal routing, or overlook the public IP requirement for site-to-site VPN.

967
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

B

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

C

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

D

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

When would these options actually be correct?

B

When the requirement is to delegate resource management capabilities (e.g., create, modify, delete resources) within a subscription to a user or group, without needing to enforce specific compliance rules.

C

A resource lock on a subscription would be correct in a scenario where the goal is to prevent accidental deletion or modification of all resources in the subscription, such as protecting a production environment from administrative mistakes.

D

This option would be correct in a scenario where the requirement is to delegate the ability to add or modify tags to a specific group of users, without enforcing any compliance rules. For example, 'You need to allow the operations team to add an Environment tag to resources, but they should not have other write permissions.'

Why candidates pick the wrong answer

B

Candidates may think that assigning a role with write permissions can enforce tagging, confusing authorization with policy enforcement, or they may believe Contributor can be used to apply tags automatically.

C

Candidates may confuse resource locks with policy enforcement, thinking a lock can prevent creation of resources that don't meet criteria, but locks only protect existing resources from changes, not enforce compliance on new deployments.

D

Candidates may think that controlling tag write permissions via RBAC can enforce tagging rules, confusing authorization with policy enforcement. They might overlook that RBAC does not provide compliance reporting or block creation of noncompliant resources.

968
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

When would these options actually be correct?

A

When the question explicitly allows storing secrets in code or configuration, or when the requirement is to use the most straightforward method for authentication without considering secret management best practices.

C

When the question specifies that the application can securely store a token (e.g., in Azure Key Vault) and needs fine-grained, time-limited access to specific blobs without using managed identities.

D

If the question asked for accessing the VM itself (e.g., RDP or remote management) without storing secrets in code, enabling a local admin account would be correct, but for Azure Storage access it is not.

Why candidates pick the wrong answer

A

Candidates may think access keys are the standard way to authenticate, overlooking the security requirement to avoid storing secrets.

C

Candidates may think SAS tokens are secure because they can be scoped and expired, overlooking that they still require secret management in code or config.

D

Candidates may confuse local VM identity with Azure identity, thinking a local admin can be used to access Azure resources via some implicit trust.

969
MCQmedium

A public web application runs on two Windows Server VMs in Azure. Users connect through a single public IP on TCP 443, and the solution must distribute traffic only to healthy VMs without requiring Layer 7 features such as URL-based routing. Which Azure service should the administrator deploy?

A.Azure Application Gateway.
B.Azure Load Balancer Standard.
C.Azure Traffic Manager.
D.Azure Front Door.
AnswerB

A Standard Load Balancer is the right fit for distributing TCP 443 traffic to healthy backend VMs using a single public IP at Layer 4. It supports health probes and works well for internet-facing workloads that do not need application-level routing. Because the scenario specifically excludes Layer 7 features, the load balancer provides the simplest and most cost-effective design while still meeting availability and traffic distribution requirements.

Why this answer

Azure Load Balancer Standard is the correct choice because it operates at Layer 4 (TCP/UDP) and distributes incoming traffic across healthy VM instances based on a single public IP address and port (TCP 443). It performs health probes to ensure traffic is only sent to healthy backend VMs, and it does not require any Layer 7 features like URL-based routing, making it ideal for this scenario.

Exam trap

The trap here is that candidates often confuse Azure Application Gateway with Azure Load Balancer, assuming that any web traffic requires Layer 7 features, but the question explicitly states no Layer 7 features are needed, making the Layer 4 Load Balancer the correct and simpler choice.

Why the other options are wrong

A

Azure Application Gateway is a Layer 7 load balancer that provides URL-based routing and other HTTP/S features, which are not required here. The question specifies no Layer 7 features are needed, and only TCP 443 traffic distribution is required, making a Layer 4 load balancer (Azure Load Balancer) the correct choice.

C

Azure Traffic Manager operates at the DNS level, routing traffic based on DNS resolution, not on the health of individual VMs or ports. It cannot distribute traffic to healthy VMs on TCP 443 without Layer 7 features.

D

Azure Front Door operates at Layer 7 and provides global load balancing with HTTP/HTTPS features like URL-based routing, which are not required. The question specifies no Layer 7 features and a single public IP, making Front Door overkill and incorrect.

When would these options actually be correct?

A

An exam question where the requirement includes Layer 7 features such as URL path-based routing, SSL termination, or Web Application Firewall (WAF) for a web application. For example: 'A web application needs to route traffic based on URL paths and provide SSL offloading. Which Azure service should you use?'

C

A question requiring global DNS-based traffic distribution across multiple Azure regions, such as 'Users connect to a web app from different geographic regions, and the solution must route users to the nearest healthy endpoint based on latency or geographic location.'

D

A global web application with multiple regional deployments needs to route users to the nearest healthy endpoint based on latency or geographic location, and requires SSL offloading and URL-based routing. Azure Front Door would be the correct choice.

Why candidates pick the wrong answer

A

Candidates often associate web applications with Application Gateway because it is designed for HTTP/S traffic and offers advanced web features, leading them to overlook that a simple Layer 4 load balancer suffices when only basic TCP distribution and health checks are needed.

C

Candidates may confuse Traffic Manager's DNS-level load balancing with network-level load balancing, assuming it can handle health-based distribution for a single public IP.

D

Candidates may confuse Front Door with a standard load balancer because both can distribute traffic and provide health probes, overlooking that Front Door is a global Layer 7 service with advanced routing capabilities.

970
MCQmedium

A company plans a new spoke virtual network that must be peered to an existing hub VNet using 10.0.0.0/16. The spoke will need two subnets: one sized for about 120 VMs and another for about 40 VMs. The new address space must not overlap the hub or the on-premises range 10.1.0.0/16. Which VNet address space is the best choice?

A.10.0.1.0/24
B.10.1.0.0/22
C.10.2.0.0/22
D.10.0.0.0/24
AnswerC

This address space does not overlap the hub or on-premises ranges and is large enough to carve out two usable subnets for the workload. A /22 gives room for multiple subnets and future growth, which is important when planning a spoke that needs to host dozens or hundreds of VMs. It is a practical choice for peering compatibility and capacity.

Why this answer

(10.2.0.0/22) is correct because it provides a non-overlapping address space with the hub VNet (10.0.0.0/16) and on-premises (10.1.0.0/16). The /22 prefix offers 1024 IP addresses, which is sufficient for subnets supporting 120 VMs and 40 VMs, while avoiding any overlap with the existing ranges.

Exam trap

The trap here is that candidates often overlook the hub VNet's address space (10.0.0.0/16) and incorrectly assume a smaller subnet like 10.0.1.0/24 is safe, not realizing it falls within the hub's larger CIDR range.

Why the other options are wrong

A

Option A (10.0.1.0/24) overlaps with the hub VNet address space 10.0.0.0/16, which is not allowed for peering.

B

Option B (10.1.0.0/22) overlaps with the on-premises range 10.1.0.0/16, which is explicitly prohibited in the question.

D

Option D (10.0.0.0/24) overlaps with the hub VNet address space 10.0.0.0/16, which violates the requirement that the new address space must not overlap the hub.

When would these options actually be correct?

A

If the hub VNet used a different address space (e.g., 10.1.0.0/16) and the on-premises range was 10.2.0.0/16, then 10.0.1.0/24 would be a non-overlapping choice for a small spoke.

B

If the on-premises range were different (e.g., 10.3.0.0/16) and the hub VNet used 10.0.0.0/16, then 10.1.0.0/22 would be a non-overlapping choice that provides sufficient IP addresses for the required subnets.

D

This option would be correct if the hub VNet used a different address space (e.g., 10.1.0.0/16) and the spoke needed a small subnet (e.g., for 120 VMs) with no on-premises overlap, and the question asked for a minimal non-overlapping /24 within 10.0.0.0/16.

Why candidates pick the wrong answer

A

Candidates see a /24 subnet and think it's sufficient for the required VMs, ignoring the overlap with the hub's /16 range.

B

Candidates may mistakenly think that because 10.1.0.0/22 is a smaller subnet within the 10.1.0.0/16 range, it does not overlap, or they overlook the on-premises range constraint.

D

Candidates may think 10.0.0.0/24 is a subset of the hub's 10.0.0.0/16 and assume it's allowed, not realizing that peering requires non-overlapping address spaces.

971
MCQmedium

Based on the exhibit, which deployment change best meets the resilience requirement for the application VMs?

A.Keep both VMs in the same availability set to spread them across update domains only.
B.Place each VM in a different availability zone and keep the load balancer in front.
C.Deploy both VMs into a proximity placement group to reduce latency between them.
D.Move the VMs into a single availability set and add more managed disks for redundancy.
AnswerB

Availability zones provide isolation across datacenters within the same region. By placing the two VMs in different zones, the workload can continue if one zone or datacenter becomes unavailable. The load balancer can direct traffic to the surviving VM. This design matches the stated requirement more closely than an availability set, which only spreads VMs across fault and update domains inside a single datacenter cluster.

Why this answer

Deploying each VM into a different availability zone ensures that the VMs are physically separated across distinct data centers within an Azure region, protecting against zone-level failures. The load balancer in front distributes traffic across the VMs, providing high availability even if one zone goes offline. This meets the resilience requirement by eliminating a single point of failure at the data center level.

Exam trap

The trap here is that candidates often confuse availability sets (which protect against rack-level failures within a single data center) with availability zones (which protect against full data center outages), leading them to choose Option A thinking it provides sufficient resilience.

Why the other options are wrong

A

An availability set only protects against rack-level failures and update domain reboots, not against a full datacenter outage. The question's resilience requirement demands protection against a zonal failure, which only availability zones provide.

C

The question focuses on resilience (high availability), not latency. A proximity placement group reduces network latency but does not protect against zonal or rack-level failures, so it fails to meet the resilience requirement.

D

Adding more managed disks does not provide VM resilience; it only increases storage redundancy. The question requires application VM resilience, which is about compute availability, not disk redundancy.

When would these options actually be correct?

A

If the requirement were to protect against planned maintenance or hardware failures within a single datacenter, and the VMs must remain in the same datacenter for low latency, then placing them in the same availability set would be correct.

C

This option would be correct in a scenario where the requirement is to minimize network latency between VMs for a tightly coupled, low-latency application, such as a high-performance computing (HPC) workload, and resilience is not the primary concern.

D

This option would be correct in a scenario where the requirement is to ensure data durability and high availability for the managed disks themselves, such as when using Azure Site Recovery or backup policies that require multiple disks for redundancy.

Why candidates pick the wrong answer

A

Candidates often confuse availability sets with availability zones, thinking that spreading across update domains provides sufficient resilience for all failure scenarios, or they underestimate the scope of a datacenter outage.

C

Candidates may confuse 'resilience' with 'performance' or think that grouping VMs close together improves availability, not realizing that proximity placement groups actually increase the risk of simultaneous failure.

D

Candidates may confuse disk redundancy with VM resilience, thinking that more disks automatically make the application more resilient, or they may overgeneralize the concept of redundancy from storage to compute.

972
Multi-Selectmedium

A data-processing app reads blobs immediately after upload, and operations do not want any rehydration delay. Which three access tiers can be read directly? Select three.

Select 3 answers
A.Hot
B.Cool
C.Cold
D.Archive
E.Premium
AnswersA, B, C

Hot is an online access tier optimized for frequent read and write operations. Blobs in Hot remain immediately accessible after upload, because no rehydration or lifecycle transition is needed before data is served. This makes Hot a safe default answer, though the scenario does not require optimizing for the lowest cost.

Why this answer

The Hot, Cool, and Cold access tiers are designed for online data access, meaning blobs stored in these tiers can be read immediately without any rehydration delay. This is because the data is always stored on high-throughput, low-latency media and is immediately available for read operations. In contrast, the Archive tier requires a rehydration process (which can take hours) before data can be accessed, making it unsuitable for scenarios where blobs must be read immediately after upload.

Exam trap

The trap here is that candidates often confuse the Cold tier with the Archive tier, assuming Cold also requires rehydration, or they mistakenly think the Premium tier is an access tier like Hot/Cool/Cold, when in fact it is a performance tier for premium block blob accounts and not a blob-level access tier.

Why the other options are wrong

D

Archive tier requires rehydration (up to 15 hours) to read blobs, which contradicts the requirement for no rehydration delay.

E

Premium tier is not a general-purpose access tier for blob storage; it is a performance tier for Azure Files or for premium block blob storage, which does not support direct read access in the same way as Hot, Cool, or Cold tiers. The question asks for access tiers that can be read directly without rehydration, and Premium is not one of the three standard access tiers (Hot, Cool, Cold) that offer immediate read access.

When would these options actually be correct?

D

If the question asked 'Which tier is used for long-term backup with lowest storage cost, accepting rehydration delay?' then Archive would be correct.

E

This option would be correct in a question about selecting a storage tier for a high-performance application requiring low latency and high throughput, such as a database or real-time analytics workload, where the Premium tier (premium block blob storage) is the appropriate choice.

Why candidates pick the wrong answer

D

Candidates may think Archive is directly readable because it's a storage tier, but they overlook the rehydration requirement for read access.

E

Candidates may confuse Premium with a high-performance access tier that also allows immediate reads, or they may think that because Premium offers better performance, it must be one of the tiers that can be read directly, overlooking that the question specifically refers to the three standard access tiers (Hot, Cool, Cold) that are designed for direct read access without rehydration.

973
MCQeasy

In Log Analytics, you need to find AzureActivity records for VM stop or deallocate operations from the last 24 hours. Which query should you use?

A.AzureActivity | where TimeGenerated > ago(24h) | where OperationNameValue has_any ("Microsoft.Compute/virtualMachines/deallocate/action", "Microsoft.Compute/virtualMachines/powerOff/action")
B.AzureActivity | summarize count() by OperationNameValue
C.AzureActivity | where ResourceType == "Microsoft.Compute/virtualMachines" | project TimeGenerated, ResourceGroup
D.AzureActivity | sort by TimeGenerated asc
AnswerA

This is correct because it first uses TimeGenerated > ago(24h) to restrict the result set to activity from the last day, then applies has_any on OperationNameValue to match exactly the two control-plane operations that indicate a VM stop: deallocate/action and powerOff/action. The has_any operator performs a case-insensitive substring match across a set of literals, so it reliably captures these specific operation names for the AzureActivity table.

Why this answer

It uses the `has_any` operator to filter AzureActivity records for the exact operation names corresponding to VM stop (powerOff) and deallocate actions, and it restricts the time range to the last 24 hours using `ago(24h)`. This directly matches the requirement to find VM stop or deallocate operations within the specified timeframe.

Exam trap

The trap here is that candidates may confuse the `has_any` operator with `contains` or `in`, or forget to include the time filter, leading them to select options that either don't filter by operation type or don't restrict the time window.

Why the other options are wrong

B

This query summarizes the count of all operations but does not filter for VM stop/deallocate operations or the last 24 hours, so it fails to meet the question's requirements.

C

This query filters by ResourceType but does not filter by time (last 24 hours) or by specific operations (stop/deallocate), so it returns all VM records regardless of time or operation, not meeting the requirement.

D

This query only sorts records by TimeGenerated in ascending order without filtering for the last 24 hours or specific VM stop/deallocate operations, so it returns all AzureActivity records sorted by time, not the required subset.

When would these options actually be correct?

B

When the question asks 'How many AzureActivity records exist for each OperationNameValue?' without time or resource type filters, this query would be correct.

C

This query would be correct if the question asked: 'Find all AzureActivity records for virtual machines, showing only the time generated and resource group.'

D

This query would be correct if the question asked: 'You need to list all AzureActivity records in chronological order from oldest to newest.'

Why candidates pick the wrong answer

B

Candidates may think summarizing counts is a quick way to see operations, but they overlook the specific filtering needed for time and operation type.

C

Candidates may think filtering by ResourceType is sufficient and overlook the need for time and operation filters, or they may confuse 'project' with filtering operations.

D

Candidates may think sorting by time is necessary to find recent events, but they overlook the need for time filtering and operation-specific filtering.

974
MCQmedium

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

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

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

Why this answer

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

Exam trap

The trap here is that candidates often confuse system-assigned and user-assigned managed identities, incorrectly assuming that system-assigned identities can be shared across VMs or persist after VM deletion, when in fact only user-assigned identities are independent, reusable resources.

Why the other options are wrong

A

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

B

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

D

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

When would these options actually be correct?

A

When the requirement is for a single VM to access Azure resources without managing credentials, and the identity should be automatically deleted when the VM is deleted (e.g., a temporary VM for a specific task).

B

When the requirement is to authenticate an on-premises application or a service running outside Azure, and the identity must be managed independently of Azure resources, using a service principal with certificate-based authentication is appropriate.

D

A shared access signature would be correct if the question asked for a time-limited, delegated access token to grant a client (e.g., a script) direct access to a specific storage account or Key Vault without requiring an Azure AD identity, such as when the client cannot use managed identities.

Why candidates pick the wrong answer

A

Candidates may think system-assigned managed identities are simpler to set up and assume they can be reused, not realizing they are tied to the VM's lifecycle and cannot be shared.

B

Candidates may think a service principal is the standard way to assign permissions to applications, and using a certificate seems secure and reusable, but they overlook the management overhead and the fact that managed identities are designed for Azure resources.

D

Candidates may confuse SAS with a form of identity because it provides access without a password, or they might think it can be reused across VMs by copying the token, overlooking that SAS is resource-specific and not an Azure AD identity object.

975
Multi-Selecthard

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

C

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

D

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

E

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

When would these options actually be correct?

C

In a scenario where the Automation account is not recreated, and you need to authenticate to Azure resources using a service principal with a client secret that is securely stored and rotated, this option would be correct. For example, when using a long-lived Automation account with regular secret rotation, storing the secret in an encrypted variable is a valid approach.

D

If the Automation account is never deleted or recreated, or if the question states that the identity must be automatically managed and deleted with the account, then a system-assigned managed identity would be the correct choice.

E

If the question required authenticating to Azure Storage specifically and allowed using a shared key, and the Automation account was not being recreated (so the stored key would remain valid), then storing a storage account key in a runbook asset could be acceptable.

Why candidates pick the wrong answer

C

Candidates may think that storing the secret in an encrypted variable is secure and independent, but they overlook that the variable is tied to the Automation account and would be lost upon recreation, violating the 'continue to work after rebuild' requirement.

D

Candidates may assume that system-assigned managed identities are automatically reusable after recreation because they are managed by Azure, but they overlook that the identity's object ID changes upon recreation, invalidating existing role assignments.

E

Candidates may think storing a key in an Automation variable is a secure way to avoid hardcoding secrets, but they overlook that the key itself is a static secret that must be managed and does not support the identity lifecycle requirement.

Page 12

Page 13 of 14

Page 14