Courseiva

AZ-104 (AZ-104) — Questions 76150

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

Page 1

Page 2 of 14

Page 3
76
MCQeasy

A storage account must stay reachable through its public endpoint, but only Azure workloads in AppSubnet should be allowed to access it. No private IP is required. What should you configure?

A.A private endpoint in AppSubnet.
B.A service endpoint on AppSubnet and a storage firewall VNet rule.
C.A VPN gateway between AppSubnet and the storage account.
D.A public IP address on the storage account.
AnswerB

A service endpoint on AppSubnet routes traffic from that subnet to the storage account over the Microsoft backbone while still using the storage account's public endpoint. Adding a corresponding storage firewall VNet rule restricts access so that only requests originating from AppSubnet are allowed, even though the public endpoint remains reachable. This combination satisfies the requirement because the URL/endpoint does not change and no private IP address is introduced, while the firewall rule provides access control based on the subnet's virtual network identity.

Why this answer

A service endpoint on AppSubnet extends the Azure backbone network to the subnet, allowing traffic to the storage account's public endpoint without a private IP. The storage firewall VNet rule then restricts access to only traffic originating from that specific subnet, meeting the requirement of public endpoint reachability with Azure workload-only access.

Exam trap

The trap here is that candidates confuse private endpoints (which remove public endpoint access) with service endpoints (which preserve public endpoint access while restricting traffic), leading them to choose the private endpoint option despite the explicit requirement to keep the public endpoint reachable.

Why the other options are wrong

A

A private endpoint assigns a private IP to the storage account, which contradicts the requirement that 'no private IP is required' and that the storage account must stay reachable through its public endpoint.

C

A VPN gateway is used for site-to-site or point-to-site connectivity over the internet, not for allowing Azure workloads in a subnet to access a storage account via its public endpoint. It adds unnecessary complexity and cost, and does not provide the required network-level access control.

D

The storage account already has a public endpoint; assigning a public IP address is not a configuration option for Azure storage accounts and does not restrict access to AppSubnet.

When would these options actually be correct?

A

If the question required that the storage account should not be accessible via the public endpoint at all, and only be reachable from AppSubnet using a private IP, then a private endpoint in AppSubnet would be the correct configuration.

C

A VPN gateway would be correct if the question required connecting an on-premises network to Azure to access a storage account securely over the internet, or if the storage account needed to be accessed from a remote network without using the public internet.

D

If the question asked for a way to make a storage account accessible via a specific public IP address from on-premises or another cloud, and the storage account firewall allowed that IP, then configuring a public IP (e.g., on a VM or VPN device) could be part of the solution. However, Azure storage accounts do not have a configurable public IP address.

Why candidates pick the wrong answer

A

Candidates may confuse private endpoints with service endpoints, thinking both provide secure access from a subnet, but private endpoints remove public access and assign a private IP, which is not needed here.

C

Candidates might think a VPN gateway is needed to securely connect a subnet to a storage account, confusing it with scenarios where private connectivity is required across networks.

D

Candidates may think that assigning a public IP to the storage account would allow controlling access, confusing storage account public endpoint with a resource that can have a public IP assigned.

77
Multi-Selecteasy

Which two authentication methods let an app access blob data without storing the storage account key on the machine? Select two.

Select 2 answers
A.Microsoft Entra ID authorization with an appropriate Azure RBAC role.
B.A user delegation SAS generated through Microsoft Entra ID.
C.The storage account access key.
D.A service SAS generated directly from the account key.
E.Anonymous public access to the container.
AnswersA, B

This method is correct because Microsoft Entra ID integrates with Azure RBAC to grant granular permissions for blob data. The app authenticates via OAuth 2.0, obtains a token for a user, group, service principal, or managed identity, and then that token is used to enforce role assignments like Storage Blob Data Reader or Contributor. This eliminates the need to store or rotate shared secrets, and it automatically supports conditional access, auditing, and centralized identity management.

Why this answer

Microsoft Entra ID authorization with an appropriate Azure RBAC role (e.g., Storage Blob Data Contributor) allows an app to authenticate to blob storage using OAuth 2.0 tokens, eliminating the need to store the storage account key on the machine. Option B is correct because a user delegation SAS is signed with Microsoft Entra ID credentials and can be generated without the account key, providing time-limited, scoped access to blob data.

Exam trap

The trap here is that candidates often confuse a service SAS (which still requires the account key) with a user delegation SAS (which does not), or they mistakenly think that anonymous access is a valid authentication method for an app.

Why the other options are wrong

C

The storage account access key provides full control over the storage account, but it must be stored on the machine to authenticate requests, which violates the requirement of not storing the key on the machine.

D

A service SAS generated from the account key still requires the storage account key to create it, and the key is stored on the machine or in the code, violating the constraint of not storing the key.

E

Anonymous public access allows anyone to read blob data without authentication, but it does not involve any authentication method for an app; the app would simply access the data without storing a key, but the question requires an authentication method, not the absence of one.

When would these options actually be correct?

C

This option would be correct in a question that asks for a method to authenticate access to blob data when the application can securely store the key (e.g., in Azure Key Vault) or when the question does not prohibit storing the key on the machine.

D

If the question asked 'Which method allows an app to access blob data with time-limited access and without storing the account key on the machine, but the app can retrieve the key from a secure vault at runtime?' then a service SAS generated from the account key (retrieved from a vault) would be correct.

E

If the question were 'Which method allows public read access to blob data without requiring authentication?' then anonymous public access would be correct, as it enables unauthenticated access to containers configured for public access.

Why candidates pick the wrong answer

C

Candidates often default to using access keys because they are familiar and simple, overlooking the explicit constraint in the question about not storing the key on the machine.

D

Candidates may think a SAS token itself does not expose the account key, so it avoids storing the key, but they overlook that generating a service SAS requires the account key to be present at creation time.

E

Candidates may think anonymous access avoids storing keys, but they overlook that the question asks for authentication methods; anonymous access is not an authentication method but a permission setting that bypasses authentication entirely.

78
MCQmedium

The team needs alerts for VM CPU and storage capacity thresholds, but they want to keep telemetry ingestion costs as low as possible. Which approach is best?

A.Use Azure Monitor metric alerts for the threshold conditions.
B.Send all VM diagnostic logs to Log Analytics and create only log search alerts.
C.Create a Recovery Services vault backup policy with a short retention period.
D.Assign Azure Policy to the subscription to audit CPU and storage trends.
AnswerA

Metric alerts evaluate native platform metrics directly and do not require broad log ingestion, so they are usually the most cost-aware option for threshold monitoring. For CPU and capacity-type measurements that are available as metrics, this approach gives near real-time alerting with minimal telemetry overhead. It fits the requirement to monitor multiple resources while keeping data collection costs down.

Why this answer

Azure Monitor metric alerts are the most cost-effective approach because they evaluate lightweight, pre-collected platform metrics (e.g., CPU percentage, disk read/write operations) at regular intervals without ingesting or storing raw log data. This avoids the ingestion and retention costs associated with sending diagnostic logs to a Log Analytics workspace, making it ideal for simple threshold-based monitoring of VM CPU and storage capacity.

Exam trap

The trap here is that candidates often assume Log Analytics is always the right choice for alerts because it provides richer data, but they overlook the cost implications of ingesting and storing diagnostic logs for simple threshold monitoring, where metric alerts are both sufficient and far cheaper.

Why the other options are wrong

B

Sending all VM diagnostic logs to Log Analytics incurs significant data ingestion costs, which contradicts the goal of keeping telemetry ingestion costs low. Log search alerts also require continuous log ingestion, increasing expenses compared to metric alerts that use pre-aggregated data.

C

A Recovery Services vault backup policy with a short retention period does not provide alerts for VM CPU and storage capacity thresholds; it only manages backup retention, not real-time performance monitoring.

D

Azure Policy audits compliance but does not generate real-time alerts for CPU or storage thresholds; it only evaluates and reports configuration drift, not performance metrics.

When would these options actually be correct?

B

This option would be correct if the question required detailed log-based analysis (e.g., custom queries, error patterns) and cost was not a primary constraint, or if the organization already had a Log Analytics workspace with unused data capacity.

C

This option would be correct if the question asked for a cost-effective way to ensure VM backups are retained for a minimal duration to reduce storage costs while meeting compliance requirements.

D

When the requirement is to enforce compliance rules (e.g., ensuring all VMs have a specific tag or disk encryption) and audit historical configuration changes, not to alert on performance thresholds.

Why candidates pick the wrong answer

B

Candidates may assume that Log Analytics provides richer alerting capabilities and overlook the cost implications of ingesting all diagnostic logs, especially when the question emphasizes cost minimization.

C

Candidates may confuse backup policies with monitoring solutions, thinking that short retention reduces costs associated with alerting data, or they may misinterpret 'thresholds' as backup-related limits.

D

Candidates may confuse Azure Policy's auditing capability with monitoring and alerting, thinking policy evaluation can trigger alerts for resource utilization trends.

79
MCQhard

An operations team wants to know when Azure marks a specific storage account unhealthy because of a regional platform issue. They do not want to depend on a custom metric, a Log Analytics query, or any polling script. What should they create?

A.A metric alert on storage capacity because platform issues always reduce capacity first
B.A resource health alert for the storage account
C.A log alert that searches AzureDiagnostics for unavailable status codes
D.An activity log alert on every write operation to the storage account
AnswerB

Azure Resource Health provides a rolling health signal for a specific resource, such as a storage account, and explicitly reports when the Azure platform declares it unhealthy due to outages or degradation. This alert directly matches the requirement to be notified the moment Azure marks the resource unhealthy, without depending on customer-generated metrics or log ingestion. Resource Health is the authoritative, event-driven source for this exact status.

Why this answer

A resource health alert is the correct choice because it directly monitors the health of a specific Azure resource, such as a storage account, and triggers when Azure detects a platform-level issue that marks the resource as unhealthy. This alert does not require custom metrics, Log Analytics queries, or polling scripts, aligning perfectly with the team's requirement to avoid those dependencies. Resource health alerts are designed to notify you of service-impacting events originating from the Azure platform, not from your own configuration or usage patterns.

Exam trap

The trap here is that candidates often confuse resource health alerts with activity log alerts or metric alerts, mistakenly thinking that monitoring operational metrics or logging errors can detect platform-level unavailability, when in fact resource health alerts are the only native, dependency-free mechanism for this specific scenario.

Why the other options are wrong

A

Storage capacity alerts do not indicate platform-level health; a regional platform issue may not affect capacity, and capacity reduction is not a reliable indicator of service unavailability.

C

The question explicitly states the team does not want to depend on a Log Analytics query or any polling script. A log alert on AzureDiagnostics requires a Log Analytics workspace and query, violating this constraint.

D

An activity log alert on every write operation would notify on each write, not on platform-level health issues. It does not detect regional platform unavailability and would generate excessive noise.

When would these options actually be correct?

A

A metric alert on storage capacity would be correct if the question asked for a way to be notified when storage usage exceeds a threshold (e.g., 80% capacity) to plan for scaling or cleanup.

C

A log alert would be correct if the question allowed using Log Analytics and required detecting specific error codes (e.g., 503) from storage account logs, without needing real-time resource health status.

D

This would be correct if the question asked for a way to be notified whenever a specific administrative operation (e.g., a write to the storage account) occurs, such as for auditing or compliance purposes, without using custom metrics or queries.

Why candidates pick the wrong answer

A

Candidates may incorrectly assume that platform issues always manifest as capacity changes, or they may confuse capacity metrics with health metrics.

C

Candidates may think log alerts are the most direct way to detect unhealthy status codes, overlooking the requirement to avoid Log Analytics queries and the simpler Resource Health alert option.

D

Candidates may think that monitoring all write operations will capture any failure, but they overlook that platform health issues are not write operations and that this alert would be too granular and noisy.

80
MCQmedium

Based on the exhibit, an Azure Policy with the Modify effect was assigned to add Environment=Prod to resources in RG-Prod. New resources get the tag, but existing virtual machines still do not have it. What should the administrator do next?

A.Create a remediation task for the policy assignment.
B.Move the policy assignment to the subscription scope.
C.Change the policy effect from Modify to Deny.
D.Add a CanNotDelete lock to RG-Prod.
AnswerA

Modify can add or update the tag for future deployments, but existing resources usually need remediation so the policy engine can apply the change to what is already deployed. A remediation task is the correct next step.

Why this answer

The Modify effect in Azure Policy automatically applies to new resources during creation or update, but it does not retroactively fix existing non-compliant resources. To apply the tag to existing virtual machines, the administrator must create a remediation task for the policy assignment, which triggers a deployment to modify those resources.

Exam trap

The trap here is that candidates often assume Azure Policy automatically remediates all resources at assignment time, but in reality, only new or updated resources are affected unless a remediation task is explicitly created.

Why the other options are wrong

B

The policy is already assigned at the resource group scope (RG-Prod), and moving it to the subscription scope would not trigger remediation for existing resources; it would only apply to new resources in the subscription. The issue is that existing VMs lack the tag, which requires a remediation task, not a scope change.

C

Changing the effect to Deny would block creation or modification of resources that lack the tag, but it does not apply the tag to existing resources. The question specifically asks how to fix existing VMs that are missing the tag, which requires a remediation task, not a policy change.

D

Adding a CanNotDelete lock to RG-Prod prevents deletion of resources but does not apply tags to existing virtual machines. The issue is that existing resources are not retroactively updated by the Modify effect, which requires a remediation task.

When would these options actually be correct?

B

A policy assignment at the resource group level is not applying to resources in other resource groups, and the administrator needs to enforce the same policy across all resource groups in the subscription. Moving the assignment to the subscription scope would ensure consistent application.

C

This option would be correct if the goal was to prevent any new resources from being created without the required tag, and the question stated that existing resources are already compliant or not a concern. For example, 'You need to ensure all new resources in RG-Prod automatically have the Environment=Prod tag, but existing resources are already tagged correctly.'

D

An administrator needs to prevent accidental deletion of critical resources in a resource group. A CanNotDelete lock would be the correct action to ensure that no one can delete the resources, even if they have delete permissions.

Why candidates pick the wrong answer

B

Candidates may think that a broader scope (subscription) would automatically fix existing resources, not realizing that the Modify effect only applies to new or updated resources unless a remediation task is run.

C

Candidates may think that changing the effect to Deny will force compliance by blocking non-compliant resources, but they overlook that Deny only affects new or updated resources, not existing ones. They confuse enforcement with remediation.

D

Candidates may confuse resource locks with policy remediation, thinking that a lock can enforce compliance or apply tags, when locks only control deletion or modification permissions.

81
MCQmedium

Based on the exhibit, a help desk engineer cannot RDP from an approved admin subnet to a VM in Azure. What change should the administrator make so the connection is allowed?

A.Change the deny rule to use UDP instead of TCP.
B.Move Allow-RDP-Admin to a priority lower than 100.
C.Add the VM NIC to an application security group and leave the rules unchanged.
D.Delete the default AllowVNetInBound rule.
AnswerB

NSG rules are processed in priority order, and the lowest number wins. Because the deny rule at priority 100 matches first, the allow rule at 200 never takes effect. Moving the allow rule to a smaller number than 100 lets the approved subnet match the permit rule before the deny rule is evaluated.

Why this answer

The exhibit shows a deny rule with priority 100 that blocks all inbound traffic from the approved admin subnet, and an allow rule for RDP with a priority lower than 100 (e.g., 200). Since Azure Network Security Group (NSG) rules are evaluated in priority order (lowest number first), the deny rule at priority 100 is evaluated before the allow rule at a lower priority, thus blocking the RDP connection. To allow the RDP traffic, the administrator must move the Allow-RDP-Admin rule to a priority lower than 100 (e.g., 90) so it is evaluated before the deny rule.

Exam trap

The trap here is that candidates assume allow rules always override deny rules, but in Azure NSGs, the rule with the lowest priority number (highest precedence) wins, regardless of whether it is an allow or deny rule.

Why the other options are wrong

A

RDP uses TCP, not UDP. Changing the deny rule to UDP would not affect TCP-based RDP traffic, so the connection would still be blocked.

C

Adding the VM NIC to an application security group does not change the existing NSG rules; the deny rule with priority 100 still blocks RDP traffic from the admin subnet, so the connection remains denied.

D

Deleting the default AllowVNetInBound rule would block all intra-VNet traffic, which is not required to allow RDP from the admin subnet. The issue is that the high-priority deny rule (priority 100) is blocking RDP before the Allow-RDP-Admin rule (priority 200) is evaluated.

When would these options actually be correct?

A

If the question involved a protocol that uses UDP (e.g., DNS, DHCP) and a deny rule was blocking it, changing the rule to UDP would allow the traffic.

C

In a scenario where the VM NIC has no NSG assigned and the subnet NSG has an allow rule for an application security group, adding the NIC to that ASG would apply the allow rule and permit RDP.

D

In a scenario where the default AllowVNetInBound rule is explicitly blocking desired traffic (e.g., due to a misconfiguration or security requirement to isolate subnets), deleting it could be correct. For example, if the question states that VNet-internal traffic must be restricted for compliance, and the admin needs to remove the default rule to enforce custom rules.

Why candidates pick the wrong answer

A

Candidates may confuse RDP's transport protocol or think that changing protocol type in a rule can bypass the block, misunderstanding that RDP relies on TCP.

C

Candidates may think application security groups simplify rule management and automatically override deny rules, not realizing that explicit deny rules with higher priority still take effect.

D

Candidates may think that removing default rules is a quick fix to allow traffic, not realizing that the default rule is permissive and its deletion would cause more connectivity issues, or they may confuse it with a blocking rule.

82
MCQmedium

A production storage account must remain available for updates, but administrators want to prevent accidental deletion during maintenance windows. Which lock should be applied to the storage account?

A.ReadOnly lock at the storage account scope.
B.CanNotDelete lock at the storage account scope.
C.CanNotDelete lock at the subscription scope.
D.Azure Policy deny assignment on all storage account operations.
AnswerB

CanNotDelete is the correct lock because it prevents deletion while still allowing typical configuration updates. That matches the requirement to protect the storage account from accidental removal without freezing all management operations. Applying it directly at the resource scope keeps the protection targeted to the specific storage account.

Why this answer

The CanNotDelete lock at the storage account scope prevents the storage account from being deleted while still allowing all read and update operations. This meets the requirement of keeping the storage account available for updates while preventing accidental deletion during maintenance windows.

Exam trap

The trap here is that candidates often confuse the ReadOnly lock with preventing deletion, but ReadOnly also blocks updates, which fails the requirement; they may also incorrectly assume a subscription-scoped lock is necessary for a single resource, ignoring the principle of least privilege.

Why the other options are wrong

A

A ReadOnly lock prevents any updates to the storage account, but the question requires the account to remain available for updates. Thus, it does not meet the requirement of allowing updates while preventing deletion.

C

A CanNotDelete lock at the subscription scope would prevent deletion of all resources in the subscription, not just the storage account, and is overly broad for the requirement of preventing accidental deletion of a specific storage account during maintenance.

D

Azure Policy deny assignments block operations based on policy rules, but they do not prevent accidental deletion specifically; they are for enforcing compliance across resources, not for protecting a single resource from deletion during maintenance.

When would these options actually be correct?

A

If the question asked for a lock that prevents any modifications (including updates) to a resource, such as securing a configuration storage account from accidental changes during maintenance, a ReadOnly lock at the storage account scope would be correct.

C

This option would be correct if the question asked for a lock that prevents deletion of all resources in a subscription during a maintenance window, or if the requirement was to protect an entire resource group or subscription from accidental deletion.

D

A question where the requirement is to prevent all storage account operations (including updates) across multiple subscriptions or enforce organizational compliance rules, not just prevent deletion of a specific resource.

Why candidates pick the wrong answer

A

Candidates may confuse 'prevent accidental deletion' with 'prevent all changes,' and ReadOnly locks are a common solution for protecting resources from unintended modifications.

C

Candidates may think applying a lock at a higher scope (subscription) is more effective or simpler, not realizing it affects all resources and may conflict with other administrative tasks.

D

Candidates may think a policy-based deny is a stronger lock, but they overlook that the question specifically asks for preventing accidental deletion while allowing updates, which is exactly what CanNotDelete does.

83
Multi-Selecteasy

A VM must be backed up every day, and backups must be retained for several days after creation. Which two settings are configured in an Azure Backup policy? Select two.

Select 2 answers
A.Backup schedule
B.Retention rules
C.Network security group rules
D.Private DNS zone records
E.Availability set placement
AnswersA, B

In an Azure Backup policy, the backup schedule is the component that dictates when a snapshot of the VM is taken, typically with a daily frequency. For example, you can set the policy to run at 2:00 AM UTC every day, and this triggers the Azure Backup extension to capture a consistent recovery point. Without a correctly configured schedule, no backups will be created, regardless of retention rules, so this is a required part of any backup solution.

Why this answer

An Azure Backup policy requires a backup schedule to define when the backup job runs (e.g., daily at a specific time). Option B is correct because retention rules specify how long each backup recovery point is kept (e.g., 7 days for daily backups, 30 days for weekly). Together, these two settings form the core of a backup policy, ensuring both the timing and lifespan of backups are controlled.

Exam trap

The trap here is that candidates confuse backup policies with other VM management features like networking or availability, but Azure Backup policies strictly require only a schedule and retention rules to function.

Why the other options are wrong

C

Network security group rules control inbound/outbound traffic to Azure resources, not backup scheduling or retention. Azure Backup policies only include backup schedule and retention rules.

D

Private DNS zone records are used for custom domain name resolution within a virtual network, not for configuring backup retention or scheduling. Azure Backup policies only involve backup schedule and retention rules.

E

Availability set placement is a VM high-availability configuration, not a backup policy setting. Backup policies define when backups occur and how long they are retained, not VM placement.

When would these options actually be correct?

C

In a question about securing a VM's network traffic, such as 'Which Azure resource filters traffic to a VM based on source IP and port?', Network Security Group rules would be the correct answer.

D

In a question about configuring custom DNS resolution for Azure resources that need to resolve a private domain name within a VNet, such as 'How do you enable name resolution for a private endpoint?'

E

In a question about configuring high availability for a VM, such as 'Which setting ensures VMs are distributed across fault domains to maintain availability during maintenance?', availability set placement would be the correct answer.

Why candidates pick the wrong answer

C

Candidates may confuse backup policies with network security, thinking that backup involves network rules to allow backup traffic, but Azure Backup handles this automatically.

D

Candidates may confuse 'backup policy' with 'network policy' or think that DNS records are needed to ensure backup services can resolve names, but Azure Backup does not require DNS configuration.

E

Candidates may confuse backup policies with general VM configuration settings, mistakenly thinking that availability sets are part of backup retention or scheduling.

84
MCQmedium

A stateless API must automatically add or remove identical VM instances when CPU usage crosses thresholds. The team also wants Microsoft to distribute instances across fault domains when possible. Which service should the administrator deploy?

A.An availability set
B.Azure Load Balancer
C.A virtual machine scale set
D.Azure App Service
AnswerC

A virtual machine scale set is designed for identical VM instances that can scale out and scale in automatically. It fits stateless workloads well and supports placement across fault domains in supported configurations, which helps improve resiliency while also meeting the demand-based scaling requirement.

Why this answer

A virtual machine scale set (VMSS) is the correct choice because it provides built-in autoscaling capabilities that automatically add or remove identical VM instances based on CPU usage thresholds. VMSS also supports automatic distribution of instances across fault domains when configured with a fault domain count greater than 1, meeting the requirement for Microsoft to distribute instances across fault domains.

Exam trap

The trap here is that candidates often confuse an availability set with a scale set, thinking that an availability set provides autoscaling, but it only offers fault domain distribution without any automatic instance management.

Why the other options are wrong

A

An availability set only provides high availability for VMs by distributing them across fault domains and update domains, but it does not support automatic scaling based on CPU thresholds or manage identical VM instances as a group.

B

Azure Load Balancer distributes traffic across existing VMs but does not automatically add or remove VM instances based on CPU thresholds. It lacks autoscaling and fault domain distribution capabilities for VM instances.

D

Azure App Service is a platform-as-a-service for hosting web apps, APIs, and mobile backends, but it does not provide the ability to automatically add or remove identical VM instances based on CPU thresholds or distribute instances across fault domains. It abstracts away the underlying VMs, so you cannot manage VM-level scaling or fault domain distribution.

When would these options actually be correct?

A

An availability set would be correct when the requirement is to ensure high availability for a fixed set of VMs (e.g., a multi-tier application) by distributing them across fault domains and update domains, without any need for autoscaling.

B

An administrator needs to distribute incoming network traffic across multiple VMs in the same region to ensure high availability and no single point of failure, without requiring automatic scaling or fault domain distribution.

D

A question asking for a fully managed service to host a web application with built-in scaling and high availability, without needing to manage VMs. For example: 'Which service should be used to host a web app that automatically scales based on HTTP traffic and provides built-in load balancing?'

Why candidates pick the wrong answer

A

Candidates may confuse the fault domain distribution capability of availability sets with the autoscaling and fault domain distribution of virtual machine scale sets, assuming availability sets can also handle scaling.

B

Candidates may confuse load balancing with autoscaling, thinking that a load balancer can automatically manage instance counts, or they may overlook the requirement for fault domain distribution that is not provided by Azure Load Balancer.

D

Candidates may confuse App Service's auto-scaling capabilities with VM-level scaling, or think that App Service can handle stateless APIs with fault domain distribution, not realizing it abstracts away the VM layer.

85
MCQmedium

Based on the exhibit, which method should the administrator use to grant the partner time-limited access to one container?

A.Generate a service SAS by using the storage account key and email the URL to the partner.
B.Generate a user delegation SAS after authenticating with Microsoft Entra ID.
C.Make the container public and remove the SAS requirement from the partner workflow.
D.Assign the partner Storage Blob Data Contributor on the storage account and let them sign in interactively.
AnswerB

A user delegation SAS is the safest temporary access method in this scenario because it does not require exposing the storage account key. It is signed with Microsoft Entra credentials, can be scoped to one container, and can be set to expire after six hours. That makes it easy to grant and revoke access while limiting permissions.

Why this answer

A user delegation SAS is secured with Microsoft Entra ID credentials and can be scoped to a specific container with a time-limited expiry, meeting the requirement for time-limited access to one container. Unlike a service SAS, which uses the storage account key and grants broader permissions, the user delegation SAS provides finer-grained control and does not expose the account key. This method is the recommended approach for granting delegated, time-bound access to Azure Storage resources.

Exam trap

The trap here is that candidates often confuse a service SAS (which uses the storage account key and is easier to generate) with a user delegation SAS, not realizing that the user delegation SAS provides superior security and granularity for time-limited, container-scoped access without exposing the account key.

Why the other options are wrong

A

A service SAS generated from the storage account key does not support time-limited access with Microsoft Entra ID authentication, and it exposes the storage account key if the SAS is not properly scoped. The question requires a user delegation SAS for time-limited access to a single container.

C

Making the container public would grant anonymous access to all users, violating the requirement for time-limited access to a specific partner.

D

Assigning Storage Blob Data Contributor on the storage account grants permanent, broad access to all containers, not time-limited access to a single container as required.

When would these options actually be correct?

A

If the question asked for granting access to a partner without requiring Microsoft Entra ID authentication, and the partner only needs access to a specific container for a limited time, a service SAS generated from the storage account key would be correct.

C

If the question asked for the simplest method to allow public read access to a container for all users without authentication, making the container public would be correct.

D

This option would be correct if the question required granting a partner ongoing, full access to all blob data in the storage account without time constraints, and the partner could sign in interactively with their own identity.

Why candidates pick the wrong answer

A

Candidates may think a service SAS is sufficient for time-limited access and overlook the requirement to use Microsoft Entra ID authentication, which is more secure and recommended for delegated access.

C

Candidates might think making the container public is an easy way to grant access without managing SAS tokens, overlooking the need for time-limited and partner-specific access.

D

Candidates may think RBAC roles are the standard way to grant access and overlook the specific requirements for time-limited and scoped access to a single container.

86
MCQhard

A storage account hosts application logs that security wants to search in Log Analytics for 30 days and keep in a separate retained copy for one year. They also want to monitor storage metrics in the same place for troubleshooting. What should be configured on the storage account?

A.Enable only the activity log export because it already includes all storage telemetry.
B.Create a diagnostic setting that sends the storage resource logs and AllMetrics to Log Analytics and a storage account.
C.Create an action group that archives storage events and forwards them to investigators.
D.Create a metric alert on the storage account and use it as the retention mechanism.
AnswerB

Diagnostic settings can stream both resource logs and supported metrics from the storage account. Sending the logs to Log Analytics makes them searchable for troubleshooting, while sending them to a storage account preserves a second copy for the required one-year retention. Including metrics in the same diagnostic setting gives operators a unified view of performance and troubleshooting data. This is the most complete configuration for the stated retention and analysis goals.

Why this answer

A diagnostic setting on a storage account can send both resource logs (e.g., StorageRead, StorageWrite) and AllMetrics (e.g., transactions, ingress) to a Log Analytics workspace for querying and to a secondary storage account for long-term retention. This meets the requirement to search logs for 30 days in Log Analytics (which has its own retention setting) and keep a separate archived copy for one year in the storage account.

Exam trap

The trap here is that candidates confuse the activity log (which only covers Azure resource management events) with resource logs (which capture data-plane operations), leading them to choose Option A, or they mistakenly think an action group or metric alert can handle log retention.

Why the other options are wrong

A

The activity log does not include storage resource logs (e.g., storage read/write logs) or storage metrics; it only contains control-plane events like creating a storage account. The requirement to search application logs and monitor storage metrics necessitates resource logs and AllMetrics, which are only available via diagnostic settings.

C

An action group is used to define actions (e.g., email, SMS) triggered by alerts, not to archive or forward storage events to Log Analytics or for long-term retention. It does not collect logs or metrics.

D

Metric alerts are for notifying on threshold breaches, not for retention or sending logs to Log Analytics; they cannot retain logs for 30 days or archive for one year.

When would these options actually be correct?

A

This option would be correct if the question asked for a simple way to export control-plane audit events (e.g., who created/deleted the storage account) to Log Analytics for compliance, without needing storage-specific logs or metrics.

C

If the question asked for a way to notify security personnel when specific storage events occur (e.g., unauthorized access), an action group would be correct as part of an alert rule to send notifications.

D

A question asking how to get notified when storage account metrics exceed a threshold (e.g., high latency or low capacity) for troubleshooting, with no requirement for log retention or Log Analytics integration.

Why candidates pick the wrong answer

A

Candidates may mistakenly believe the activity log captures all telemetry, or they may confuse the activity log with resource logs, leading them to think enabling activity log export alone satisfies the monitoring and retention requirements.

C

Candidates may confuse action groups with diagnostic settings, thinking that action groups can route data to investigators, but action groups only handle notifications, not data collection or archiving.

D

Candidates may confuse alerting with monitoring and retention, assuming that setting an alert somehow captures or retains the metric data for later analysis.

87
MCQmedium

A hub VNet has a VPN gateway connected to on-premises networks. A new spoke VNet must reach on-premises resources through the existing hub gateway without deploying another gateway. What peering configuration should the administrator use?

A.Enable forwarded traffic on both peerings and create a route table in the spoke.
B.Enable gateway transit on the hub peering and use remote gateways on the spoke peering.
C.Deploy a private endpoint in the spoke for each on-premises subnet.
D.Create a service endpoint on the spoke subnet for Microsoft.Network.
AnswerB

This is the standard configuration for letting a spoke VNet use an existing hub VPN gateway. The hub side must allow gateway transit, and the spoke side must be configured to use the remote gateway. Together, these settings let the spoke inherit on-premises connectivity through the hub without deploying a separate gateway.

Why this answer

It enables the hub VNet's VPN gateway to be shared with the spoke VNet without deploying a separate gateway. 'Gateway transit' on the hub peering allows the hub to advertise routes from its VPN gateway to the spoke, while 'Use remote gateways' on the spoke peering allows the spoke to use the hub's gateway for outbound traffic to on-premises. This configuration ensures the spoke can reach on-premises resources through the hub's VPN tunnel.

Exam trap

The trap here is that candidates often confuse 'forwarded traffic' with 'gateway transit' — forwarded traffic only allows traffic to pass through a VNet (e.g., from a network virtual appliance), but it does not enable the use of a VPN gateway in the peered VNet, which requires the specific gateway transit setting.

Why the other options are wrong

A

Option A is wrong because enabling forwarded traffic on both peerings and creating a route table in the spoke does not allow the spoke to use the hub's VPN gateway. The correct configuration requires enabling gateway transit on the hub side and using remote gateways on the spoke side.

D

Service endpoints provide private connectivity to Azure services (like Azure Storage) from a VNet, not to on-premises networks via a VPN gateway. They do not enable routing through a hub gateway to on-premises resources.

When would these options actually be correct?

A

This option would be correct in a scenario where the spoke VNet needs to route traffic through a hub VNet that is acting as a network virtual appliance (NVA) or firewall, not a VPN gateway. In that case, enabling forwarded traffic on both peerings and adding user-defined routes in the spoke is necessary to direct traffic to the NVA.

D

A question asking how to securely access Azure Storage from a spoke VNet without using a public IP, where the storage account is in the hub VNet. In that case, a service endpoint on the spoke subnet for Microsoft.Storage would be correct.

Why candidates pick the wrong answer

A

Candidates may confuse the need for route tables and forwarded traffic with gateway transit, thinking that creating routes manually can substitute for the gateway transit setting, or they may not fully understand the specific peering properties required for VPN gateway sharing.

D

Candidates may confuse service endpoints with VPN connectivity, thinking that 'Microsoft.Network' service endpoint provides general network connectivity to on-premises, when it actually only applies to Azure PaaS services.

88
Multi-Selecthard

A build pipeline starts a Linux container once per request. Each run lasts about 12 minutes, never needs inbound connections, and should not leave an always-on server running afterward. Which two configuration choices best fit Azure Container Instances? Select two.

Select 2 answers
A.Use Azure Container Instances for the workload.
B.Set the container group's restart policy to Never.
C.Create an App Service plan with deployment slots.
D.Use a virtual machine scale set to host the container.
E.Place the workload in an availability set for host protection.
AnswersA, B

Correct. ACI is designed for short-lived container runs without managing hosts or clusters.

Why this answer

Azure Container Instances (ACI) is the correct choice because it is a serverless container platform that starts containers on demand, runs them for the duration of the workload (here ~12 minutes), and automatically stops and deallocates resources when the container exits. It requires no always-on infrastructure, supports Linux containers, and does not need inbound connections, making it ideal for ephemeral build pipeline tasks.

Exam trap

The trap here is that candidates may confuse Azure Container Instances with always-on services like App Service or VM-based solutions, failing to recognize that ACI's 'Never' restart policy perfectly matches the requirement for a single-run, ephemeral workload that leaves no server running afterward.

Why the other options are wrong

C

App Service with deployment slots is designed for web apps requiring continuous availability and scaling, not for short-lived, per-request container runs that should not leave a server running. It incurs ongoing costs and management overhead unsuitable for this batch-like workload.

D

A virtual machine scale set (VMSS) is designed for long-running, scalable workloads that require persistent infrastructure. The workload described is short-lived (12 minutes), needs no inbound connections, and should not leave a server running afterward, making VMSS overkill and cost-inefficient compared to Azure Container Instances.

E

Availability sets are a feature of Azure virtual machines, not containers, and they provide high availability for VMs by distributing them across fault and update domains. They do not apply to Azure Container Instances, which are serverless and have no concept of availability sets.

When would these options actually be correct?

C

A question where a web application needs zero-downtime deployments, staging environments, and automatic scaling based on HTTP traffic, with the requirement to swap traffic between slots for testing before production release.

D

A question requiring a scalable, long-running containerized application that needs to handle variable traffic, with the ability to auto-scale based on demand, and where containers run continuously rather than per-request. For example: 'You need to deploy a web API that scales out during peak hours and runs 24/7.'

E

A question asks: 'You need to ensure that a two-tier application hosted on two VMs remains available during planned maintenance. Which configuration should you use?' In that scenario, placing the VMs in an availability set would be correct to guarantee at least one VM is running during updates.

Why candidates pick the wrong answer

C

Candidates may confuse Azure Container Instances with App Service's container support, or think deployment slots provide a way to handle per-request isolation, not realizing slots are for deployment management, not per-request lifecycle.

D

Candidates may associate containers with VMSS because both can run containers and scale, but they overlook the ephemeral, per-request nature of the workload and the cost implications of always-on VMs.

E

Candidates may confuse availability sets with high-availability features for containers, or think that any Azure workload needs an availability set for protection, not realizing that ACI provides built-in fault tolerance without such configuration.

89
Matchingmedium

An operations team monitors a group of Azure VMs and storage accounts. Match each Azure Monitor component to the behavior it provides in day-to-day operations.

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

Concepts
Matches

Evaluates a numeric metric and fires when the threshold condition is met.

Sends the alert to chosen recipients or automation targets.

Shows Microsoft platform, region, or resource health incidents affecting the subscription.

Sends resource logs and metrics to Log Analytics, Event Hub, or Storage for later analysis.

Why these pairings

Metrics give real-time performance; Logs store detailed events; Alerts trigger notifications; Workbooks visualize data; Autoscale adjusts capacity; Action Groups configure alert responses.

90
Matchinghard

An operations lead must choose the right Azure Monitor target for each requirement. Match each requirement to the Azure component that best satisfies it.

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

Concepts
Matches

Log Analytics workspace

Storage account

Event Hub

Action group

Why these pairings

Metrics Explorer shows real-time metrics; Action Groups define notification actions; Log Analytics Workspace stores and queries logs; Alert Rules define conditions; Workbooks provide visualizations.

91
MCQmedium

An application in a subnet must access an Azure Storage account over a private IP. The storage account must not be reachable through its public endpoint, and access should be limited to that subnet only. Which configuration should the administrator implement?

A.Create a service endpoint for Microsoft.Storage on the subnet and keep the public endpoint enabled.
B.Create a private endpoint in the subnet and disable public network access on the storage account.
C.Use a shared access signature token and leave network settings unchanged.
D.Associate the storage account with a NAT gateway to control inbound access.
AnswerB

A private endpoint places a private IP address for the storage account into the VNet, so traffic stays on the private network path. Disabling public network access ensures the account cannot be reached through its public endpoint. Together, these settings meet both requirements: private IP access and subnet-scoped connectivity.

Why this answer

A private endpoint assigns a private IP from the subnet to the storage account, effectively bringing the service into the virtual network. Disabling public network access ensures the storage account is only reachable via that private endpoint, meeting the requirement to block public endpoint access and limit access to the specific subnet.

Exam trap

The trap here is confusing service endpoints (which still use the public endpoint) with private endpoints (which provide a private IP and can disable public access), leading candidates to choose Option A thinking it provides private connectivity.

Why the other options are wrong

A

A service endpoint does not provide a private IP for the application; it only allows the subnet to access the storage account via the public endpoint with source IP filtering. The requirement specifies access over a private IP and disabling the public endpoint, which service endpoints cannot achieve.

C

A shared access signature (SAS) token provides time-limited access to storage resources but does not restrict access to a specific subnet or disable the public endpoint. It also does not ensure private IP access, as traffic still traverses the public internet.

D

A NAT gateway controls outbound traffic from a subnet to the internet, not inbound access to a storage account. It cannot provide private IP connectivity or disable the public endpoint, so it fails to meet the requirement of limiting access to the subnet only.

When would these options actually be correct?

A

This option would be correct if the requirement was to allow a subnet to access a storage account securely over the Microsoft backbone network while still keeping the public endpoint enabled for other clients, and there was no need for a private IP or disabling public access.

C

If the question required granting time-limited, delegated access to a specific storage resource (e.g., a blob or file) for an external user or application without changing network security settings, a SAS token would be the correct answer.

D

An administrator needs to provide outbound internet connectivity for resources in a subnet while using a static public IP for egress, and the storage account is accessed via its public endpoint with firewall rules. In that scenario, a NAT gateway would be correct.

Why candidates pick the wrong answer

A

Candidates may confuse service endpoints with private endpoints, thinking both provide private connectivity, or they may overlook the specific requirement for a private IP and disabling the public endpoint.

C

Candidates may confuse SAS tokens with network-level access controls, thinking that a token alone can restrict access to a subnet, or they may overlook the requirement for private IP and public endpoint disablement.

D

Candidates may confuse NAT gateway with private connectivity solutions, thinking it can restrict inbound access or provide private IP routing, due to a misunderstanding of NAT's directionality and purpose.

92
MCQmedium

A company runs two identical Linux VMs for a stateless web app in an Azure region that supports availability zones. The business requires protection from a full datacenter outage, not just planned host maintenance. Which deployment choice best meets this requirement?

A.Place both VMs in an availability set.
B.Deploy the VMs across availability zones.
C.Use a proximity placement group for both VMs.
D.Deploy both VMs in a single-zone virtual machine scale set.
AnswerB

Availability zones place resources in physically separate datacenters within the same region. If one zone becomes unavailable, the other zone can continue serving traffic. That makes zones the correct choice when the requirement is resilience to a datacenter-scale outage. They provide stronger isolation than availability sets, which mainly protect against host and maintenance failures inside a single datacenter boundary.

Why this answer

Deploying the two VMs across different availability zones ensures that each VM resides in a physically separate datacenter within the region. This architecture protects against a full datacenter outage, as an availability zone failure affects only one zone, leaving the other VM operational. Availability zones provide a 99.99% SLA for VMs when two or more instances are deployed across zones, which aligns with the requirement for protection beyond planned host maintenance.

Exam trap

The trap here is that candidates confuse availability sets (which protect against rack-level failures within a single datacenter) with availability zones (which protect against full datacenter outages), leading them to choose Option A incorrectly.

Why the other options are wrong

A

An availability set protects against rack-level failures and planned maintenance within a single datacenter, not against a full datacenter outage.

C

A proximity placement group reduces network latency between VMs but does not protect against a full datacenter outage because all VMs in the group can be in the same datacenter.

D

A single-zone virtual machine scale set places all VMs in the same availability zone, which does not protect against a full datacenter outage because if that zone fails, all VMs are lost.

When would these options actually be correct?

A

If the requirement is to protect against hardware failures within a single datacenter (e.g., rack failures) and planned maintenance, while ensuring VMs are placed close together for low latency, an availability set would be correct.

C

For a latency-sensitive application (e.g., high-performance computing) where VMs must be physically close to minimize network latency, a proximity placement group is the correct choice, even if it means sacrificing fault tolerance.

D

When the requirement is to scale out a stateless app within a single zone for low-latency inter-VM communication, and the question specifies protection only from planned host maintenance (not full datacenter outage).

Why candidates pick the wrong answer

A

Candidates may confuse availability sets with availability zones, thinking both provide datacenter-level redundancy, or they may overestimate the fault domain protection of availability sets.

C

Candidates may confuse proximity placement groups with availability sets or zones, mistakenly thinking that grouping VMs together provides high availability against datacenter failures.

D

Candidates may think a scale set inherently provides high availability across zones, but a single-zone scale set lacks zone redundancy, and they overlook the 'single-zone' qualifier.

93
MCQhard

You store long-term financial statements in Azure Blob Storage. The files are almost never accessed, but when they are needed they must be readable immediately without waiting for rehydration. You need to minimize cost. Which access tier should you use?

A.Hot
B.Cool
C.Archive
D.Premium
AnswerB

Cool is the correct access tier for long-term financial statements because it offers a low storage cost while keeping data online and immediately accessible. Unlike Hot, Cool is optimized for data that is infrequently read but may be needed on short notice, with no rehydration step. With a minimum retention period of 30 days, it fits a scenario where files are retained for years but rarely accessed, balancing cost and availability.

Why this answer

The Cool access tier is optimal for data that is infrequently accessed but must be available immediately when needed, offering lower storage costs than Hot while maintaining low-latency read access. Archive would require rehydration (taking hours) before reading, violating the requirement for immediate readability. Hot is more expensive for long-term storage of rarely accessed data, and Premium is designed for high-performance workloads, not cost-efficient archival.

Exam trap

The trap here is that candidates often choose Archive thinking it is the cheapest option, but they overlook the requirement for 'immediate readability without waiting for rehydration,' which Archive cannot satisfy.

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 to minimize cost for almost never accessed files.

C

Archive tier requires rehydration (up to 15 hours) to read data, but the question states files must be readable immediately without waiting. Thus, Archive cannot meet the availability requirement.

When would these options actually be correct?

A

When the question specifies that data is accessed frequently (e.g., multiple times per day) and low latency is critical, but cost optimization is not the primary concern.

C

A question where long-term retention (e.g., 7+ years) and lowest storage cost are the only priorities, and immediate access is not needed—e.g., 'You need to store backup tapes for regulatory compliance at the lowest possible cost. Access is expected less than once a year and rehydration time is acceptable.'

Why candidates pick the wrong answer

A

Candidates may assume 'Hot' is always the best for immediate access, overlooking that Cool tier also provides immediate access at lower cost for infrequent access patterns.

C

Candidates see 'long-term' and 'almost never accessed' and assume Archive is the cheapest option, overlooking the critical requirement for immediate read access without rehydration delay.

94
MCQhard

A customer runs two Windows VMs in a region that does not support availability zones. The app can lose one VM but must keep running through planned maintenance and a single host failure. Which deployment pattern should you use?

A.Use a single-instance deployment and add more backup jobs.
B.Place both VMs in an availability set.
C.Use availability zones because they always exist in every region.
D.Put both VMs on the same dedicated host to avoid migration during maintenance.
AnswerB

An availability set spreads VMs across fault domains and update domains within one datacenter boundary. That protects the application from planned maintenance and from a single host or rack failure. Because the region does not support availability zones, the availability set is the best way to improve uptime for two VMs that can tolerate one instance being unavailable.

Why this answer

An availability set ensures that VMs are placed on different fault domains (separate physical hardware) and update domains (separate maintenance batches). This protects against both a single host failure and planned Azure maintenance, meeting the requirement that the app can lose one VM but keep running.

Exam trap

The trap here is that candidates assume availability zones are always available or that a dedicated host provides isolation, but the question's constraint (region without zones) and the need for both fault domain and update domain protection point directly to an availability set.

Why the other options are wrong

A

Single-instance deployment with backup jobs does not provide high availability against planned maintenance or host failures; backup jobs only restore data, not ensure continuous uptime.

C

The question states the region does not support availability zones, so option C is factually incorrect because availability zones are not available in every region.

D

Placing both VMs on the same dedicated host creates a single point of failure; if the host fails, both VMs go down, violating the requirement to survive a single host failure.

When would these options actually be correct?

A

If the requirement is to protect against data loss rather than ensure uptime, and the application can tolerate downtime for restoration, then a single-instance deployment with frequent backups would be appropriate.

C

If the question specified that the region supports availability zones and the requirement is to protect against a full datacenter failure (zone-level failure), then deploying VMs across multiple availability zones would be the correct answer.

D

If the requirement was to isolate VMs from hardware maintenance and other tenants, and the application could tolerate a single host failure by using a different pattern (e.g., manual recovery), then a dedicated host would be correct. For example, a compliance scenario requiring physical isolation.

Why candidates pick the wrong answer

A

Candidates may think that adding backup jobs compensates for lack of redundancy, misunderstanding that backups address data durability, not availability.

C

Candidates may assume availability zones are universally available or confuse them with availability sets, leading them to choose a more advanced feature without verifying regional support.

D

Candidates may think dedicated hosts provide high availability by avoiding VM migration during planned maintenance, but they overlook that a single host failure takes down all VMs on that host.

95
Multi-Selecteasy

A production VM needs an email and SMS notification when CPU percentage stays above 80 percent for five minutes. Which two Azure Monitor components should the administrator configure? Select two.

Select 2 answers
A.Action group
B.Azure Policy assignment
C.Metric alert rule
D.Recovery Services vault
E.Log Analytics workspace
AnswersA, C

The action group is the Azure Monitor component that defines the delivery endpoints for notifications—such as email addresses, SMS phone numbers, webhooks, and ITSM connectors. When a metric alert rule detects that CPU utilization has crossed a threshold, it invokes the associated action group, which then sends the email/SMS. Without an action group linked to the alert rule, the alert would fire but would have no way to notify anyone, so it is a required part of the solution.

Why this answer

A Metric alert rule monitors the VM’s CPU percentage metric and triggers when the condition (above 80% for 5 minutes) is met. An Action group defines the notification actions (email and SMS) that are executed when the alert fires. Together, they enable the required notification workflow.

Exam trap

The trap here is that candidates may confuse Log Analytics workspace (which can also generate alerts from log queries) with the metric-based alerting required for CPU percentage, or mistakenly think a Recovery Services vault is involved in monitoring notifications.

Why the other options are wrong

B

Azure Policy assignment enforces compliance rules on resources (e.g., tagging, SKU restrictions) and does not send notifications based on performance metrics like CPU percentage.

D

A Recovery Services vault is used for Azure Backup and Azure Site Recovery, not for monitoring or alerting. It cannot send email or SMS notifications based on CPU metrics.

E

A Log Analytics workspace is used for collecting and analyzing log data, not for sending email or SMS notifications based on CPU metrics. The notification action requires an action group, not a Log Analytics workspace.

When would these options actually be correct?

B

An administrator needs to ensure all VMs in a subscription have a specific tag (e.g., 'Environment: Production') and automatically remediate non-compliant VMs. In this scenario, an Azure Policy assignment with a 'deny' or 'deployIfNotExists' effect would be correct.

D

A Recovery Services vault would be correct if the question asked about configuring backup for an Azure VM, such as scheduling daily backups and setting up retention policies.

E

A Log Analytics workspace would be correct if the question asked for a component to collect and analyze performance logs from multiple VMs, or to query historical CPU data for troubleshooting, without requiring real-time alerting.

Why candidates pick the wrong answer

B

Candidates may confuse Azure Policy with monitoring or alerting, thinking it can trigger notifications for performance issues, but Policy is for governance and compliance, not real-time metric alerts.

D

Candidates may confuse Recovery Services vault with monitoring tools because both involve 'recovery' or 'alerts', or they might think it is needed for VM health monitoring.

E

Candidates may confuse Log Analytics with monitoring and assume it can directly send notifications, or they think metric data must be stored in Log Analytics before alerting, overlooking that metric alerts can work independently.

96
Matchingmedium

A backup administrator is learning how Azure VM backup actions map to their purpose. Match each Recovery Services or backup item to the best description.

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

Concepts
Matches

Central place where Azure VM backups, policies, and recovery points are managed.

Defines when backups run and how long recovery points are retained.

Mounts a recovery point so individual files or folders can be copied back.

Recovers VM disks so they can be attached or used to rebuild a machine.

Overwrites the original VM by restoring it from a chosen recovery point.

Why these pairings

Recovery Services vault stores backups; policy defines schedule; instant snapshot allows fast restore; extension is the agent; restore point is a backup copy; cross-region restore enables DR.

97
MCQmedium

A help desk analyst wants a query in Log Analytics that returns Azure virtual machines that have stopped sending a heartbeat for more than 15 minutes. Which KQL query should the analyst run?

A.Heartbeat | summarize LastSeen=max(TimeGenerated) by Computer | where LastSeen < ago(15m)
B.AzureActivity | where OperationNameValue contains 'Heartbeat' | summarize count() by ResourceGroup
C.Perf | where CounterName == '% Processor Time' | summarize avg(CounterValue) by Computer
D.SecurityEvent | where EventID == 4624 | summarize count() by Computer
AnswerA

This query uses the Heartbeat table to identify the most recent signal from each VM and filters for machines whose latest heartbeat is older than 15 minutes. That is the correct pattern for detecting VMs that are no longer reporting to Log Analytics or Azure Monitor. It is practical, concise, and directly aligned to troubleshooting agent connectivity or VM availability.

Why this answer

The Heartbeat table in Log Analytics records a heartbeat signal from Azure Monitor agents every 5 minutes by default. The query uses `summarize` to find the latest `TimeGenerated` per computer, then filters with `where LastSeen < ago(15m)` to identify VMs that have not sent a heartbeat in over 15 minutes, indicating they are likely offline or unresponsive.

Exam trap

The trap here is that candidates may confuse the Heartbeat table with other log tables (AzureActivity, Perf, SecurityEvent) that contain different data types, leading them to pick a query that looks for 'heartbeat' in the wrong table or uses irrelevant metrics like CPU or logon events.

Why the other options are wrong

B

AzureActivity does not contain heartbeat data; heartbeats are logged in the Heartbeat table. This query also counts events by resource group instead of identifying VMs with no recent heartbeat.

C

The Perf table contains performance counters like '% Processor Time', not heartbeat data. This query calculates average CPU usage per computer, which does not identify VMs that have stopped sending heartbeats.

D

SecurityEvent with EventID 4624 logs successful user logons, not VM heartbeats. It cannot determine if a VM has stopped sending heartbeats.

When would these options actually be correct?

B

If the question asked for the number of Azure activity log entries related to 'Heartbeat' operations per resource group, this query would be correct.

C

This query would be correct if the question asked: 'Which query returns the average CPU usage per Azure virtual machine over the last hour?'

D

A question asking: 'Which query returns the number of successful logon events per computer in the last 24 hours?' would make this option correct.

Why candidates pick the wrong answer

B

Candidates may mistakenly think heartbeat events are recorded in the AzureActivity table, or they may confuse 'heartbeat' with general activity log operations.

C

Candidates may confuse performance monitoring with health monitoring, thinking that a lack of CPU data implies a stopped VM, or they may mistakenly believe the Perf table includes heartbeat information.

D

Candidates may confuse security events (like logons) with agent heartbeats, assuming any event from a VM indicates its health status.

98
MCQmedium

A web workload in a subnet must use a NAT gateway for outbound internet traffic so the source IP is stable. The subnet currently has a route table with a 0.0.0.0/0 user-defined route to a virtual appliance. What should the administrator change?

A.Add an NSG outbound allow rule for TCP 80 and TCP 443.
B.Remove or replace the 0.0.0.0/0 UDR to the virtual appliance and associate the NAT gateway with the subnet.
C.Create a private endpoint for the web workload.
D.Enable VNet peering to a hub network with a firewall.
AnswerB

A NAT gateway provides stable outbound internet connectivity only when traffic follows the normal internet path from the subnet. The custom default route to a virtual appliance forces traffic away from that path, so the NAT gateway is bypassed. Removing or replacing the forced-tunnel route and then attaching the NAT gateway to the subnet allows outbound internet traffic to use the NAT gateway’s public IPs.

Why this answer

The current route table has a 0.0.0.0/0 user-defined route (UDR) pointing to a virtual appliance, which forces all outbound traffic through that appliance. To use a NAT gateway for outbound internet traffic with a stable source IP, the administrator must remove or replace that UDR (so the default route no longer points to the appliance) and associate the NAT gateway with the subnet. The NAT gateway automatically creates a default route (0.0.0.0/0) with a next hop of 'Internet', overriding the appliance route, ensuring traffic egresses via the NAT gateway's public IP.

Exam trap

The trap here is that candidates often think adding a NAT gateway automatically overrides existing UDRs, but in Azure, user-defined routes have higher priority than system routes (including those from NAT gateways), so the existing UDR must be explicitly removed or modified for the NAT gateway to handle outbound traffic.

Why the other options are wrong

A

An NSG outbound rule allows traffic but does not change the source IP to a stable public IP; the subnet still uses the UDR to the virtual appliance, so the NAT gateway is not used.

C

A private endpoint is used to securely access Azure PaaS services over a private IP address, not to provide outbound internet traffic with a stable source IP. It does not replace the need for a NAT gateway or modify the subnet's default route.

D

Enabling VNet peering to a hub network with a firewall does not directly provide a stable source IP for outbound traffic from the web workload; it would route traffic through the firewall, which may change the source IP. The requirement is for a NAT gateway to ensure a stable source IP.

When would these options actually be correct?

A

In a scenario where the subnet has no UDR for 0.0.0.0/0 and the goal is to restrict outbound traffic to only HTTP/HTTPS, adding an NSG outbound allow rule for TCP 80 and 443 would be correct.

C

If the question asked how to securely connect an Azure web app to a storage account without exposing it to the public internet, creating a private endpoint for the storage account would be the correct answer.

D

In a scenario where an organization wants to centralize outbound traffic inspection and logging through a firewall in a hub network, while also requiring a stable source IP for specific workloads, enabling VNet peering to a hub network with a firewall would be correct. The firewall would then provide the stable source IP.

Why candidates pick the wrong answer

A

Candidates may think that allowing outbound traffic via NSG is sufficient for internet access, overlooking that the UDR overrides the default route and prevents NAT gateway usage.

C

Candidates may confuse private endpoints with NAT gateways, thinking both provide outbound connectivity, or they may mistakenly believe that private endpoints can be used to route all outbound traffic.

D

Candidates may think that routing traffic through a hub firewall via VNet peering is a common pattern for controlling outbound traffic, and they might overlook the specific requirement for a stable source IP that a NAT gateway provides.

99
MCQmedium

An administrator creates a route table with a UDR for 10.20.0.0/16 and next hop type Virtual appliance. A VM in the subnet still does not send that traffic to the appliance. The route table contents are correct. What should be checked first?

A.Whether the NSG has an outbound deny rule for port 80.
B.Whether the route table is associated with the correct subnet.
C.Whether the VM uses a managed identity.
D.Whether the virtual machine is in an availability set.
AnswerB

A route table only affects traffic for the subnet to which it is associated. If the table exists and the route is correct but traffic still follows another path, the first thing to verify is that the VM's subnet is actually linked to that route table. Without that association, the UDR is never applied, even though the route definition itself looks valid.

Why this answer

The most common reason a UDR fails to take effect is that the route table is not associated with the subnet containing the VM. Even if the route table contents are correct, the VM's traffic will follow default system routes unless the route table is explicitly linked to the subnet. Association is a required step to override Azure's default routing behavior.

Exam trap

The trap here is that candidates often focus on the route table contents being correct and overlook the critical step of associating the route table with the subnet, assuming that creating the route table is sufficient to apply it.

Why the other options are wrong

A

The question states that the route table contents are correct, so the issue is not about NSG rules but about route application. An NSG outbound deny rule for port 80 would block traffic regardless of routing, but the problem is that traffic is not being sent to the appliance, which is a routing issue, not a firewall issue.

C

Managed identities are used for authenticating to Azure services without credentials, not for controlling network traffic routing. The issue is about traffic not following a UDR, which is unrelated to identity.

D

The VM being in an availability set does not affect routing behavior; route table association is the primary factor for traffic redirection.

When would these options actually be correct?

A

This option would be correct if the question described that traffic to a specific destination (e.g., 10.20.0.0/16) is being blocked, and the route table is correctly associated and configured. In that case, checking NSG outbound rules for deny rules would be the first step to identify if the traffic is being blocked by the network security group.

C

A question where a VM cannot access a storage account or Key Vault, and the answer options include checking managed identity assignment. If the VM is not assigned the correct managed identity, access would fail despite correct network rules.

D

In a question about high availability for a web application, where the correct answer is to place VMs in an availability set to protect against datacenter failures.

Why candidates pick the wrong answer

A

Candidates often confuse routing and network security, assuming that if traffic doesn't reach its destination, it must be blocked by an NSG rule. They may overlook that the route table might not be applied to the correct subnet, which is a more fundamental issue.

C

Candidates may confuse managed identities with service endpoints or think that identity issues can affect network routing, especially when troubleshooting connectivity problems.

D

Candidates may confuse availability set with subnet association, thinking that the VM's placement group influences routing, but routing is determined by subnet-level route tables.

100
MCQhard

You need to collect performance counters and event logs from multiple Azure virtual machines and query the data centrally by using Kusto Query Language. Which Azure resource should you deploy?

A.A Log Analytics workspace
B.A Recovery Services vault
C.Azure Network Watcher
D.A load balancer
AnswerA

A Log Analytics workspace is the central data repository for Azure Monitor Logs. It can natively ingest performance counters and event logs from multiple VMs and other resources via the Azure Monitor Agent or the legacy Log Analytics agent, making it the correct destination for KQL-based analysis. All log and metric data collected from diverse sources is stored here, enabling unified queries, alerting, and visualization.

Why this answer

A Log Analytics workspace is the correct Azure resource because it ingests performance counters and event logs from Azure virtual machines via the Azure Monitor agent or the legacy Log Analytics agent, and stores them in a centralized repository. You can then query this data using Kusto Query Language (KQL) to perform real-time analysis, troubleshooting, and reporting across multiple VMs.

Exam trap

The trap here is that candidates often confuse Azure Monitor with Azure Backup or network monitoring tools, mistakenly thinking a Recovery Services vault or Network Watcher can store and query log data, when in fact only a Log Analytics workspace provides the centralized KQL-based querying capability for performance counters and event logs.

Why the other options are wrong

B

A Recovery Services vault is used for backup and disaster recovery, not for collecting and querying performance counters and event logs with Kusto Query Language.

C

Azure Network Watcher provides network monitoring and diagnostics (e.g., packet capture, NSG flow logs), but it does not collect performance counters or event logs, nor does it support querying data with Kusto Query Language (KQL).

D

A load balancer distributes network traffic across virtual machines; it does not collect performance counters or event logs, nor does it support querying data with Kusto Query Language.

When would these options actually be correct?

B

You need to back up Azure virtual machines and restore them in case of data loss or disaster. Deploy a Recovery Services vault to manage backups and perform restores.

C

You need to monitor network traffic between Azure VMs, diagnose connectivity issues, or capture packets for analysis. For example, a question asking 'Which Azure resource should you use to enable Network Performance Monitor or to capture network packets from a VM?' would make Network Watcher the correct answer.

D

You need to distribute incoming internet traffic across multiple Azure virtual machines to ensure high availability and fault tolerance. Deploy a load balancer to route traffic based on rules and health probes.

Why candidates pick the wrong answer

B

Candidates may confuse Recovery Services vault with Log Analytics workspace because both are Azure resources that deal with data, but they serve different purposes—backup vs. monitoring and analytics.

C

Candidates may confuse Network Watcher's monitoring capabilities with general log collection, or assume that any Azure monitoring tool can handle performance counters and event logs, overlooking the specific KQL requirement that only Log Analytics workspaces fulfill.

D

Candidates may confuse load balancers with monitoring tools because load balancers provide metrics and logs, but these are limited and not designed for centralized querying with KQL.

101
Multi-Selecteasy

A subscription admin wants to investigate who changed a resource and also review the platform-generated events for that subscription. Which two types of logs can be sent to Log Analytics and queried later? Select two.

Select 2 answers
A.Activity log entries
B.Resource diagnostic logs
C.Azure Backup vault names
D.Virtual network address spaces
E.Managed disk size settings
AnswersA, B

The Azure activity log is a subscription-level platform log that records every control-plane write operation, including create, update, and delete actions. Each entry contains the caller identity (user or service principal), timestamp, operation name, resource ID, and status, which directly answers 'who changed a resource.' It is automatically retained for 90 days and can be sent to a Log Analytics workspace for longer-term querying and alerting.

Why this answer

The Activity log (option A) records subscription-level events such as who created, modified, or deleted a resource, making it essential for investigating administrative changes. Resource diagnostic logs (option B) capture platform-generated events emitted by a resource itself (e.g., Azure SQL Database audit logs, network security group flow logs), which can be sent to Log Analytics for querying. Both log types can be configured to stream to a Log Analytics workspace, enabling Kusto Query Language (KQL) analysis.

Exam trap

The trap here is that candidates often confuse resource diagnostic logs (which are platform-generated events from the resource) with Activity logs (which are subscription-level administrative events), and mistakenly think configuration properties like disk sizes or address spaces are loggable events.

Why the other options are wrong

C

Azure Backup vault names are metadata, not logs. They cannot be sent to Log Analytics for querying platform-generated events or resource changes.

D

Virtual network address spaces are configuration settings, not logs. They cannot be sent to Log Analytics for querying as log data; only activity logs and resource diagnostic logs are log types that can be collected.

E

Managed disk size settings are configuration properties, not logs. They cannot be sent to Log Analytics as a log type; only activity logs and resource diagnostic logs can be collected for querying.

When would these options actually be correct?

C

In a question asking 'Which Azure Backup component must be specified when configuring backup policies?', 'Azure Backup vault names' would be correct as they identify the vault where backups are stored.

D

In a question asking 'Which configuration setting must be unique within a virtual network to avoid overlapping IP ranges?', Virtual network address spaces would be the correct answer.

E

This option would be correct in a question asking: 'Which Azure resource property can be modified to change the performance tier of a managed disk?' or 'Which setting determines the maximum storage capacity of a managed disk?'

Why candidates pick the wrong answer

C

Candidates may confuse backup-related data with operational logs, assuming vault names are logged events rather than static identifiers.

D

Candidates may confuse configuration data with log data, thinking that any resource property can be logged, or they might mistakenly believe that address space changes are recorded in a separate log type.

E

Candidates may confuse configuration settings with log data, thinking that any resource property change is recorded as a log, or they might mistakenly believe that disk size settings generate platform events.

102
MCQmedium

A stateless API runs on Azure VMs and experiences unpredictable traffic spikes during the day. The administrator must automatically add or remove identical VM instances based on CPU usage, and the platform should distribute instances across fault domains without manual placement. What should be used?

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

A virtual machine scale set is the only option that provides built-in autoscaling: it can automatically increase or decrease the number of VM instances based on CPU, memory, or custom metrics, and optionally on a schedule. This elasticity is exactly what a stateless API needs when traffic is unpredictable, because each instance is identical and can be added or removed without affecting state. Scale sets also spread instances across fault domains/update domains (or availability zones) and integrate with Azure Load Balancer or Application Gateway, so the platform resilience is an added benefit, not the primary reason.

Why this answer

Virtual machine scale sets (VMSS) automatically manage identical VM instances and can scale out/in based on CPU usage metrics via autoscale rules. They distribute instances across fault domains automatically without manual placement, ensuring high availability during unpredictable traffic spikes.

Exam trap

The trap here is that candidates often confuse availability sets with scale sets, thinking an availability set can also handle automatic scaling, but availability sets only provide fault domain distribution for a static set of VMs and lack autoscaling capabilities.

Why the other options are wrong

A

An availability set does not provide automatic scaling or instance addition/removal based on CPU usage; it only ensures high availability by distributing VMs across fault and update domains within a single set.

C

Availability zones are physically separate data centers within a region, providing high availability and disaster recovery, but they do not automatically scale VM instances based on CPU usage or distribute instances across fault domains without manual placement.

D

Proximity placement groups reduce network latency between VMs but do not provide autoscaling, load distribution across fault domains, or automatic instance management based on CPU usage.

When would these options actually be correct?

A

A question requiring manual placement of VMs across fault domains for high availability without autoscaling, such as: 'You need to deploy two VMs running a legacy application that must be in different fault domains to meet an SLA. What should you use?'

C

A question requiring high availability and resilience against data center failures, such as deploying a critical application that must remain available even if an entire Azure data center goes down, and where manual placement across zones is acceptable.

D

A question requiring low-latency communication between VMs in the same region, such as for a high-performance computing (HPC) application or a tightly coupled workload, where VMs must be placed close together to minimize network latency.

Why candidates pick the wrong answer

A

Candidates may confuse availability sets with scale sets because both involve distributing VMs, but they overlook that availability sets lack autoscaling capabilities.

C

Candidates may confuse availability zones with scale sets because both involve distributing VMs, but zones focus on fault isolation at the data center level, not on autoscaling or automatic fault domain distribution.

D

Candidates may confuse proximity placement groups with availability sets or scale sets, thinking they also handle distribution and scaling, or they may focus on the 'placement' aspect without considering the autoscaling requirement.

103
Multi-Selecthard

A stateless application must keep serving traffic if one datacenter in the region fails, and it must also add or remove instances during daily load spikes. Which two deployment choices should the administrator make? Select two.

Select 2 answers
A.Deploy the application on a virtual machine scale set.
B.Configure the deployment to use availability zones.
C.Use a single availability set with one VM to reduce complexity.
D.Use a proximity placement group for the workload.
E.Deploy one larger VM with a premium SSD instead of multiple instances.
AnswersA, B

An Azure virtual machine scale set (VMSS) deploys a group of identical, stateless VMs behind a load balancer and can automatically scale instances in or out based on demand. It spreads instances across fault domains and update domains, so hardware failures or maintenance events affect only a subset of instances while traffic continues to be served by the healthy ones. Because the app is stateless, instances can be freely added or removed without data consistency issues.

Why this answer

A virtual machine scale set (VMSS) allows automatic scaling of instances in response to load spikes, meeting the requirement to add or remove instances dynamically. Combined with availability zones, which distribute instances across physically separate datacenters within a region, the application remains available even if one entire datacenter fails. This pair ensures both high availability and elastic scaling for a stateless application.

Exam trap

The trap here is that candidates often confuse availability sets (which protect against rack-level failures within a single datacenter) with availability zones (which protect against entire datacenter failures), leading them to pick a single availability set as sufficient for datacenter failure resilience.

Why the other options are wrong

C

A single availability set with one VM provides no redundancy; if the datacenter fails, the application goes down, and it cannot scale out to handle load spikes.

E

Deploying one larger VM with premium SSD does not provide high availability across datacenters or scalability for load spikes; it creates a single point of failure and cannot dynamically add/remove instances.

When would these options actually be correct?

C

For a legacy application that is not stateless and cannot be distributed, and where cost is the primary concern with no high availability or scaling requirements, deploying a single VM in an availability set might be acceptable.

E

If the question required maximizing performance for a single, non-distributed workload with strict latency requirements and no need for high availability or scalability, deploying one large VM with premium SSD would be correct.

Why candidates pick the wrong answer

C

Candidates may think an availability set offers high availability even with one VM, or they may confuse availability sets with availability zones, believing it protects against datacenter failure.

E

Candidates may think a larger VM with premium SSD offers better performance and reliability, overlooking the need for redundancy and elastic scaling across datacenters.

104
MCQeasy

A help desk engineer must be able to start, stop, and resize only VM-App01. The engineer must not gain access to any other virtual machines or resource groups in the subscription. What scope should you use for the Azure RBAC role assignment?

A.Assign the role at the subscription scope so the engineer can manage any VM in the subscription.
B.Assign the role at the virtual machine scope for VM-App01 only.
C.Assign the role at the resource group scope that contains VM-App01.
D.Assign the role at a management group scope so the team can standardize access.
AnswerB

Assigning the role at the virtual machine scope scopes the permission grant to just VM-App01. This is the narrowest possible scope in Azure RBAC that still covers the resource, so the engineer can start, stop, and resize that VM while receiving no permissions on any other resource. It directly implements least privilege.

Why this answer

Azure RBAC allows you to assign a role at the virtual machine scope, which restricts permissions to that specific resource only. By assigning a role like 'Virtual Machine Contributor' at the scope of VM-App01, the help desk engineer can start, stop, and resize only that VM without gaining access to any other VMs or resource groups in the subscription.

Exam trap

The trap here is that candidates often default to resource group scope thinking it is granular enough, but they overlook that resource group scope grants access to all resources within that group, not just the single VM.

Why the other options are wrong

A

Assigning the role at the subscription scope grants the engineer permissions to manage all virtual machines in the subscription, violating the requirement to restrict access to only VM-App01.

C

Assigning the role at the resource group scope would grant the engineer permissions to start, stop, and resize all virtual machines within that resource group, not just VM-App01, violating the requirement to restrict access to only VM-App01.

D

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

When would these options actually be correct?

A

If the requirement were to allow the engineer to manage all virtual machines in the subscription (e.g., for a help desk team responsible for all VMs), assigning the role at the subscription scope would be correct.

C

If the question required the engineer to manage all VMs within the resource group containing VM-App01 (e.g., 'start, stop, and resize all VMs in the resource group'), then assigning the role at the resource group scope would be correct.

D

A question where the requirement is to grant permissions to manage all virtual machines across multiple subscriptions within a management group, such as 'A team lead needs to start, stop, and resize any VM in all subscriptions under the Contoso management group.'

Why candidates pick the wrong answer

A

Candidates may think subscription scope is necessary for start/stop/resize actions, not realizing that these actions can be scoped to a single VM.

C

Candidates may assume that since VM-App01 is in a resource group, assigning the role at that scope is sufficient, overlooking that it grants permissions to all resources in the group, not just the specific VM.

D

Candidates may think management groups provide a way to standardize access across multiple subscriptions, but they overlook that this scope is too broad for a single VM restriction.

105
MCQmedium

A Windows VM and a Linux VM in Azure need to use the same shared folder for application artifacts. The team wants a managed file service instead of running a separate file server VM, and both operating systems must be able to mount the share using a standard protocol. Which solution should the administrator implement?

A.Create a blob container and mount it as a file system from both virtual machines.
B.Create an Azure Files share and mount it over SMB from both virtual machines.
C.Use an Azure managed disk and attach it to both virtual machines.
D.Create an Azure Files share and force the Linux VM to use NFS while the Windows VM uses SMB.
AnswerB

Azure Files is the managed file service designed for shared file access. SMB is supported by Windows natively and can also be mounted from Linux using standard tools. This gives both VMs access to the same share without introducing a separate file server VM, which fits the requirement precisely.

Why this answer

Azure Files provides a fully managed file share that supports both SMB and NFS protocols. Since the question requires a managed file service accessible by both Windows and Linux VMs using a standard protocol, the correct solution is to create an Azure Files share and mount it over SMB from both VMs. Windows natively supports SMB, and Linux can mount SMB shares using the CIFS-utils package, meeting the requirement without running a separate file server VM.

Exam trap

The trap here is that candidates may assume Azure Files supports both SMB and NFS on the same share, but in reality each share is protocol-specific, and mixing protocols is not allowed, making Option D a common distractor.

Why the other options are wrong

A

Azure blob containers cannot be mounted as a file system using standard protocols like SMB or NFS; they are object storage accessed via HTTP/HTTPS, not a shared file system for concurrent VM access.

C

Azure managed disks cannot be attached to multiple VMs simultaneously; they support single-VM attachment only, so both VMs cannot access the same shared folder concurrently.

D

Azure Files supports both SMB and NFS protocols, but a single share can only use one protocol. Forcing the Linux VM to use NFS while Windows uses SMB on the same share is not supported; both VMs must use the same protocol (SMB) for cross-platform access.

When would these options actually be correct?

A

If the requirement was to store large amounts of unstructured data (e.g., logs, backups) accessible from multiple VMs via REST API, and a managed file service was not needed, then mounting a blob container (using BlobFuse or similar) could be appropriate.

C

An administrator needs to attach a high-performance, durable data disk to a single VM for database storage, where shared access is not required and maximum I/O performance is critical.

D

If the question specified that the Linux VM requires NFS protocol (e.g., for performance or compatibility reasons) and the Windows VM is not involved, or if separate shares were allowed, then creating an Azure Files share with NFS for Linux would be correct.

Why candidates pick the wrong answer

A

Candidates may think blob storage can be mounted like a file share because of tools like BlobFuse, but they overlook that it's not a native file system protocol and does not support concurrent read/write locking required for shared folders.

C

Candidates may confuse managed disks with shared disks (which do support multi-attach but are limited to specific scenarios) or assume that any disk can be shared like a network file share.

D

Candidates may know that Azure Files supports both SMB and NFS, and incorrectly assume they can mix protocols on the same share to accommodate different OS requirements, overlooking that a share is protocol-specific.

106
Multi-Selectmedium

Which two statements accurately describe the value of centralized DHCP in enterprise networks?

Select 2 answers
A.It can reduce the need to maintain separate DHCP servers in every subnet or site.
B.It can make address-policy changes easier to manage from a central location.
C.It removes the need for relay across Layer 3 boundaries.
D.It eliminates the need for default gateways.
E.It is useful only on wireless networks.
AnswersA, B

Centralizing DHCP on a single server or a small cluster eliminates the operational overhead and administrative burden of deploying and patching separate DHCP servers in every physical segment or branch office. Instead of maintaining per-subnet authorization, database backups, and failover configurations across many hosts, admins can manage one service that serves multiple scopes. This simplification lowers hardware and licensing costs and makes consistent DHCP policy enforcement much easier.

Why this answer

Centralized DHCP can simplify operations by keeping address assignment services in a more controlled central location rather than distributing separate servers everywhere. In practical terms, this can reduce administration overhead and make policy changes easier. The tradeoff is that Layer 3 boundaries must then be handled properly so client requests can still reach the server.

This is why DHCP relay becomes important in many campus and branch designs.

Why the other options are wrong

C

This option is wrong because centralized DHCP can still require DHCP relay agents to forward requests across Layer 3 boundaries, especially when clients and servers are on different subnets.

D

This option is wrong because centralized DHCP does not eliminate the need for default gateways; devices still require a default gateway to communicate outside their local subnet regardless of DHCP configuration.

E

This option is wrong because centralized DHCP is beneficial for both wired and wireless networks, not limited to just wireless environments. Centralized DHCP can manage IP addresses across all types of network infrastructures.

When would these options actually be correct?

C

If the exam question stated that a centralized DHCP server is implemented within a single subnet without any Layer 3 segmentation, then option C would be correct as there would be no need for relay agents in that scenario.

D

If the exam question stated that centralized DHCP is implemented in a network where all devices are on the same subnet, and no routing is required, then it could be argued that default gateways are not necessary, making this option correct in that specific context.

E

If the exam question specifically asked about the advantages of DHCP in wireless networks only, stating that centralized DHCP is useful solely for wireless networks could be correct. For example, a question could focus on how centralized DHCP simplifies management in large wireless deployments.

Why candidates pick the wrong answer

C

Candidates may be tempted by this option due to a misunderstanding of how DHCP operates across different network layers, mistakenly believing that centralization inherently eliminates the need for relay agents.

D

Candidates may choose this option due to a misunderstanding of DHCP's role in network configuration, mistakenly believing that centralizing DHCP would simplify or negate the need for default gateways in all scenarios.

E

Candidates might choose this option due to a common misconception that centralized services are primarily associated with wireless networks, especially in discussions about mobility and device management, leading to a knowledge gap regarding its broader applicability.

107
Multi-Selecteasy

A support engineer is narrowing a Log Analytics query to only failed backup jobs and wants to show only the needed columns. Which two KQL operators should they use? Select two.

Select 2 answers
A.extend
B.join
C.project
D.summarize
E.where
AnswersC, E

The project operator narrows the query output by retaining only the specified columns and discarding all others. This is useful when a table has many fields but you only need a few, such as timestamp and status. It is the correct column-level reduction operator for trimming the result set to only the required data.

Why this answer

The `where` operator filters rows based on a condition, so it is used to narrow results to only failed backup jobs (e.g., `where Status == "Failed"`). The `project` operator selects a subset of columns, allowing the engineer to display only the needed columns (e.g., `project JobName, Status, StartTime`). Together, they achieve both row filtering and column selection in a Kusto Query Language (KQL) query.

Exam trap

The trap here is that candidates often confuse `project` with `extend` (thinking both are for column manipulation) or incorrectly assume `summarize` can filter rows, when in fact `summarize` aggregates and loses row-level detail.

Why the other options are wrong

A

The 'extend' operator adds a new calculated column to the result set, but it does not filter rows or remove existing columns. The question requires narrowing to only failed backup jobs (filtering) and showing only needed columns (projection), which is achieved by 'where' and 'project', not 'extend'.

B

The 'join' operator is used to combine rows from two tables based on a matching key, not to filter rows or select columns. The question asks for narrowing results to only failed backup jobs (filtering) and showing only needed columns (projection), which require 'where' and 'project'.

D

The 'summarize' operator aggregates data into groups, but the question requires filtering rows (failed jobs) and selecting columns, not aggregation. It does not filter or project columns.

When would these options actually be correct?

A

A question asks: 'You need to add a new column that calculates the duration of each backup job in hours based on existing start and end time columns. Which KQL operator should you use?' In that scenario, 'extend' is correct because it creates a calculated column without removing other columns.

B

A question that asks: 'You need to combine backup job logs from two different Azure regions into a single result set based on job ID. Which KQL operator should you use?' In that scenario, 'join' would be correct.

D

A question asks: 'You need to count the number of failed backup jobs per day. Which KQL operator should you use?' In that scenario, 'summarize' with count() and bin() would be correct.

Why candidates pick the wrong answer

A

Candidates may think 'extend' can both add columns and limit output, confusing it with 'project'. They might also believe that extending the query to include only certain columns is possible, but 'extend' always retains all original columns.

B

Candidates may confuse 'join' with 'project' because both can reshape the result set, or they might think joining multiple tables is necessary to get the required columns, even though the question only involves a single table.

D

Candidates may think 'summarize' can reduce columns by grouping, but they overlook that it changes the row structure and doesn't simply select columns like 'project' does.

108
MCQmedium

You need to run a PowerShell script inside a newly deployed Azure virtual machine to configure application settings immediately after deployment. Which feature should you use?

A.Azure Policy
B.A Custom Script Extension
C.Boot diagnostics
D.An availability set
AnswerB

A Custom Script Extension runs scripts inside the virtual machine.

Why this answer

The Custom Script Extension (CSE) is the correct choice because it allows you to run a PowerShell script on an Azure VM after deployment, making it ideal for configuring application settings. CSE downloads and executes scripts on the VM using the Azure VM agent, and it can be invoked during VM creation or post-deployment via ARM templates, Azure CLI, or PowerShell.

Exam trap

The trap here is that candidates confuse Azure Policy (which governs resource configuration at the Azure control plane) with the Custom Script Extension (which operates inside the guest OS), leading them to incorrectly select Azure Policy for post-deployment script execution.

Why the other options are wrong

A

Azure Policy enforces compliance rules on resources but cannot execute scripts inside a VM after deployment; it only audits or applies configurations at the resource level.

C

Boot diagnostics captures serial console output and screenshots for troubleshooting boot failures, but it does not execute scripts or configure applications inside the VM after deployment.

D

An availability set is used to ensure high availability of VMs by distributing them across fault and update domains, not for running scripts after deployment.

When would these options actually be correct?

A

You need to ensure that all VMs in a subscription have a specific tag applied automatically. Azure Policy with a 'deny' or 'modify' effect would be correct to enforce tagging rules during or after deployment.

C

You need to troubleshoot why an Azure VM is not booting properly and want to view the console logs or screenshot to diagnose the issue.

D

You need to ensure that at least two VMs hosting a critical application are not affected by the same hardware failure or maintenance event. In this scenario, deploying the VMs in an availability set would be the correct answer.

Why candidates pick the wrong answer

A

Candidates may confuse Azure Policy's ability to apply configurations (like guest configuration) with running arbitrary scripts, or think policy can trigger script execution.

C

Candidates may confuse boot diagnostics with post-deployment configuration tools, thinking it can run scripts or apply settings during boot.

D

Candidates may confuse availability sets with deployment automation or post-deployment configuration tasks, thinking they provide a way to manage application settings across multiple VMs.

109
MCQmedium

You want Azure to recommend ways to reduce cost, improve performance, and strengthen security across your subscriptions. Which service should you use?

A.Azure Advisor
B.Azure Policy
C.Azure Backup
D.Virtual network peering
AnswerA

Azure Advisor is the correct answer because it continuously analyzes your Azure resource configuration and telemetry to produce personalized, actionable recommendations in five categories: Cost, Performance, Reliability, Security, and Operational Excellence. Its cost-specific recommendations identify idle or underutilized virtual machines, suggest right-sizing opportunities, and flag reservation or savings-plan purchase options, directly answering the goal of reducing spend. Advisor also surfaces these findings through the Azure portal, CLI, and API, enabling you to implement the suggested changes immediately.

Why this answer

Azure Advisor is the correct service because it provides personalized recommendations across your Azure subscriptions to optimize for cost, performance, reliability, and security. It analyzes your resource configuration and usage telemetry, then generates actionable recommendations such as right-sizing underutilized VMs, enabling geo-redundant storage, or applying security rules. This directly matches the question's requirement for a unified tool that suggests improvements in all three areas.

Exam trap

The trap here is that candidates often confuse Azure Advisor (a recommendation engine) with Azure Policy (a governance enforcement tool), mistakenly thinking Policy can also suggest cost or performance improvements when it only enforces rules and audits compliance.

Why the other options are wrong

B

Azure Policy enforces compliance rules and governance, but it does not provide recommendations for cost, performance, or security optimization. Azure Advisor is the service specifically designed to deliver personalized best practice recommendations across these areas.

C

Azure Backup is a service for backing up data and workloads, not for providing recommendations to reduce cost, improve performance, or strengthen security across subscriptions.

D

Virtual network peering connects Azure virtual networks for traffic routing, but it does not provide recommendations for cost, performance, or security across subscriptions.

When would these options actually be correct?

B

Azure Policy would be correct in a question like: 'You need to ensure that all resources in a subscription are deployed only in allowed regions. Which service should you use?'

C

When the question asks for a service to protect data and ensure recoverability in case of accidental deletion or disaster, Azure Backup would be the correct answer.

D

A question asks: 'You need to enable private communication between two virtual networks in different Azure regions with low latency. Which service should you use?'

Why candidates pick the wrong answer

B

Candidates may confuse Azure Policy's governance capabilities with Advisor's advisory role, thinking that enforcing rules also implies generating optimization recommendations.

C

Candidates may associate 'strengthen security' with backup as a form of data protection, but the question specifically asks for recommendations, not data protection services.

D

Candidates may think 'peering' implies a broad advisory role, or they confuse network connectivity with governance and optimization services.

110
MCQmedium

A line-of-business app runs on two VMs in an Azure region that supports availability zones. The business wants protection from a datacenter failure and wants the VMs placed in different physical locations within the region. Which deployment choice should be used?

A.An availability set with two fault domains
B.Two availability zones with one VM in each zone
C.A proximity placement group for both VMs
D.A single larger VM size with Premium SSD
AnswerB

Availability zones place resources in separate physical datacenters within a region, improving resilience to zone failure.

Why this answer

Availability zones are physically separate datacenters within an Azure region, each with independent power, cooling, and networking. Placing one VM in each of two zones ensures that if one datacenter fails, the other VM remains available. This directly meets the requirement for protection from a datacenter failure with VMs in different physical locations.

Exam trap

The trap here is that candidates often confuse availability sets (which protect against rack failures) with availability zones (which protect against datacenter failures), leading them to choose an availability set when the question explicitly requires different physical locations within the region.

Why the other options are wrong

A

An availability set with two fault domains protects against rack-level failures within a single datacenter, not against a full datacenter failure. The question requires physical separation across different datacenters, which only availability zones provide.

C

A proximity placement group reduces network latency by co-locating VMs, but it does not protect against datacenter failure because VMs can still be placed in the same datacenter or fault domain.

D

A single larger VM with Premium SSD does not provide protection from a datacenter failure because it is a single VM that can still be affected by a datacenter outage, regardless of its size or disk type.

When would these options actually be correct?

A

If the question asked for protection against hardware failures within a single datacenter (e.g., server rack or network switch failure) and required high availability for VMs in the same datacenter, an availability set with multiple fault domains would be correct.

C

A proximity placement group would be correct if the question required minimizing network latency between VMs for a tightly coupled workload, such as a high-performance computing application, without concern for datacenter-level failure.

D

This option would be correct in a scenario where the requirement is to maximize performance for a single VM running a critical application, with no need for high availability across datacenters, and the budget allows for a larger VM and premium storage.

Why candidates pick the wrong answer

A

Candidates may confuse fault domains with availability zones, thinking that multiple fault domains provide datacenter-level redundancy, when in fact they only distribute VMs across different racks within one datacenter.

C

Candidates may confuse proximity placement groups with high availability features, thinking that grouping VMs together provides redundancy, or they may overlook the specific requirement for protection from a datacenter failure.

D

Candidates may think that a larger, more powerful VM with faster storage inherently provides better reliability, confusing performance enhancements with fault tolerance.

111
MCQmedium

Why is centralized logging especially helpful during incident investigation?

A.It helps investigators analyze related events from multiple devices in one place.
B.It guarantees that no attack can ever succeed.
C.It replaces the need for access control.
D.It forces all devices to use the same VLAN.
AnswerA

This is correct because centralized collection improves visibility and correlation.

Why this answer

Centralized logging aggregates logs from multiple sources (servers, firewalls, applications) into a single repository, enabling investigators to correlate events across devices during an incident. This eliminates the need to manually access each device's local logs, speeding up root cause analysis and providing a unified timeline of activities.

Exam trap

The trap here is that candidates may confuse centralized logging with a security control that prevents attacks, rather than recognizing it as a detective and forensic tool for post-incident analysis.

Why the other options are wrong

B

Option B is incorrect because centralized logging does not guarantee the prevention of attacks; it merely provides a means to analyze and respond to incidents after they occur. Security measures must be implemented to prevent attacks, which is outside the scope of logging.

C

Access control is a separate security measure that governs who can view or manipulate logs; centralized logging does not eliminate the need for such controls. Therefore, this option incorrectly suggests that centralized logging alone suffices for security management.

D

This option is wrong because forcing all devices to use the same VLAN does not inherently improve logging capabilities or facilitate incident investigation. Centralized logging focuses on aggregating logs, not on network segmentation.

When would these options actually be correct?

B

In a question focused on security assurance measures, such as 'What guarantees can be implemented to ensure network security?' option B could be correct if it referred to a hypothetical security framework that includes proactive measures to prevent attacks.

C

In a question asking about the benefits of centralized logging in a context where security measures are being re-evaluated, one might argue that centralized logging could simplify access control by providing a single point of management for log access permissions, thus making it a valid answer.

D

In a different context, a question might ask about network configuration best practices for improving security. If the question specified that uniform VLANs enhance security by isolating traffic types, then this option could be correct as it relates to network management.

Why candidates pick the wrong answer

B

Candidates might choose this option due to a misunderstanding of the role of logging in security, mistakenly believing that effective logging inherently prevents attacks rather than just assists in their investigation.

C

Candidates may mistakenly believe that centralized logging simplifies security management to the point of negating the need for access control, reflecting a common misconception about the relationship between logging and security protocols.

D

Candidates might choose this option because they associate VLANs with network security and assume that uniformity in network design leads to better management and oversight, including logging practices.

112
MCQmedium

Based on the exhibit, what should the administrator do first to restore the missing data disk?

A.Create a managed disk from the snapshot, then attach it to the VM.
B.Recreate the VM from the marketplace image and restore applications manually.
C.Convert the snapshot directly into an operating system disk and replace the VM.
D.Increase the VM size so that Azure automatically recreates the missing disk.
AnswerA

A snapshot is a point-in-time copy of a disk, and the normal recovery path is to create a new managed disk from that snapshot. After the disk is created, it can be attached to the VM or a recovery VM. This keeps the OS disk untouched and minimizes impact while restoring the missing data volume.

Why this answer

The snapshot represents the missing data disk, not the OS disk. To restore it, you must first create a managed disk from the snapshot (using Azure CLI, PowerShell, or portal), then attach that disk to the VM. This preserves the existing VM configuration and applications without redeployment.

Exam trap

The trap here is that candidates may confuse a data disk snapshot with an OS disk snapshot and attempt to replace the VM's OS disk, or assume that Azure automatically recreates missing disks when resizing the VM.

Why the other options are wrong

B

The question is about restoring a missing data disk, not the OS disk or the entire VM. Recreating the VM from the marketplace image would lose all OS-level customizations and applications, and does not restore the data disk.

C

Converting a snapshot directly into an OS disk and replacing the VM would overwrite the operating system, not restore a missing data disk. The snapshot is of a data disk, not an OS disk, so this action would corrupt the VM's OS.

D

Increasing VM size does not automatically recreate missing data disks; Azure only adjusts compute and storage capacity, not individual disk attachments.

When would these options actually be correct?

B

This option would be correct if the question asked: 'An administrator needs to replace a corrupted OS disk on a VM that was created from a marketplace image. The VM has no custom data on the OS disk. What should the administrator do first?'

C

This option would be correct if the question stated that the VM's OS disk was corrupted or missing, and the snapshot was taken from the original OS disk. In that scenario, creating a managed disk from the snapshot and attaching it as the OS disk would restore the VM's operating system.

D

In a scenario where a VM is experiencing performance issues due to insufficient IOPS or throughput, and the question asks for the first step to resolve the issue, increasing the VM size (to a larger SKU) would be correct to provide better disk performance.

Why candidates pick the wrong answer

B

Candidates may think that recreating the VM is a straightforward way to fix disk issues, especially if they are unaware that snapshots can be used to create managed disks and attach them to existing VMs.

C

Candidates may confuse a data disk snapshot with an OS disk snapshot, or assume that any snapshot can be used to replace the entire VM, overlooking the distinction between OS and data disks.

D

Candidates may mistakenly believe that Azure automatically manages disk redundancy or recreation when resizing, confusing VM resizing with disk repair actions.

113
MCQeasy

Based on the exhibit, administrators can reach a web server from the approved subnet, but connections still fail. What is the most likely reason?

A.The allow rule is blocked because inbound rules are evaluated from highest priority number to lowest.
B.The deny rule has a higher priority and matches the traffic before the allow rule.
C.The destination port must be changed to 80 because NSGs cannot allow TCP 443.
D.The subnet requires a route table before HTTPS can be permitted.
AnswerB

Azure NSG evaluation uses the lowest priority number first. In the exhibit, the deny rule at priority 100 matches TCP 443 from Any, so it blocks the traffic before the later allow rule at priority 200 is considered. To fix the issue, the allow rule must be placed above the deny rule or the deny rule must be narrowed.

Why this answer

Network Security Groups (NSGs) evaluate rules in order of priority, where a lower priority number (e.g., 100) is evaluated before a higher number (e.g., 200). If a deny rule with a higher priority (lower number) matches the traffic before the allow rule, the traffic is blocked. In this scenario, the deny rule (priority 100) matches the source subnet and destination port 443 before the allow rule (priority 200) can permit it, causing connections to fail.

Exam trap

The trap here is that candidates often assume NSG rules are evaluated in the order they appear in the portal (top-to-bottom) or that allow rules override deny rules regardless of priority, but Azure explicitly uses the priority number to determine evaluation order, and a higher-priority deny rule will block traffic even if a lower-priority allow rule exists.

Why the other options are wrong

A

In Azure NSGs, rules are evaluated from highest priority (lowest number) to lowest priority (highest number), not from highest priority number to lowest. The allow rule with a lower priority number would be evaluated before a deny rule with a higher priority number, so the order of evaluation is not the issue here.

C

NSGs can allow TCP port 443 (HTTPS) just like any other port; there is no inherent restriction that prevents NSGs from permitting HTTPS traffic.

D

Route tables control traffic routing between subnets and networks, not the security filtering of inbound HTTPS traffic. NSGs alone can permit or deny traffic based on rules; a missing route table does not block HTTPS unless the traffic needs to traverse a virtual appliance or another network segment, which is not indicated.

When would these options actually be correct?

A

This option would be correct if the question stated that NSG rules are evaluated from lowest priority number to highest (i.e., highest priority first), and a lower priority allow rule was being blocked by a higher priority deny rule. For example, 'An NSG has an allow rule with priority 200 and a deny rule with priority 100. Traffic matches both, but the allow rule is not effective.

Why?'

C

If the question stated that the NSG rule was configured to allow TCP 443 but the web server only listens on port 80, then the destination port mismatch would be the issue. In that scenario, changing the rule to port 80 would be correct.

D

In a scenario where a subnet needs to send traffic to an on-premises network via a VPN or ExpressRoute, and no route table with the appropriate route (e.g., 0.0.0.0/0 to the virtual network gateway) is associated with the subnet, causing outbound traffic to fail. The question would specify that traffic to the web server must go through a gateway.

Why candidates pick the wrong answer

A

Candidates may confuse the priority numbering system, thinking that a higher priority number means higher precedence, when in fact a lower number indicates higher priority. They might also misinterpret the evaluation order as being from highest number to lowest.

C

Candidates may mistakenly believe that NSGs have limited port support or that HTTPS requires special handling, leading them to think port 443 cannot be allowed.

D

Candidates may confuse the function of NSGs (security filtering) with route tables (traffic routing), assuming that a route table is required for any traffic to be permitted, or they may think that HTTPS requires a specific route to the internet.

114
MCQhard

A web app and a VM scale set both need the same Azure identity to read secrets from Key Vault. The identity must survive redeployment, and the team wants to remove it centrally without changing each resource individually. Which identity type should they use?

A.A system-assigned managed identity on each resource.
B.A user-assigned managed identity attached to both resources.
C.A service principal with a client secret stored in application settings.
D.A resource lock on the Key Vault to preserve the secret access path.
AnswerB

A user-assigned identity is reusable across resources and can be managed independently of any single workload.

Why this answer

A user-assigned managed identity (B) is the correct choice because it is created as a standalone Azure resource, can be attached to multiple Azure resources (e.g., a web app and a VM scale set), and persists independently of those resources. This allows the identity to survive redeployment of either resource and enables centralized removal (by deleting the user-assigned identity) without needing to modify each resource individually.

Exam trap

The trap here is that candidates often confuse system-assigned managed identities (which are simpler but resource-bound) with user-assigned managed identities, failing to recognize that only user-assigned identities can be shared across multiple resources and survive independent redeployment.

Why the other options are wrong

A

System-assigned managed identities are tied to each resource's lifecycle and cannot be shared across resources; they also cannot be centrally removed without updating each resource individually.

C

A service principal with a client secret stored in application settings does not survive redeployment because the secret must be manually rotated and stored, and it cannot be centrally removed without updating each resource's configuration.

D

A resource lock prevents accidental deletion or modification of the Key Vault, but it does not provide any identity for the web app and VM scale set to authenticate to Key Vault. The question asks for an identity type, not a protection mechanism.

When would these options actually be correct?

A

A question where a single resource (e.g., one VM) needs an identity that is automatically removed when the resource is deleted, and no sharing or central management is required.

C

A service principal with a client secret would be correct if the question required an identity that can be used by applications running outside Azure (e.g., on-premises) or if the identity must support client credential flows for non-Azure resources.

D

A resource lock would be correct if the question were: 'Which feature should be used to prevent accidental deletion of a Key Vault that stores critical secrets?'

Why candidates pick the wrong answer

A

Candidates may think system-assigned identities are simpler to set up and assume they can be reused across resources, overlooking the requirement for a shared identity that survives redeployment and allows central removal.

C

Candidates may confuse service principals with managed identities, thinking a service principal is the only way to assign a shared identity across resources, or they may overlook the requirement for central removal and survival of redeployment.

D

Candidates may confuse resource locks with access control, thinking that locking the Key Vault somehow preserves the identity's access path, but locks do not grant or manage identities.

115
Multi-Selectmedium

A help desk analyst needs a KQL query that identifies each VM's most recent heartbeat so computers can be flagged if their last check-in is older than 20 minutes. Which two KQL elements should be used? Select two.

Select 2 answers
A.Query the Heartbeat table, because it stores the heartbeat records for Azure VMs.
B.Summarize max(TimeGenerated) by Computer to get the most recent heartbeat per VM.
C.Join the results to AzureActivity to calculate service health.
D.Filter where TimeGenerated is older than 20 minutes before summarizing.
E.Use the Perf table because it stores heartbeat timestamps.
AnswersA, B

The Heartbeat table is the correct source because the Log Analytics agent emits a Heartbeat record every minute by default, capturing the VM's Computer name, TimeGenerated, and agent health metadata. These records are explicitly designed to indicate that the VM agent is alive and communicating with the workspace, making them the authoritative signal for determining each VM's last check-in time. Without these records, there is no direct way to determine the freshest contact from a VM in Log Analytics.

Why this answer

The Heartbeat table in Azure Monitor Logs (Log Analytics) is specifically designed to store heartbeat records from Azure Monitor Agent (AMA) or the legacy Log Analytics agent. Each heartbeat record contains a TimeGenerated timestamp, making it the authoritative source for determining when a VM last reported its health status.

Exam trap

The trap here is that candidates mistakenly think filtering before summarizing is more efficient, but doing so removes the very data needed to identify the most recent heartbeat, leading to incorrect results.

Why the other options are wrong

C

Joining to AzureActivity is unnecessary for identifying VMs with heartbeats older than 20 minutes; the Heartbeat table alone provides the required timestamp data.

D

Filtering where TimeGenerated is older than 20 minutes before summarizing would exclude recent heartbeats, making it impossible to identify the most recent heartbeat per VM. The correct approach is to summarize first to get the latest timestamp per computer, then filter on that result.

E

The Perf table stores performance counters (e.g., CPU, memory), not heartbeat timestamps. Heartbeat data is stored in the Heartbeat table, so using Perf would not yield the required heartbeat information.

When would these options actually be correct?

C

When the question requires correlating VM heartbeat status with Azure service health events, such as identifying VMs that missed heartbeats during a service outage.

D

This option would be correct in a question asking: 'Which KQL query element identifies VMs that have not sent a heartbeat in the last 20 minutes?' where you first summarize max(TimeGenerated) by Computer, then filter where max_TimeGenerated is older than 20 minutes.

E

In a scenario where you need to analyze VM performance metrics (e.g., average CPU usage over the last hour) and flag VMs with high resource consumption, querying the Perf table would be correct.

Why candidates pick the wrong answer

C

Candidates may think AzureActivity is needed to check service health or correlate with VM status, but the Heartbeat table already contains the necessary check-in timestamps.

D

Candidates may think filtering by time first reduces data volume, but they overlook that this removes the most recent records needed to determine the last check-in time per VM.

E

Candidates may confuse the Perf table with the Heartbeat table, assuming that performance data includes check-in timestamps, or they may think 'heartbeat' is a performance metric.

116
MCQeasy

Before changing a managed data disk attached to a VM, you want a point-in-time copy that can be restored later if the change fails. What should you create?

A.Managed disk snapshot
B.Availability set
C.Image
D.Resource lock
AnswerA

A managed disk snapshot is a read-only, full point-in-time copy of a managed disk that can be taken while the VM remains running. It preserves the exact block-level state of the disk, allowing you to restore the disk to its pre-change state or create a new disk from the snapshot. Because it directly captures the disk's data without requiring downtime or generalization, it is the appropriate artifact for protecting the disk before altering it.

Why this answer

A managed disk snapshot is a point-in-time, read-only copy of a managed disk that can be used to restore the disk to that exact state if a change fails. Snapshots are incremental, capturing only the changes since the last snapshot, and they exist independently of the source disk, allowing you to create a new disk from the snapshot for recovery.

Exam trap

The trap here is that candidates often confuse a snapshot with an image, thinking both serve the same purpose, but an image is used for deployment and includes OS configuration, while a snapshot is a raw disk copy for recovery without any generalization.

Why the other options are wrong

B

An availability set is a logical grouping of VMs to ensure high availability across fault domains and update domains; it does not provide point-in-time copies of disks.

C

An image is a template used to create new VMs, not a point-in-time copy of an existing disk for backup or restore purposes.

D

A resource lock prevents accidental deletion or modification of a resource, but it does not create a point-in-time copy of the disk data. It cannot be used to restore the disk to a previous state after a change fails.

When would these options actually be correct?

B

When the question asks for a feature that ensures VM redundancy during planned or unplanned maintenance, such as 'You need to deploy two VMs that are placed on different physical hardware to protect against rack failures. What should you create?'

C

When you need to create multiple identical VMs from a generalized source, such as deploying a fleet of web servers from a custom OS configuration.

D

When the question asks for a mechanism to prevent accidental deletion or modification of a critical resource, such as a production VM or storage account, to enforce governance and compliance policies.

Why candidates pick the wrong answer

B

Candidates may confuse availability sets with backup or snapshot capabilities because both are related to protecting VMs, but availability sets focus on uptime, not data recovery.

C

Candidates may confuse 'image' with 'snapshot' because both capture disk state, but images are for deployment templates, not incremental backups.

D

Candidates may confuse resource locks with backup or snapshot functionality, thinking that locking the resource preserves its state, or they may overestimate the protective capabilities of locks.

117
MCQmedium

A VM in subnet S1 must accept RDP only from the administrator workstation at 203.0.113.25. The subnet NSG has a custom inbound deny-all rule at priority 200 and a custom allow-RDP rule at priority 300 for source 203.0.113.25, destination Any, TCP 3389. RDP is still blocked from the workstation. What should the administrator change?

A.Move the allow-RDP rule to a lower priority number than 200.
B.Change the allow rule from inbound to outbound traffic.
C.Change the protocol from TCP to Any on the deny-all rule.
D.Attach a user-defined route so the workstation can reach the VM directly.
AnswerA

NSG rules are processed in priority order, where lower numbers are evaluated first. Because the deny-all rule at priority 200 is hit before the allow rule at 300, the RDP traffic is denied before it can match the allow entry. Moving the allow rule to a number lower than 200, such as 100, ensures the authorized workstation is permitted while the later deny-all rule still blocks everyone else.

Why this answer

Network Security Group (NSG) rules are evaluated in priority order, with lower numbers having higher precedence. The deny-all rule at priority 200 is evaluated before the allow-RDP rule at priority 300, so the deny rule blocks the RDP traffic before the allow rule can be applied. To allow RDP from the workstation, the allow-RDP rule must have a lower priority number (e.g., 100) than the deny-all rule, ensuring it is evaluated first.

Exam trap

The trap here is that candidates often assume rules are evaluated in the order they appear in the portal (top to bottom) or that a more specific rule (allow-RDP) overrides a general rule (deny-all), but Azure NSGs strictly use numeric priority, not specificity or order of creation.

Why the other options are wrong

B

The question concerns inbound RDP traffic to the VM; an outbound rule would not affect inbound connections. The NSG is applied to the subnet, so outbound rules control traffic leaving the subnet, not incoming RDP.

C

Changing the protocol from TCP to Any on the deny-all rule would not resolve the issue because the deny-all rule already blocks all traffic, including RDP. The problem is that the allow-RDP rule at priority 300 is never evaluated because the deny-all rule at priority 200 is processed first.

D

A user-defined route (UDR) controls traffic routing between subnets or to on-premises, not NSG rule evaluation. Since the workstation and VM are in the same virtual network, traffic already reaches the VM; the issue is that the NSG deny-all rule at priority 200 blocks RDP before the allow rule at priority 300 is evaluated.

When would these options actually be correct?

B

If the question required the VM to initiate RDP connections to the administrator workstation (e.g., for remote management from the VM), then an outbound allow rule would be correct. For example: 'A VM must be able to RDP to a management server at 203.0.113.25.'

C

This option would be correct in a scenario where the deny-all rule is set to block only TCP traffic, and the required traffic uses a different protocol (e.g., UDP). Changing the protocol to Any would then block all traffic, which might be desired to tighten security.

D

A VM in subnet S1 cannot communicate with a VM in subnet S2 even though both NSGs allow traffic. The correct solution is to create a user-defined route in subnet S1's route table with next hop as the virtual appliance or direct peering to enable connectivity between subnets.

Why candidates pick the wrong answer

B

Candidates may confuse inbound and outbound rule directions, thinking that allowing traffic from the workstation requires an outbound rule on the subnet NSG, not realizing that inbound rules control traffic entering the subnet.

C

Candidates may think that the deny-all rule is too restrictive and that making it less specific (by changing protocol to Any) would allow the allow rule to take effect, not realizing that the priority order is the actual issue.

D

Candidates may think that routing is the problem because RDP is blocked, but they overlook that NSG rules are evaluated in priority order and that a lower priority number means higher precedence.

118
MCQmedium

An organization has an Azure Storage account that must be reachable from Azure VMs and from an on-premises application. Internet access to the storage account must be disabled, and the service should be accessible only over private IP paths. Which solution best meets the requirement?

A.Enable a service endpoint on the Azure VNet and keep the storage account public endpoint enabled.
B.Use a private endpoint for the storage account and connect on-premises through a site-to-site VPN or ExpressRoute path.
C.Use VNet peering only and leave the storage account firewall open to selected public IPs.
D.Assign a public IP address to the storage account and restrict access with an NSG.
AnswerB

A private endpoint gives the storage account a private IP in a VNet, which keeps traffic off the public internet. Because the on-premises application also needs access, the on-premises network must have private connectivity to that VNet, typically through a site-to-site VPN gateway or ExpressRoute. This design satisfies both private access and the no-public-access requirement.

Why this answer

A private endpoint assigns the storage account a private IP address from the Azure VNet, making it accessible over a private IP path. On-premises connectivity is achieved via a site-to-site VPN or ExpressRoute, which extends the private network. This configuration disables internet access by blocking the public endpoint, meeting the requirement to disable internet access.

Exam trap

The trap here is that candidates often confuse service endpoints with private endpoints, thinking service endpoints also provide private-only access, but service endpoints still use the public endpoint and do not block internet access by default.

Why the other options are wrong

A

Keeping the storage account public endpoint enabled violates the requirement to disable internet access; service endpoints still use the public endpoint, just with network rules.

C

VNet peering only connects VNets within Azure, not on-premises networks. Leaving the firewall open to selected public IPs still exposes the storage account to the internet, violating the requirement to disable internet access.

D

Assigning a public IP to a storage account is not supported; storage accounts use a public endpoint by default. NSGs cannot be applied to a storage account, only to subnets or NICs, and this would not disable internet access.

When would these options actually be correct?

A

If the requirement were to restrict access to Azure VMs only (no on-premises) and allow internet access to be blocked via firewall rules, enabling a service endpoint on the VNet and configuring the storage firewall to deny all but that VNet would be correct.

C

If the requirement was to connect two Azure VNets to access a storage account without traversing the internet, and on-premises access was not needed, VNet peering with firewall rules allowing traffic from the peered VNet's private IPs would be correct.

D

This option would be correct if the question asked about securing an Azure VM's outbound traffic to the internet, where assigning a public IP to the VM and applying an NSG to its subnet can control inbound/outbound access.

Why candidates pick the wrong answer

A

Candidates may confuse service endpoints with private endpoints, thinking that service endpoints provide private IP connectivity, when they actually still use the public endpoint with added network restrictions.

C

Candidates may think VNet peering provides private connectivity and that firewall IP restrictions are sufficient, overlooking that on-premises connectivity requires additional private paths like VPN or ExpressRoute.

D

Candidates may mistakenly think that a public IP and NSG can be applied to a storage account like a VM, and that restricting with NSG is equivalent to disabling internet access.

119
MCQeasy

Based on the exhibit, which next hop will Azure use for traffic from the VM to 10.50.1.20?

A.Virtual appliance 10.1.1.4, because all traffic always follows the default route.
B.Internet, because the /24 route is more specific than the default route.
C.Virtual network, because private IP addresses always stay inside Azure.
D.No route is selected, so the packet is dropped before leaving the subnet.
AnswerB

Azure uses longest-prefix match when selecting a route. The destination 10.50.1.20 falls within 10.50.1.0/24, which is more specific than the 0.0.0.0/0 default route. Therefore, the Internet next hop is chosen instead of the virtual appliance.

Why this answer

Azure uses the most specific route (longest prefix match) to determine next hop. The route for 10.50.1.0/24 with next hop Internet is more specific than the default route 0.0.0.0/0, so traffic to 10.50.1.20 will be forwarded to the Internet, not the virtual appliance.

Exam trap

The trap here is that candidates assume private IP traffic always stays within Azure or follows the default route, but Azure prioritizes more specific routes regardless of IP address range.

Why the other options are wrong

A

The default route (0.0.0.0/0) is less specific than the /24 route to 10.50.1.0/24, so Azure uses the more specific route (Internet) instead of the virtual appliance.

C

The VM's traffic to 10.50.1.20 is destined for a public IP range, and Azure's system routes do not force private IP traffic to stay inside Azure; instead, the most specific route (the /24 route to the Internet) is used.

D

Azure does not drop packets for a valid private IP like 10.50.1.20; it uses the most specific route. A /24 route to the Internet exists, so traffic is forwarded, not dropped.

When would these options actually be correct?

A

If the question had a route table with only a default route (0.0.0.0/0) pointing to the virtual appliance and no more specific route for 10.50.1.0/24, then traffic to 10.50.1.20 would follow the default route to the virtual appliance.

C

This option would be correct if the destination IP were within the virtual network's address space (e.g., 10.1.0.0/16) and no custom route overrides the default system route, so traffic would stay within the virtual network.

D

This option would be correct if the question stated that no route matches the destination IP (e.g., 10.50.1.20) in the effective routes table, and the default route is also absent, causing Azure to drop the packet.

Why candidates pick the wrong answer

A

Candidates may mistakenly think the default route always applies or forget that more specific routes take precedence over the default route.

C

Candidates may mistakenly believe that all private IP addresses are non-routable and must remain within Azure, ignoring that Azure can route private IP traffic to the Internet via a default route or custom routes.

D

Candidates may think that if no explicit route matches, Azure drops the packet, forgetting that the default route (0.0.0.0/0) always exists and matches any IP not covered by a more specific route.

120
Multi-Selecteasy

You want to send a storage account's platform logs to a workspace so they can be queried with KQL later. Which two items are part of the required configuration? Select two.

Select 2 answers
A.Diagnostic settings on the storage account
B.A Log Analytics workspace
C.A network security group
D.A Recovery Services vault
E.An availability zone assignment
AnswersA, B

A diagnostic setting acts as the export rule configured directly on the storage account resource. It specifies which platform log categories (such as StorageRead, StorageWrite, and StorageDelete) and which metrics are streamed to a selected destination, like a Log Analytics workspace. Without this setting, the workspace never receives the storage account's telemetry, even if the workspace exists and is healthy.

Why this answer

A is correct because diagnostic settings on the storage account are the mechanism that defines which platform logs (e.g., storage read/write/delete operations) are collected and where they are sent. Without configuring diagnostic settings, the storage account does not emit logs to any destination. B is correct because a Log Analytics workspace is the required destination for storing the logs so they can be queried with KQL; it provides the ingestion and retention infrastructure for log analytics.

Exam trap

The trap here is that candidates often confuse the destination (Log Analytics workspace) with the source configuration (diagnostic settings), or mistakenly think that network-level components like NSGs or redundancy features like availability zones are involved in log routing.

Why the other options are wrong

C

A network security group (NSG) filters network traffic to/from Azure resources, but it does not collect or route platform logs to a Log Analytics workspace. Diagnostic settings on the resource (like the storage account) are required to send logs to the workspace.

D

A Recovery Services vault is used for backup and disaster recovery (Azure Backup, Site Recovery), not for collecting platform logs to a Log Analytics workspace. Diagnostic settings and a Log Analytics workspace are the required components.

E

Availability zone assignment is a high-availability feature for Azure resources, not a component for collecting platform logs into a Log Analytics workspace. Diagnostic settings and a Log Analytics workspace are the required items.

When would these options actually be correct?

C

When the question asks: 'You need to enable logging of network traffic flows to a storage account for later analysis. Which Azure resource should you configure to capture the traffic logs?' In that case, an NSG with flow logs enabled would be the correct answer.

D

When the question asks: 'You need to configure backup for Azure virtual machines. Which Azure resource should you create to store backup data?' In that case, a Recovery Services vault is the correct answer.

E

In a question about ensuring high availability for a storage account, you might need to select an availability zone assignment as part of the configuration to protect against datacenter failures.

Why candidates pick the wrong answer

C

Candidates may confuse network security groups with log collection because NSGs can generate diagnostic logs (like flow logs), but those logs are not sent to a workspace via the NSG itself—they require a separate diagnostic setting.

D

Candidates may confuse Recovery Services vault with Log Analytics workspace, thinking both are 'storage' for logs, or they may associate 'vault' with secure log storage.

E

Candidates may confuse availability zones with the need for redundancy in log collection, or they might think that distributing resources across zones is necessary for logging.

121
MCQmedium

You need to collect guest operating system performance counters and Windows event logs from several Azure virtual machines into a central queryable platform. Which Azure component should you configure?

A.A Log Analytics workspace
B.A Recovery Services vault
C.An Azure Policy initiative
D.A route table
AnswerA

A Log Analytics workspace is the required destination for guest OS performance counters and Windows event logs. The Azure Monitor Agent (or legacy Log Analytics agent) streams this telemetry into the workspace, where it can be queried with KQL, visualized in workbooks, and retained according to your data retention policies. Without a workspace, there is no centralized repository for the collected metrics and logs, making alerting and diagnostics impossible.

Why this answer

A Log Analytics workspace is the correct Azure component for collecting guest OS performance counters and Windows event logs from Azure VMs. It serves as a central repository where diagnostic data from Azure Monitor agents (such as the Log Analytics agent or Azure Monitor Agent) is ingested, stored, and made available for querying via Kusto Query Language (KQL). This enables you to analyze performance metrics and event logs across multiple VMs in a unified, queryable platform.

Exam trap

The trap here is that candidates often confuse a Log Analytics workspace with a Recovery Services vault, mistakenly thinking that backup vaults can also store and query performance data, when in fact Recovery Services vaults are solely for backup and disaster recovery operations.

Why the other options are wrong

B

A Recovery Services vault is used for backup and disaster recovery (Azure Backup and Site Recovery), not for collecting guest OS performance counters and event logs into a queryable platform.

C

An Azure Policy initiative is used to enforce organizational policies and compliance rules across resources, not to collect and query guest OS performance counters and event logs.

D

A route table controls network traffic routing between subnets and does not collect or store guest OS performance counters or event logs.

When would these options actually be correct?

B

When the question asks for a solution to back up Azure VMs or replicate them to another region for disaster recovery, a Recovery Services vault would be the correct component to configure.

C

You need to ensure that all virtual machines in a subscription have a specific diagnostic extension deployed and configured. An Azure Policy initiative can be assigned to audit or deploy the extension automatically.

D

When the question asks how to force all outbound traffic from a subnet to go through a network virtual appliance (NVA) for inspection, a route table with a user-defined route (UDR) to the NVA is the correct answer.

Why candidates pick the wrong answer

B

Candidates may confuse the 'vault' concept with a centralized storage or logging repository, or think that backup services also collect performance data.

C

Candidates may confuse policy-based compliance enforcement with data collection, thinking that a policy initiative can gather monitoring data, when in fact it only evaluates or deploys configurations.

D

Candidates may confuse network-level data collection (like flow logs) with guest OS data collection, or think that route tables can be used to direct monitoring traffic to a central location.

122
MCQmedium

A branch office with a static public IP needs encrypted connectivity to an Azure virtual network so users can access private Azure VMs and internal services. The connection should support a site-to-site design and not rely on public IPs for the Azure resources themselves. Which service should the administrator deploy?

A.Azure VNet peering
B.Service endpoint
C.VPN gateway with a site-to-site connection
D.Azure Front Door
AnswerC

A VPN gateway is the standard Azure service for encrypted site-to-site connectivity between an on-premises network and an Azure VNet. It allows branch users to reach private IPs in Azure without exposing the VMs to the internet. Because the branch has a static public IP, it can terminate a reliable site-to-site tunnel to the Azure VPN gateway.

Why this answer

A VPN gateway with a site-to-site connection (option C) is the correct choice because it provides encrypted connectivity over the public internet between an on-premises branch office with a static public IP and an Azure virtual network. This design uses IPsec/IKE (RFC 4301) to secure traffic, and Azure resources remain private within the VNet, not requiring public IPs. The site-to-site connection establishes a tunnel from the on-premises VPN device to the Azure VPN gateway, enabling users to access private VMs and services securely.

Exam trap

The trap here is that candidates often confuse site-to-site VPN with VNet peering or service endpoints, mistakenly thinking those can provide encrypted on-premises connectivity, but they lack the necessary IPsec tunnel and on-premises-to-Azure routing capabilities.

Why the other options are wrong

A

Azure VNet peering connects two Azure virtual networks, not an on-premises branch office to Azure. It does not support site-to-site VPN connectivity over the internet or encrypted tunnels from on-premises.

B

Service endpoints provide private connectivity from a virtual network to Azure PaaS services (e.g., Storage, SQL) over the Microsoft backbone, but they do not support encrypted site-to-site VPN connectivity from an on-premises branch office to Azure VMs.

D

Azure Front Door is a global load balancer and application delivery controller that operates at Layer 7 (HTTP/HTTPS). It does not provide site-to-site IPsec VPN connectivity for encrypted access to private Azure VMs and internal services; it is designed for web applications with public endpoints.

When would these options actually be correct?

A

An administrator needs to connect two Azure virtual networks in different regions with low-latency, private IP communication. VNet peering would be correct when both networks are in Azure and no on-premises connectivity is required.

B

A question that asks: 'Which feature allows an Azure virtual network to access an Azure Storage account using private IP addresses from the VNet, without traversing the public internet?' In that scenario, service endpoints would be the correct answer.

D

An administrator needs to provide secure, accelerated global access to a public-facing web application hosted in Azure, with features like SSL offloading, WAF, and URL-based routing. The question would specify that the application is HTTP/HTTPS-based and requires global load balancing across multiple regions.

Why candidates pick the wrong answer

A

Candidates may confuse VNet peering with VPN connectivity because both involve connecting networks, but they overlook that peering is Azure-to-Azure only and does not support on-premises branch offices.

B

Candidates may confuse service endpoints with VPN connections because both involve 'private' connectivity to Azure, but service endpoints are limited to Azure PaaS services and do not provide site-to-site VPN capabilities for on-premises networks.

D

Candidates may confuse Azure Front Door's SSL/TLS termination and 'encrypted connectivity' capabilities with the site-to-site VPN requirement, or they might think Front Door can secure access to private resources via Private Link, but the question explicitly requires site-to-site design and no public IPs for Azure resources.

123
Multi-Selectmedium

One team needs to run a Linux container for about 15 minutes per request with no inbound traffic and no cluster to manage. Another team needs an internet-facing web app with built-in HTTPS, deployment slots, and autoscale. Which two Azure services should the administrator choose? Select two.

Select 2 answers
A.Azure Container Instances
B.Azure App Service
C.Azure Virtual Machines
D.Azure Kubernetes Service
E.Azure Batch
AnswersA, B

Azure Container Instances is the best fit because it is a serverless service that starts a Linux container in seconds and bills per second, with no underlying VM, orchestrator, or cluster to manage. You simply provide the image and optional command, and ACI provisions the container and tears it down automatically when the 15-minute job completes. This makes it ideal for short-lived, isolated workloads.

Why this answer

Azure Container Instances (ACI) is the correct choice for the first team because it allows running a Linux container directly on Azure without managing any underlying infrastructure or cluster, and it supports a 15-minute execution time with no inbound traffic required. ACI is ideal for burstable, short-lived container workloads that do not need orchestration.

Exam trap

The trap here is that candidates may confuse Azure Container Instances with Azure Kubernetes Service, thinking orchestration is needed for any container, or they may overlook that Azure App Service natively supports deployment slots and autoscale without requiring additional services.

Why the other options are wrong

C

Azure Virtual Machines require managing the OS, patches, and scaling, and are not optimized for short-lived container tasks or built-in web app features like deployment slots and autoscale without additional configuration.

D

Azure Kubernetes Service (AKS) requires managing a cluster and is overkill for a single container running for 15 minutes with no inbound traffic. It also does not provide built-in deployment slots or autoscale for web apps without additional configuration.

E

Azure Batch is designed for large-scale parallel and high-performance computing jobs, not for running a single Linux container for 15 minutes per request without cluster management. It requires job and task orchestration, which adds complexity not needed here.

When would these options actually be correct?

C

A question requiring full control over the OS, custom software installation, or lift-and-shift migration of an existing application that cannot be containerized or run on PaaS, with no requirement for built-in HTTPS or deployment slots.

D

A question requiring orchestration of multiple containers with complex networking, scaling, and rolling updates, where the team needs to manage the cluster and has persistent workloads, would make AKS the correct choice.

E

A question where a team needs to run a large number of parallel batch jobs (e.g., rendering, data processing) with automatic scaling and job scheduling, and they want to avoid managing a cluster. For example: 'A team needs to run thousands of compute-intensive tasks on a schedule with automatic retry and scaling.'

Why candidates pick the wrong answer

C

Candidates may think VMs are a flexible catch-all for running containers or web apps, not realizing that Azure Container Instances and App Service provide simpler, managed solutions for these specific needs.

D

Candidates may confuse container orchestration with simple container execution, or think AKS is needed for any container workload, overlooking Azure Container Instances for simple, short-lived tasks.

E

Candidates may confuse Azure Batch's ability to run containers with the simplicity of Container Instances, or think Batch's 'no cluster management' feature applies to single short-lived containers, not realizing Batch is optimized for job orchestration, not individual on-demand containers.

124
Multi-Selecthard

A help desk group must use the Azure portal to start a virtual machine, stop or deallocate it, and see its current state, but they must not change any other VM settings. Which three Microsoft.Compute actions should be included in a custom role? Select three.

Select 3 answers
A.Microsoft.Compute/virtualMachines/read
B.Microsoft.Compute/virtualMachines/start/action
C.Microsoft.Compute/virtualMachines/deallocate/action
D.Microsoft.Compute/virtualMachines/write
E.Microsoft.Compute/virtualMachines/delete
AnswersA, B, C

The Microsoft.Compute/virtualMachines/read permission is the foundational control-plane read that lets the Azure portal query the VM's properties, current power state, and resource group metadata. Without it, the help desk cannot see the VM in the portal list or open its overview blade, making it impossible to even select the machine they are supposed to start. This read action is a prerequisite for all subsequent management operations, but it confers no ability to change or start the VM by itself.

Why this answer

The Microsoft.Compute/virtualMachines/read permission is required to view the current state of a virtual machine in the Azure portal. Without this read action, the help desk group would not be able to see the VM's status, which is essential for their task of monitoring and managing the VM lifecycle.

Exam trap

The trap here is that candidates often confuse the write action with the specific start and deallocate actions, incorrectly assuming that write is needed for power operations, when in fact write grants full configuration change capabilities that exceed the required scope.

Why the other options are wrong

D

The write action allows modifying all VM settings, which exceeds the required permissions of only starting, stopping, and viewing state.

E

The delete action would allow the help desk group to remove the VM entirely, which is beyond the required permissions of starting, stopping, deallocating, and viewing state.

When would these options actually be correct?

D

In a scenario where help desk needs to modify VM settings (e.g., change VM size, update tags, or attach disks) via the portal, Microsoft.Compute/virtualMachines/write would be required.

E

In a scenario where a custom role is needed for a team responsible for decommissioning and removing VMs that are no longer needed, such as a cleanup or lifecycle management team, Microsoft.Compute/virtualMachines/delete would be required.

Why candidates pick the wrong answer

D

Candidates may think 'write' is needed to change the VM state (start/stop), but state changes are controlled by specific actions, not the generic write permission.

E

Candidates might mistakenly think that stopping or deallocating a VM requires delete permission, or they may confuse the deallocate action with deletion.

125
Multi-Selecthard

An Azure application and an Azure Automation account need Azure access without any stored secrets. The same identity should be reusable and should not require manual secret rotation. Which two identity choices meet the requirement? Select two.

Select 2 answers
A.System-assigned managed identity attached to the resource that needs access.
B.User-assigned managed identity that can be attached to multiple Azure resources.
C.Service principal with a client secret stored in an app setting.
D.Shared administrator username and password stored in a Key Vault secret.
E.SAS token generated once and reused indefinitely by both resources.
AnswersA, B

A system-assigned managed identity is created directly with the Azure resource and has the same lifecycle, so when the resource is deleted, the identity is deleted too. It is automatically rotated and requires no secret management, making it the most straightforward way for a single resource like an application or an automation account to authenticate to Azure AD and access other Azure resources. This identity is bound exclusively to that one resource and cannot be shared.

Why this answer

System-assigned managed identity (Option A) is correct because it is automatically created and tied to a specific Azure resource, such as a virtual machine or App Service, and provides an Azure AD identity that can be used to authenticate to any service supporting Azure AD authentication without storing any secrets. The identity is managed by Azure, eliminating the need for manual secret rotation, and it is automatically deleted when the resource is deleted, ensuring no orphaned secrets.

Exam trap

The trap here is that candidates often confuse service principals with managed identities, thinking that storing a client secret in an app setting or Key Vault is acceptable, but the question explicitly requires 'no stored secrets' and 'no manual secret rotation,' which only managed identities satisfy.

Why the other options are wrong

C

Service principals with client secrets require manual secret rotation and storing the secret in an app setting still exposes it as a stored secret, violating the requirement of no stored secrets and no manual rotation.

D

Shared administrator username and password stored in a Key Vault secret require manual rotation and expose static credentials, violating the requirements of no stored secrets and no manual rotation.

E

A SAS token is a shared access signature that grants time-limited access to specific resources like storage accounts. It requires manual generation, cannot be reused indefinitely without exposing the account key, and does not provide a reusable identity without stored secrets, failing the requirement of no manual secret rotation.

When would these options actually be correct?

C

A question that asks for an identity solution for an Azure resource that needs to access external APIs or services that do not support managed identities, and where secret rotation can be automated via Key Vault or lifecycle policies.

D

In a scenario where an application needs to authenticate to a legacy system that only supports username/password authentication, and the organization has a policy to rotate secrets automatically via Key Vault, storing credentials in Key Vault would be correct.

E

In a scenario where an Azure Storage account needs to grant temporary, delegated access to a specific blob or container for a client application, and the access can be time-bound and permissions-limited, a SAS token would be the correct choice. For example, generating a SAS token for a web app to download a file from a private container for a limited duration.

Why candidates pick the wrong answer

C

Candidates may think a service principal is the standard way to grant Azure access and that storing the secret in an app setting is secure, overlooking the 'no stored secrets' and 'no manual rotation' constraints.

D

Candidates may think Key Vault eliminates all security concerns, but it still stores secrets that require manual rotation unless automated, and the question explicitly forbids stored secrets and manual rotation.

E

Candidates may think a SAS token is a 'secret-free' identity because it can be generated without storing a password, but they overlook that it still requires manual creation and rotation, and it's not a true identity but a delegation mechanism tied to the storage account key.

126
MCQmedium

A public web application runs on two identical VMs behind a load balancer. The region supports availability zones. The business wants the app to keep serving traffic if one datacenter in the region becomes unavailable. What should the administrator use?

A.An availability set with two VMs
B.Availability zones for the two VMs
C.A single virtual machine scale set instance
D.A proximity placement group
AnswerB

Availability zones are the right design when the business needs resiliency against a full datacenter or zone outage within a supported region. Placing the VMs in different zones keeps the application available if one zone has a failure, assuming the load balancer and application are designed accordingly.

Why this answer

Deploying the two VMs in different availability zones within the same region protects against a single datacenter failure. Each availability zone is a physically separate datacenter with independent power, cooling, and networking. If one zone goes down, the load balancer automatically routes traffic to the VM in the other zone, ensuring the application continues serving traffic.

Exam trap

The trap here is confusing an availability set (which protects against rack failures within a single datacenter) with availability zones (which protect against full datacenter outages), leading candidates to choose the cheaper but insufficient option A.

Why the other options are wrong

A

An availability set protects against hardware failures within a single datacenter, not against an entire datacenter outage. The question requires resilience if one datacenter becomes unavailable, which spans across datacenters, not within one.

C

A single virtual machine scale set instance does not provide high availability across datacenters; it is a single VM, and if that VM's datacenter fails, the app goes down.

D

A proximity placement group reduces network latency between VMs but does not provide datacenter-level redundancy; if one datacenter fails, all VMs in the group could be affected.

When would these options actually be correct?

A

An availability set would be correct if the question asked for protection against rack-level failures (e.g., server or network switch failure) within a single datacenter, and the region did not support availability zones.

C

When the requirement is to automatically scale the number of VM instances based on load, and the region does not support availability zones, a scale set with multiple instances in an availability set would be correct.

D

An administrator needs to minimize network latency between two VMs running a latency-sensitive application (e.g., HPC or real-time data processing) and is not concerned with datacenter failure. The question would specify low latency as the primary requirement.

Why candidates pick the wrong answer

A

Candidates may confuse availability sets with high availability across datacenters, or assume that distributing VMs across fault domains in an availability set provides datacenter-level redundancy.

C

Candidates may confuse scale sets with high availability, thinking that a scale set inherently provides redundancy, but a single instance offers no fault tolerance.

D

Candidates may confuse proximity placement groups with high availability features, thinking that grouping VMs together ensures they are spread across fault domains, which is incorrect.

127
MCQeasy

An engineering team stores build artifacts that are downloaded every day by developers for a week after release, then rarely after that. Which tier should the administrator choose for the period when the artifacts are still actively used?

A.Hot
B.Archive
C.Cool
D.Cold
AnswerA

Hot is the best fit for data that is accessed frequently over a short period, such as newly released build artifacts.

Why this answer

The Hot tier is the correct choice for the period when build artifacts are actively used because it provides the lowest access latency and highest throughput, which is essential for daily downloads by developers. Azure Blob Storage's Hot tier is optimized for frequent access patterns (e.g., multiple times per day) and incurs no data retrieval costs, making it cost-effective for this high-access phase.

Exam trap

The trap here is that candidates often confuse 'Cool' as a middle-ground choice for weekly access, but the Cool tier's retrieval cost and higher latency make it suboptimal for daily downloads, whereas Hot is the only tier designed for frequent, low-latency access without retrieval penalties.

Why the other options are wrong

B

Archive tier is designed for data that is rarely accessed and has a retrieval latency of hours, making it unsuitable for daily downloads by developers.

C

Cool tier is designed for data that is infrequently accessed but still requires low latency, not for daily downloads. The artifacts are actively used every day for a week, which requires the high throughput and low latency of Hot tier.

D

Cold tier is designed for data accessed rarely (e.g., once every 90+ days) and has higher retrieval costs and latency, making it unsuitable for daily downloads during the first week after release.

When would these options actually be correct?

B

An administrator needs to store historical compliance data that must be retained for 7 years but is accessed only once or twice per year for audits.

C

Cool tier would be correct if the artifacts were downloaded only a few times per month after the initial release, with a latency tolerance of a few seconds, and the storage duration was at least 30 days to avoid early deletion penalties.

D

A question where data is accessed only a few times per year, with retrieval latency acceptable (e.g., archival backups or historical logs), and cost savings on storage are prioritized over access speed.

Why candidates pick the wrong answer

B

Candidates may think 'rarely after a week' justifies Archive, overlooking the daily active usage period and the high retrieval cost/latency.

C

Candidates may think Cool is a cost-effective choice for data that is not accessed constantly, but they overlook the daily download pattern during the active period, which demands Hot tier performance.

D

Candidates may confuse 'Cold' with 'Cool' or assume any infrequently accessed data belongs in the coldest tier, overlooking the specific daily access pattern in the first week.

128
Multi-Selectmedium

Backend VMs are rebuilt often and get new private IP addresses. Frontend VMs must reach them only on TCP 8443, and the rule should keep working after rebuilds. Which two actions should the administrator take? Select two.

Select 2 answers
A.Place the backend NICs in an ASG named ASG-Backend.
B.Create an NSG rule that allows TCP 8443 from ASG-Front to ASG-Backend.
C.Create a static route for the backend subnet to preserve the same IPs.
D.Use a service endpoint between the two subnets.
E.Add a load balancer health probe rule on TCP 8443 only.
AnswersA, B

Backend VMs are rebuilt, so their private IPs change; an NSG rule that references a fixed IP would stop matching after the rebuild. By placing the backend NICs in ASG-Backend, you make the security rule's destination logical rather than address-based. Azure dynamically resolves ASG membership whenever traffic is evaluated, so the rule continues to allow traffic to the rebuilt instance as long as its NIC is a member of the ASG.

Why this answer

An Application Security Group (ASG) allows you to group backend VMs by their NICs, regardless of their private IP addresses. When backend VMs are rebuilt and receive new IPs, the ASG membership remains intact, so NSG rules referencing the ASG continue to work without manual updates. This decouples security rules from dynamic IP addresses.

Exam trap

The trap here is that candidates often confuse Application Security Groups with Network Security Groups (NSGs) or think that static routes or service endpoints can solve dynamic IP addressing, when in fact ASGs are the correct Azure feature for grouping VMs by function regardless of IP changes.

Why the other options are wrong

C

Static routes do not preserve private IP addresses; they control traffic routing. Private IPs are assigned dynamically by Azure DHCP, and a static route cannot prevent IP changes after VM rebuilds.

D

Service endpoints secure Azure service access (e.g., to Storage or SQL) from a virtual network, not traffic between VMs. They do not enable frontend VMs to reach backend VMs on TCP 8443.

E

A load balancer health probe rule on TCP 8443 only checks backend health; it does not create a network rule to allow traffic from frontend to backend. The question requires a security rule (NSG) to permit traffic, not a health probe.

When would these options actually be correct?

C

In a scenario where backend VMs use static private IPs (e.g., via NIC IP configuration) and the administrator needs to ensure traffic from frontend to backend follows a specific path (e.g., through a firewall), creating a static route for the backend subnet would be correct.

D

An administrator needs to ensure that VMs in a subnet can securely access an Azure Storage account using the Azure backbone network instead of the public internet. In that case, enabling a service endpoint on the subnet and creating a private endpoint or service endpoint rule would be correct.

E

In a scenario where a load balancer distributes traffic to backend VMs on TCP 8443 and you need to ensure only healthy VMs receive traffic, you would add a health probe rule on TCP 8443 to monitor backend health.

Why candidates pick the wrong answer

C

Candidates may confuse static routing with static IP assignment, thinking a static route can fix IP address changes, or they may incorrectly believe that routes can preserve IP addresses.

D

Candidates may confuse service endpoints with general network connectivity solutions, thinking they can route traffic between subnets, or they may misremember service endpoints as a way to preserve IP addresses or enable inter-VM communication.

E

Candidates may confuse health probes with network security rules, thinking that a health probe can also control traffic flow, or they may overcomplicate the solution by involving load balancing when only a simple NSG rule is needed.

129
MCQeasy

Help desk staff must start, stop, and restart virtual machines in one application resource group. They must not create or delete VMs or modify networking or disks. Which built-in role should you assign?

A.Reader
B.Virtual Machine Contributor
C.Virtual Machine Operator
D.Contributor
AnswerC

Virtual Machine Operator is the appropriate least-privilege choice for operational control of VMs. It allows actions such as starting, stopping, and restarting virtual machines without giving full management rights over creation, deletion, or related networking and disk resources. That makes it a better fit than broader contributor roles when the team only needs day-to-day operations.

Why this answer

The Virtual Machine Operator role allows starting, stopping, and restarting virtual machines, but explicitly denies creating, deleting, or modifying VMs, networking, or disks. This matches the help desk staff's required permissions exactly, making it the correct built-in role for this scenario.

Exam trap

The trap here is that candidates often choose Virtual Machine Contributor (Option B) because it sounds like it covers VM operations, but they overlook that it also includes create and delete permissions, which are explicitly prohibited in the question.

Why the other options are wrong

A

The Reader role allows read-only access to all resources, but does not permit starting, stopping, or restarting VMs, which require write-level permissions.

B

Virtual Machine Contributor allows creating and deleting VMs, which violates the requirement that help desk staff must not create or delete VMs.

D

The Contributor role allows creating and deleting VMs, as well as modifying networking and disks, which exceeds the required permissions of only starting, stopping, and restarting VMs.

When would these options actually be correct?

A

Assign the Reader role when users only need to view virtual machine properties, status, and configuration without making any changes, such as for monitoring or auditing purposes.

B

If the requirement were to allow full management of virtual machines (including creation and deletion) but not management of networking or disks, Virtual Machine Contributor would be the correct role.

D

Assign the Contributor role when help desk staff need full management of all resources in a resource group, including creating and deleting VMs, modifying networking, and managing disks, but not managing access or policies.

Why candidates pick the wrong answer

A

Candidates may think Reader is sufficient because they overlook the need for write actions like start/stop, or they confuse read access with the ability to perform management operations.

B

Candidates may think 'Contributor' implies only modification, but the VM-specific role actually grants broader permissions including create/delete, which is not allowed here.

D

Candidates may mistakenly believe Contributor is the least permissive role that allows VM state changes, overlooking the more restrictive Virtual Machine Operator role that specifically limits actions to start, stop, and restart.

130
MCQmedium

A company created a new spoke virtual network with the address space 10.40.1.0/24. The existing hub virtual network already uses 10.40.0.0/16. The administrator must peer the two VNets so resources can communicate normally. What must be changed before peering can succeed?

A.Create a route table on the spoke subnet before adding the peering.
B.Change the spoke VNet address space to a range that does not overlap the hub.
C.Enable gateway transit on the hub peering to permit overlapping spaces.
D.Add an NSG rule that allows traffic between the hub and spoke address spaces.
AnswerB

Azure virtual network peering requires non-overlapping IP address spaces on both sides. Because the spoke is using 10.40.1.0/24, which sits inside the hub's 10.40.0.0/16 range, peering cannot be created successfully. The administrator must renumber the spoke to a unique range before attempting the peering, then update any dependent subnet and DNS settings as needed.

Why this answer

Azure Virtual Network peering requires that the address spaces of the peered VNets do not overlap. The hub VNet uses 10.40.0.0/16, which includes the spoke's 10.40.1.0/24 range. Overlapping address spaces prevent successful peering because Azure cannot route traffic correctly between overlapping IP ranges.

Therefore, the spoke VNet address space must be changed to a non-overlapping range before peering can succeed.

Exam trap

The trap here is that candidates often confuse overlapping address spaces with connectivity issues that can be fixed by routing or security rules, but Azure strictly prohibits overlapping address spaces for VNet peering at the control plane level.

Why the other options are wrong

A

VNet peering does not require route tables; overlapping address spaces prevent peering from being established at all, so a route table cannot resolve the conflict.

C

Gateway transit is used to allow a peered VNet to use the hub's VPN/ExpressRoute gateway, not to permit overlapping address spaces. Overlapping address spaces are not allowed in VNet peering regardless of gateway transit settings.

D

NSG rules control traffic filtering, not address space overlap. Peering requires non-overlapping address spaces; NSGs cannot resolve the fundamental conflict of overlapping IP ranges.

When would these options actually be correct?

A

In a scenario where VNet peering is already established but traffic between subnets in different VNets is not flowing correctly due to asymmetric routing, creating a route table with a user-defined route on the spoke subnet can force traffic to go through the hub or a network virtual appliance.

C

In a scenario where a spoke VNet needs to access on-premises resources through the hub's VPN gateway, enabling gateway transit on the hub peering and using the spoke's remote gateways setting would be correct, provided address spaces do not overlap.

D

An NSG rule allowing traffic between hub and spoke would be correct if the question were about enabling communication after peering is established, but the VNets had overlapping address spaces resolved by using network virtual appliances or NAT.

Why candidates pick the wrong answer

A

Candidates may confuse VNet peering with hub-and-spoke topologies that require route tables for traffic redirection, or they may think that a route table can override the address space overlap restriction.

C

Candidates may confuse gateway transit with a feature that resolves address overlap, or think that enabling transit somehow overrides the non-overlap requirement for peering.

D

Candidates often confuse NSGs as a solution for connectivity issues, thinking that allowing traffic with an NSG rule can overcome address space overlap, which is a routing problem, not a filtering one.

131
MCQmedium

You need to deploy 20 identical Azure virtual machines for a web application and automatically scale the number of instances based on CPU demand. Which Azure feature should you use?

A.An availability set
B.A Virtual Machine Scale Set
C.A Recovery Services vault
D.Boot diagnostics
AnswerB

Scale Sets provide grouped VM deployment and autoscaling.

Why this answer

A Virtual Machine Scale Set (VMSS) is the correct Azure feature because it allows you to deploy and manage a group of identical, load-balanced VMs that can automatically scale in or out based on CPU demand using autoscale rules. This directly meets the requirement for deploying 20 identical VMs with automatic scaling based on a performance metric like CPU utilization.

Exam trap

The trap here is that candidates often confuse an availability set (which provides high availability through fault domain distribution) with a Virtual Machine Scale Set (which provides both high availability and automatic scaling), leading them to select Option A when the question explicitly requires automatic scaling based on demand.

Why the other options are wrong

A

An availability set provides high availability by distributing VMs across fault and update domains, but it does not support automatic scaling based on CPU demand. It is a static grouping, not a scaling solution.

C

A Recovery Services vault is used for backup and disaster recovery, not for deploying or scaling virtual machines. It does not provide auto-scaling based on CPU demand.

D

Boot diagnostics captures serial console output and screenshots for troubleshooting VM boot failures, but it does not provide any mechanism for deploying multiple VMs or automatically scaling them based on CPU demand.

When would these options actually be correct?

A

You need to deploy two or more VMs for a critical application and ensure they are placed in separate fault and update domains to meet a 99.95% SLA. The question would ask for a feature to maximize availability within a single region.

C

You need to protect Azure virtual machines by enabling backup and restore capabilities. Which Azure feature should you use?

D

You need to troubleshoot why a specific Azure VM fails to boot after a configuration change. Boot diagnostics would be the correct feature to enable to view the serial log and screenshot to diagnose the boot issue.

Why candidates pick the wrong answer

A

Candidates may confuse availability sets with scale sets because both involve multiple VMs, and they might think availability sets also handle scaling, but they only provide redundancy, not elasticity.

C

Candidates may confuse 'Recovery' with 'scaling' or think it provides some form of resilience that includes scaling, but it is purely for backup and recovery.

D

Candidates may confuse boot diagnostics with a feature that monitors performance metrics like CPU, or they might think it includes scaling capabilities because 'diagnostics' sounds like it could trigger actions based on data.

132
MCQmedium

An administrator moved old log blobs to the Archive tier last month. An auditor now needs one blob for review later today. What must happen before the blob can be opened?

A.Download the blob directly from the Archive tier and open it immediately
B.Change the blob to Hot or Cool and wait for rehydration to complete
C.Create a snapshot of the blob and open the snapshot instead
D.Copy the blob to another container without changing its tier
AnswerB

Archived blobs must be rehydrated back to an online tier before their contents can be read.

Why this answer

Blobs in the Archive tier are offline and cannot be read directly. To access the data, you must first change the blob's access tier to Hot or Cool (rehydrate it), which can take up to 15 hours depending on the rehydration priority. Only after rehydration completes can the blob be downloaded and opened.

Exam trap

The trap here is that candidates assume archived blobs are still readable like Cool or Hot tier blobs, or that a snapshot or copy operation can bypass the rehydration requirement, but Azure enforces that the data must be physically moved back to an online tier before any access is allowed.

Why the other options are wrong

A

Blobs in the Archive tier are offline and cannot be read directly; they must first be rehydrated to Hot or Cool tier, which takes time. Downloading immediately would fail.

C

A snapshot captures the blob's state at a point in time but does not change its access tier; if the blob is in Archive tier, the snapshot remains in Archive and cannot be read without rehydration.

D

Blobs in Archive tier are offline and cannot be read or copied directly. Copying without changing the tier would fail because the source blob is not available for read operations.

When would these options actually be correct?

A

If the blob were already in the Hot or Cool tier, or if the question specified that the blob was in the Cool tier and the administrator needed to download it, then direct download would work without rehydration.

C

If the question asked how to preserve a point-in-time copy of a blob before modifying or deleting it, creating a snapshot would be the correct answer, especially when the blob is in Hot or Cool tier and immediate access is needed.

D

If the blob were in a readable tier (Hot, Cool, or Cold) and you needed to duplicate it to another container for organizational purposes, copying without changing tier would be correct.

Why candidates pick the wrong answer

A

Candidates may assume that all tiers allow immediate download, not realizing that Archive tier blobs are offline and require rehydration before access.

C

Candidates may confuse snapshots with tier changes, thinking a snapshot provides a separate, accessible copy regardless of the original blob's tier, or they may recall that snapshots are used for backup without considering tier restrictions.

D

Candidates may think copying a blob is a workaround to access archived data, not realizing that the source blob must be rehydrated before any read or copy operation can succeed.

133
Matchingmedium

Match each data-access pattern to the blob tier or required action.

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

Concepts
Matches

Hot

Cool

Archive

Rehydrate from Archive

Why these pairings

Azure Blob Storage tiers are Hot (frequent access), Cool (infrequent, 30-day minimum), and Archive (rare, 180-day minimum). Rehydration is needed to access Archive blobs. Azure Files sync is used for replication.

134
MCQmedium

A subnet already has a user-defined default route (0.0.0.0/0) that sends all outbound traffic to a network virtual appliance. The administrator now needs traffic to the on-premises network 10.50.0.0/16 to use the VPN gateway instead of the appliance. What should be added to the route table?

A.Remove the default route so the system route to the VPN gateway is used
B.Add a user-defined route for 10.50.0.0/16 with next hop type Virtual network gateway
C.Change the subnet address space to a smaller CIDR block
D.Enable a service endpoint for the on-premises prefix
AnswerB

A more specific prefix takes precedence over the broader default route. By adding a route for 10.50.0.0/16 that points to the virtual network gateway, traffic to the on-premises network follows the gateway while all other destinations can still follow the default route to the appliance.

Why this answer

Adding a user-defined route (UDR) for the specific prefix 10.50.0.0/16 with next hop type 'Virtual network gateway' creates a more specific route (longest prefix match) than the existing default route (0.0.0.0/0). This ensures traffic destined for the on-premises network is forwarded to the VPN gateway instead of the network virtual appliance, while all other outbound traffic continues to use the appliance.

Exam trap

The trap here is that candidates assume removing the default route is necessary to force traffic through the VPN gateway, but they overlook that a more specific UDR for the on-premises prefix can coexist with the default route, allowing both paths to function correctly.

Why the other options are wrong

A

Removing the default route would break all other outbound traffic that needs to go through the network virtual appliance, not just traffic to 10.50.0.0/16. The requirement is to selectively route only the on-premises traffic via the VPN gateway while keeping the default route for other traffic.

C

Changing the subnet address space to a smaller CIDR block does not affect routing decisions for traffic destined to 10.50.0.0/16; it only changes the IP range of the subnet itself, not the route table entries.

D

Service endpoints are used to secure Azure service access from a subnet to a specific Azure service (like Azure Storage or SQL Database) by routing traffic directly to the service over the Azure backbone, not to route traffic to an on-premises network via a VPN gateway.

When would these options actually be correct?

A

This option would be correct if the question stated that all outbound traffic should use the VPN gateway, and the existing default route to the NVA is no longer needed. For example: 'A subnet currently sends all outbound traffic to an NVA. The administrator now wants all outbound traffic to use the VPN gateway instead.

What should be done?'

C

This would be correct if the question asked to reduce the number of available IP addresses in a subnet to meet a specific requirement, such as avoiding overlapping address spaces or conserving IP addresses in a VNet.

D

A question where traffic from a subnet to an Azure service (e.g., Azure Storage account) must be routed directly to the service without going through a network virtual appliance or the internet, and the service endpoint must be enabled on the subnet and the service side.

Why candidates pick the wrong answer

A

Candidates may think that removing the default route will allow the system's built-in route for the VPN gateway to take effect, but they overlook that the system route for 10.50.0.0/16 only exists if the VPN gateway is connected to the virtual network, and removing the default route would disrupt other traffic.

C

Candidates may mistakenly think that resizing the subnet can influence routing behavior, confusing subnet addressing with route prefixes.

D

Candidates may confuse service endpoints with VPN or ExpressRoute connectivity, thinking that enabling a service endpoint for an on-premises prefix would somehow route traffic to on-premises, or they may misunderstand that service endpoints are only for Azure services, not on-premises networks.

135
MCQeasy

Based on the exhibit, a compliance dashboard shows that several storage accounts are marked noncompliant because they do not have the required tag. The policy itself is correct, but one business unit needs a temporary exception for a single resource group during a merger. What should the administrator configure?

A.A policy exemption at the rg-merger01 resource group scope.
B.Delete the policy assignment from corp-root and recreate it later.
C.Move rg-merger01 to a separate subscription so the policy no longer applies.
D.Change the policy effect to Audit so the resources can remain noncompliant.
AnswerA

A policy exemption lets the administrator document and scope a temporary exception without disabling the policy for the rest of the environment. Because the request applies to one resource group for a limited time, an exemption at that scope is the cleanest governance solution.

Why this answer

A policy exemption at the rg-merger01 resource group scope is the correct solution because it allows the administrator to temporarily exclude a specific resource group from the policy's enforcement or compliance evaluation without modifying or deleting the original policy assignment. This is designed for scenarios like mergers where a short-term exception is needed, and it maintains the policy's integrity for all other scopes.

Exam trap

The trap here is that candidates often confuse a policy exemption with modifying the policy effect or scope, not realizing that exemptions are the only built-in mechanism to grant a temporary, scoped exception without affecting the rest of the environment.

Why the other options are wrong

B

Deleting the policy assignment from corp-root would remove compliance enforcement for all resources, not just rg-merger01, and would require recreating it later, causing unnecessary disruption and administrative overhead.

D

Changing the policy effect to Audit would allow noncompliance but would not provide a temporary exception for a single resource group; it would affect all resources under the policy scope, violating the requirement for a targeted exception.

When would these options actually be correct?

B

If a policy was incorrectly assigned or no longer needed for any resource, and the goal was to permanently remove it from all scopes, then deleting the assignment would be appropriate.

D

If the question asked for a way to monitor noncompliance without enforcing the policy, such as during a pilot or testing phase, changing the effect to Audit would be correct to track violations without blocking deployments.

Why candidates pick the wrong answer

B

Candidates might think removing the policy is a quick fix to stop noncompliance alerts, overlooking that it affects all resources and that a targeted exemption is more appropriate.

D

Candidates may think Audit is a quick fix to stop enforcement while still tracking compliance, overlooking that it applies globally and doesn't meet the need for a temporary, scoped exception.

136
MCQeasy

Based on the exhibit, a contractor must be able to restart only one virtual machine named vm-pay-01 and read its properties. The contractor must not be able to manage any other VM in the resource group. Where should the role assignment be created?

A.At the subscription scope so the contractor inherits access everywhere in the subscription.
B.At the resource scope for vm-pay-01 so the contractor receives permissions only on that VM.
C.At the resource group scope because resource assignments cannot be applied to virtual machines.
D.At the management group scope so the same role can be reused for all payroll subscriptions.
AnswerB

Assigning the role at the specific virtual machine resource scope limits the contractor to that VM only. Because Azure RBAC permissions inherit downward, this is the narrowest scope that still allows restart and read operations on vm-pay-01 without exposing other resources in the resource group.

Why this answer

Azure RBAC allows role assignments at the resource scope, which in this case is the virtual machine vm-pay-01. By assigning a role (e.g., Virtual Machine Contributor or a custom role with restart and read permissions) directly to the VM resource, the contractor receives permissions only on that specific VM, fulfilling the requirement to restrict access to other VMs in the resource group.

Exam trap

The trap here is that candidates often assume role assignments must be at the resource group or subscription scope, forgetting that Azure RBAC supports direct assignments at the individual resource scope, which is the most precise way to grant permissions to a single VM.

Why the other options are wrong

A

Assigning the role at the subscription scope would grant the contractor permissions to restart and read properties for all VMs in the subscription, not just vm-pay-01, violating the requirement to restrict access to only that VM.

C

Role assignments can be applied directly to virtual machines at the resource scope, so the claim that 'resource assignments cannot be applied to virtual machines' is false. Azure RBAC supports assigning roles at the resource level, including individual VMs.

D

Assigning the role at the management group scope would grant the contractor permissions to all virtual machines across all subscriptions under that management group, not just vm-pay-01, violating the requirement to restrict access to only that VM.

When would these options actually be correct?

A

If the question required the contractor to manage all VMs in the subscription (e.g., restart any VM and read properties), then assigning the role at the subscription scope would be correct to provide inherited access across all resources.

C

A question where a role must be assigned to all resources within a resource group, and the requirement is to grant permissions to manage multiple VMs or other resources collectively, not a single VM. For example, 'A team needs to manage all VMs in a resource group; where should you assign the Virtual Machine Contributor role?'

D

This option would be correct if the question required the contractor to restart and read properties of vm-pay-01 across multiple subscriptions (e.g., all payroll subscriptions) and the role needed to be reused consistently, with no restriction to a single resource group.

Why candidates pick the wrong answer

A

Candidates may think subscription scope is simpler or more comprehensive, or they might overlook the principle of least privilege, assuming broader scope is acceptable for a single VM task.

C

Candidates may mistakenly believe that Azure RBAC only supports assignment at subscription or resource group scopes, not at the individual resource level, due to a lack of familiarity with resource-scoped role assignments.

D

Candidates may think that using a management group scope is efficient for reusing role assignments across multiple subscriptions, overlooking the need for granular, single-VM access control in this scenario.

137
MCQmedium

An existing application in AppSubnet1 must access an Azure Storage account. The team does not want to add a private endpoint or change DNS records, but they do want to allow access only from AppSubnet1. Which configuration should the administrator use?

A.Enable the Microsoft.Storage service endpoint on AppSubnet1 and restrict the storage account to selected virtual networks.
B.Create a private endpoint and remove all public network access from the storage account.
C.Add a network security group rule that allows outbound TCP 443 to the storage account.
D.Enable peering between AppSubnet1 and the storage account network.
AnswerA

A service endpoint lets traffic from the subnet reach the storage account over the Azure backbone while the storage firewall can allow only that subnet. This matches the requirement to avoid private endpoints and DNS changes. The access is still limited to the approved subnet identity, which is what the storage firewall evaluates.

Why this answer

Enabling the Microsoft.Storage service endpoint on AppSubnet1 allows traffic from that subnet to be routed directly to the Azure Storage service over the Azure backbone network, bypassing the internet. By then restricting the storage account's firewall to 'selected virtual networks' and adding AppSubnet1's virtual network and subnet, access is limited exclusively to that subnet without needing a private endpoint or DNS changes.

Exam trap

The trap here is that candidates often confuse service endpoints with private endpoints, assuming both require DNS changes, or they mistakenly think NSG rules alone can restrict inbound access to a PaaS service, when in fact the storage account firewall must be explicitly configured to accept traffic only from the specified subnet.

Why the other options are wrong

B

The question explicitly states the team does not want to add a private endpoint, so option B violates that constraint.

C

A network security group (NSG) rule controls traffic at the subnet or NIC level but does not restrict access to the storage account itself; the storage account would still be publicly accessible from any IP, so it does not meet the requirement to allow access only from AppSubnet1.

D

Enabling peering between AppSubnet1 and the storage account network is not possible because Azure Storage accounts do not have a virtual network to peer with; peering is only between virtual networks.

When would these options actually be correct?

B

If the question required the most secure method to ensure no public internet access and allowed adding a private endpoint, then creating a private endpoint and removing all public network access would be correct.

C

If the question asked how to ensure outbound connectivity from a subnet to a storage account over HTTPS while blocking other outbound traffic, adding an NSG rule allowing outbound TCP 443 to the storage account's service tag (e.g., AzureCloud) would be correct.

D

When two virtual networks need to communicate privately and directly, such as connecting a subnet in VNet1 to a subnet in VNet2 to allow traffic without going over the internet or using a VPN gateway.

Why candidates pick the wrong answer

B

Candidates may think private endpoint is the only way to restrict access to a subnet, overlooking service endpoints as a simpler solution when DNS changes are not desired.

C

Candidates may think that controlling outbound traffic with an NSG is sufficient to restrict access to the storage account, not realizing that NSGs do not enforce inbound restrictions on the storage account itself.

D

Candidates may confuse peering with service endpoints or private endpoints, thinking that peering can provide direct network connectivity to a storage account, similar to how it connects VNets.

138
MCQmedium

A cloud operations team in the Corp business unit needs to read all Azure resources in every current and future subscription under the Corp management group to prepare monthly governance reports. They must not gain access to subscriptions that belong to other business units. What scope should the administrator use when assigning the Reader role?

A.Subscription scope
B.Resource group scope
C.Management group scope
D.Resource scope
AnswerC

This allows the Reader role to be assigned at the management group level, which applies inherited permissions to all subscriptions that are currently children of the Corp management group and automatically to any new subscriptions added later. Because Azure RBAC permissions are inherited from higher-level scopes like management groups down to subscriptions, resource groups, and resources, this scope provides the broadest and most future-proof coverage for the entire business unit. It ensures that the operations team can read resources across multiple subscriptions without needing separate assignments on each subscription. This is the correct choice when the business unit wants to manage a set of subscriptions under a common governance boundary.

Why this answer

The Reader role assigned at the management group scope grants read-only access to all subscriptions within that management group, including future subscriptions, because Azure RBAC permissions are inherited by child resources. This meets the requirement to cover all current and future subscriptions under the Corp management group while excluding subscriptions in other business units.

Exam trap

The trap here is that candidates often choose subscription scope because they think each subscription needs a separate role assignment, failing to realize that management group scope provides inheritance to all current and future subscriptions under that management group.

Why the other options are wrong

A

Subscription scope would grant read access only to a single subscription, not to all current and future subscriptions under the Corp management group, failing the requirement for cross-subscription governance reporting.

B

Resource group scope limits access to a single resource group, not all resources across all subscriptions under a management group, so it fails to meet the requirement of reading all resources in current and future subscriptions under Corp.

D

Resource scope limits the role assignment to a single resource, which cannot cover all resources across multiple subscriptions under a management group, failing the requirement to read all resources in current and future subscriptions.

When would these options actually be correct?

A

Assign the Reader role at subscription scope when a team needs to read all resources within a specific subscription (e.g., a dedicated subscription for a project) and no access to other subscriptions is required.

B

A scenario where a team needs to read resources only within a specific resource group, such as a project team managing a single application deployment, and no access to other resource groups or subscriptions is required.

D

An administrator needs to grant a user read-only access to a specific Azure resource (e.g., a virtual machine or storage account) for monitoring or auditing purposes, without granting access to any other resources in the same subscription or resource group.

Why candidates pick the wrong answer

A

Candidates may think subscription is the natural boundary for resource access, overlooking that management group scope can inherit permissions to multiple subscriptions and automatically include future ones.

B

Candidates may think resource group scope is sufficient because it grants read access to resources within a group, but they overlook the need to cover all subscriptions under the management group, including future ones.

D

Candidates may mistakenly think that assigning the Reader role at a resource scope is sufficient for reading all resources, or they may confuse resource scope with management group scope due to similar terminology.

139
Matchingmedium

An administrator is comparing Azure monitoring data sources and destinations during an investigation. Match each item to the best operational use.

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

Concepts
Matches

Shows subscription-level management events such as deployments, deletes, and role assignments.

Provide detailed, service-specific telemetry from an Azure resource after diagnostics are enabled.

Capture near-real-time numeric measurements used for charts and threshold-based alerts.

Stores data that can be searched and correlated with KQL queries.

Provides official Azure platform incident and maintenance information.

Why these pairings

Activity Log tracks management events; Metrics provide numeric performance data; Logs workspace enables cross-resource log analysis; Application Insights monitors app performance; Alerts trigger notifications; Workbooks combine data into dashboards.

140
MCQmedium

Two application teams created separate VNets for independent workloads. VNet-A uses 10.40.0.0/16 and VNet-B uses 10.40.128.0/17. The teams want to peer the VNets so both apps can communicate privately. What should the administrator do first?

A.Create the peering now and add a route table to one VNet later.
B.Renumber one VNet so its address space no longer overlaps before creating the peering.
C.Add an NSG rule that allows traffic between the two address ranges.
D.Enable gateway transit on both VNets so overlapping ranges can route through a shared gateway.
AnswerB

Azure VNet peering cannot be established between two virtual networks whose address spaces overlap; the peering request is validated and rejected at creation time. The only way to resolve this is to modify one VNet's address plan by renumbering it to a unique, non-overlapping CIDR range before attempting to peer. This may require reconfiguring or redeploying workloads, but without this change neither peering nor any subsequent traffic flow will be possible.

Why this answer

B is correct because Azure VNet peering requires non-overlapping address spaces. VNet-A (10.40.0.0/16) and VNet-B (10.40.128.0/17) overlap, as 10.40.128.0/17 is a subset of 10.40.0.0/16. Before peering can be established, one VNet must be renumbered to eliminate the overlap; otherwise, the peering creation will fail with an error indicating overlapping address spaces.

Exam trap

The trap here is that candidates assume overlapping ranges can be handled with routing or filtering (NSGs, route tables, or gateways), but Azure VNet peering strictly requires non-overlapping address spaces and will reject the peering creation outright.

Why the other options are wrong

A

VNet peering requires non-overlapping address spaces. Creating the peering first with overlapping ranges will fail, and adding a route table later cannot resolve the fundamental address conflict.

C

VNet peering requires non-overlapping address spaces; NSG rules cannot resolve the fundamental routing conflict caused by overlapping IP ranges.

D

VNet-A (10.40.0.0/16) and VNet-B (10.40.128.0/17) have overlapping address ranges (10.40.128.0/17 is within 10.40.0.0/16). Azure VNet peering requires non-overlapping address spaces; overlapping ranges cannot communicate via peering even with a shared gateway. Gateway transit does not resolve address overlap.

When would these options actually be correct?

A

If the VNets had non-overlapping address spaces but needed to force asymmetric routing or override default peering routes, creating the peering first and adding a route table later would be correct.

C

In a scenario where two VNets have non-overlapping address spaces and you need to control which traffic is allowed between them after peering, adding an NSG rule would be the correct step.

D

In a scenario where two VNets have non-overlapping address spaces but need to connect to an on-premises network through a single VPN gateway, enabling gateway transit on one VNet and using the other as a spoke allows the spoke VNet to use the hub's gateway without deploying its own.

Why candidates pick the wrong answer

A

Candidates may think peering can be established first and routing adjusted later, underestimating that Azure blocks peering creation when address spaces overlap.

C

Candidates may mistakenly think that NSGs can filter traffic between overlapping ranges, not realizing that overlapping IPs prevent routing from working at all.

D

Candidates may mistakenly think that a shared gateway can route traffic between overlapping VNets, similar to how a VPN gateway can connect overlapping on-premises networks with NAT, but Azure VNet peering does not support overlapping ranges.

141
MCQmedium

You need to grant an external partner temporary read access to a single blob in an Azure storage account without giving access to the account key. What should you create?

A.A storage account access key
B.A shared access signature (SAS)
C.A resource lock
D.A private endpoint
AnswerB

A shared access signature (SAS) is the correct choice because you can scope it to a single blob, assign only the Read permission, and set precise start and expiry times. This allows an external partner to access just that one blob for a limited period while keeping the rest of the storage account private. You can also revoke the SAS before expiry or, if you use a user delegation SAS, invalidate the signing key, giving you full control over the temporary grant.

Why this answer

A shared access signature (SAS) is the correct solution because it provides delegated, time-limited access to a specific Azure storage resource (such as a single blob) without exposing the storage account key. You can configure the SAS with read-only permissions, an expiration time, and apply it to a specific blob URL, meeting the requirement for temporary external read access.

Exam trap

The trap here is that candidates often confuse a shared access signature with a storage account access key, mistakenly thinking the key can be shared for temporary access, or they incorrectly assume a resource lock or private endpoint can control data access permissions.

Why the other options are wrong

A

A storage account access key grants full administrative access to the entire storage account, not temporary, read-only access to a single blob. It also violates the requirement to avoid giving the account key.

C

A resource lock prevents deletion or modification of resources but does not grant any access permissions, so it cannot provide read access to a blob.

D

A private endpoint provides secure, private connectivity to the storage account over a VNet, but does not grant temporary read access to a single blob for an external partner without an account key.

When would these options actually be correct?

A

When the question asks for a method to grant full administrative access to a storage account (e.g., for management tasks) and does not restrict sharing the account key, or when delegating access to a trusted internal administrator who needs full control.

C

You need to prevent accidental deletion of a critical storage account or container. Create a resource lock (e.g., CanNotDelete) to protect the resource from being deleted by authorized users.

D

You need to ensure that all traffic to a storage account from a specific virtual network is routed through a private IP address, eliminating exposure to the public internet. In this scenario, creating a private endpoint would be the correct answer.

Why candidates pick the wrong answer

A

Candidates may confuse access keys with SAS tokens, thinking both provide access to blobs, but overlook the security and granularity differences.

C

Candidates may confuse resource locks with access control mechanisms, thinking they can restrict or grant access, when locks only protect against modifications.

D

Candidates may confuse private endpoints with access control mechanisms, thinking that private endpoints can grant access to specific blobs, when in fact they only control network connectivity.

142
MCQeasy

A production application runs on three Azure VMs in a region that supports availability zones. The business wants the application to remain available if one datacenter in the region fails. What should the administrator use?

A.An availability set
B.Availability zones
C.A managed disk snapshot
D.A proximity placement group
AnswerB

Availability zones place VMs in separate datacenters within the same Azure region. If one datacenter or zone fails, the VMs in the remaining zones can continue running. This is the correct choice when the requirement is resilience against a zone-level or datacenter-level outage.

Why this answer

Availability zones are physically separate datacenters within an Azure region, each with independent power, cooling, and networking. Deploying the three VMs across different zones ensures that if one datacenter fails, the application remains available because the other zones continue to operate. This directly meets the requirement for resilience against a single datacenter failure.

Exam trap

The trap here is that candidates often confuse availability sets (which protect against rack-level failures) with availability zones (which protect against datacenter-level failures), leading them to choose the wrong option when the question specifies a full datacenter failure.

Why the other options are wrong

A

An availability set protects against failures within a single datacenter (e.g., rack or host failure), not against a full datacenter failure across availability zones.

C

A managed disk snapshot is a point-in-time backup of a disk, not a high-availability solution. It does not provide automatic failover or redundancy across datacenters, so it cannot keep the application available during a datacenter failure.

D

A proximity placement group reduces network latency between VMs but does not protect against a single datacenter failure, as it can span multiple availability zones or fault domains only within a single datacenter.

When would these options actually be correct?

A

If the question specified that the region does NOT support availability zones and the goal is to protect against hardware failures within a single datacenter, an availability set would be correct.

C

A managed disk snapshot would be correct in a scenario where the requirement is to create a backup of a VM's disk for disaster recovery or to restore the VM to a previous state, such as before a planned update or in case of data corruption.

D

A proximity placement group would be correct when the requirement is to minimize network latency between VMs for a tightly coupled application, such as a high-performance computing workload, and availability is not the primary concern.

Why candidates pick the wrong answer

A

Candidates may confuse availability sets with availability zones, thinking both provide similar datacenter-level redundancy, but availability sets only distribute VMs across fault domains within one datacenter.

C

Candidates may confuse snapshots with a high-availability mechanism because snapshots can be used to recreate VMs in another region, but they do not provide automatic, real-time availability during a failure.

D

Candidates may confuse proximity placement groups with high availability features, thinking that grouping VMs close together ensures they fail over together, but this actually increases risk of simultaneous failure.

143
Matchingeasy

Match each Azure VM access feature to the task it supports.

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

Concepts
Matches

Runs a script on a VM without opening inbound management ports.

Installs software or applies configuration during VM provisioning.

Lets users sign in to a VM with Entra identities.

Resets local administrator credentials or SSH configuration on a VM.

Why these pairings

Azure Bastion provides secure RDP/SSH without public IP; JIT restricts port access; NSGs filter traffic; Azure AD authentication enables identity-based login; Private Link ensures private connectivity; Firewall offers centralized control.

144
MCQmedium

You need to notify the operations team by email when average CPU utilization on VM-App01 exceeds 80 percent for 15 minutes. Which Azure Monitor components should you configure?

A.A metric alert and an action group
B.An activity log alert only
C.A resource lock and Azure Advisor
D.A budget alert
AnswerA

A metric alert continuously evaluates the VM's 'Percentage CPU' metric, which Azure Monitor collects from the host. When the average CPU utilization crosses the configured threshold (e.g., greater than 80%) for the specified window, the alert fires and activates an action group. Action groups are notification services that can send an email to the operations team, as well as SMS, voice, or webhooks. This combination is the standard method for threshold-based performance monitoring and notification.

Why this answer

A metric alert monitors a specific performance metric (like CPU utilization) and triggers when a threshold is exceeded for a defined duration. An action group defines the notification action (e.g., sending an email) when the alert fires. Together, they meet the requirement to email the operations team when average CPU exceeds 80% for 15 minutes.

Exam trap

The trap here is confusing metric alerts (for performance data) with activity log alerts (for resource operations), leading candidates to choose an activity log alert when the requirement is about a performance metric like CPU utilization.

Why the other options are wrong

B

An activity log alert monitors changes to Azure resources (e.g., VM creation, deletion), not performance metrics like CPU utilization. It cannot trigger based on a metric threshold exceeding 80% for 15 minutes.

C

A resource lock prevents accidental deletion or modification of resources, and Azure Advisor provides best practice recommendations. Neither component can monitor CPU utilization or send email alerts, so this combination cannot meet the requirement to notify the operations team when CPU exceeds 80% for 15 minutes.

D

A budget alert monitors Azure spending, not CPU utilization. It cannot trigger on performance metrics like average CPU usage exceeding a threshold.

When would these options actually be correct?

B

An activity log alert would be correct if the question required notification when a VM is deleted, stopped, or its size is changed, or when a security event like a failed login occurs. For example: 'You need to email the team when a virtual machine is deleted from the subscription.'

C

You need to prevent accidental deletion of a critical virtual machine and receive recommendations on how to improve its reliability and performance. In that case, you would configure a resource lock on the VM and use Azure Advisor to get recommendations.

D

You need to notify the finance team when spending on a subscription exceeds $500 for the month. A budget alert would be the correct component to configure.

Why candidates pick the wrong answer

B

Candidates may confuse activity log alerts with metric alerts, thinking any Azure alert can monitor performance metrics, or they may not distinguish between resource-level events and metric-based conditions.

C

Candidates may confuse Azure Advisor's recommendations with monitoring alerts, or think that a resource lock combined with Advisor can somehow trigger notifications, not realizing that neither component has alerting or email capabilities.

D

Candidates may confuse 'alert' with any notification mechanism, assuming a budget alert can be repurposed for performance monitoring, or they may not understand the distinct scope of budget alerts.

145
MCQmedium

You need to deploy 20 identical Azure virtual machines that host the same web application. The solution must support automatic scale-out based on CPU usage and should minimize administrative overhead. What should you deploy?

A.20 individual virtual machines in the same resource group.
B.A Virtual Machine Scale Set.
C.An availability set.
D.Azure Container Instances.
AnswerB

VM Scale Sets provide a managed group of identical VMs with autoscaling support.

Why this answer

A Virtual Machine Scale Set (VMSS) is the correct choice because it automates the deployment and management of identical VMs, supports autoscaling based on CPU usage metrics, and minimizes administrative overhead by handling VM creation, load balancing, and scaling policies as a single resource. This aligns with the requirement for 20 identical VMs with automatic scale-out based on CPU usage.

Exam trap

The trap here is that candidates often confuse an availability set (which provides high availability but no scaling) with a scale set (which provides both scaling and high availability), or they mistakenly think deploying individual VMs in a resource group is simpler, ignoring the requirement for automatic scale-out and reduced administrative overhead.

Why the other options are wrong

A

Managing 20 individual VMs requires manual configuration and lacks built-in autoscaling; it increases administrative overhead and does not meet the requirement for automatic scale-out based on CPU usage.

D

Azure Container Instances are designed for running containers without managing VMs, but they do not support automatic scale-out based on CPU usage natively; scaling requires additional orchestration like Azure Container Apps or Kubernetes, increasing administrative overhead.

When would these options actually be correct?

A

This option would be correct if the question required deploying a small number of VMs with different configurations or applications, and autoscaling was not needed. For example: 'You need to deploy two VMs running different operating systems for testing purposes.'

D

You need to deploy a microservice application in containers with fast startup times and minimal management overhead, and the scaling requirements are handled externally (e.g., by Azure Container Apps or a manual trigger). The question would specify 'containerized application' and 'no need for automatic VM-level scaling'.

Why candidates pick the wrong answer

A

Candidates may think deploying individual VMs is simpler or more familiar, and they might overlook the autoscaling requirement or underestimate the administrative overhead of managing many VMs separately.

D

Candidates may think containers are always simpler and more scalable, overlooking that Azure Container Instances lack built-in autoscaling and are not ideal for identical VM workloads requiring CPU-based scale-out.

146
MCQeasy

A workload subnet must send all outbound internet traffic through a network virtual appliance at 10.4.2.4. What should the administrator configure?

A.An NSG rule that allows outbound traffic to 10.4.2.4.
B.A route table with a user-defined route sending 0.0.0.0/0 to 10.4.2.4.
C.A private DNS zone for the subnet.
D.A service endpoint for the virtual network.
AnswerB

A user-defined route (UDR) with the address prefix 0.0.0.0/0 and a next hop of 10.4.2.4 (typically configured as a VirtualAppliance) overrides Azure's default system route for internet-bound traffic. When the route table is associated with the workload subnet, every packet destined to the internet is forwarded to 10.4.2.4, which acts as a forced tunneling point or network virtual appliance (NVA).

Why this answer

A user-defined route (UDR) with a destination of 0.0.0.0/0 and a next hop of Virtual Appliance (10.4.2.4) overrides the default system route for internet traffic, forcing all outbound traffic from the subnet to be forwarded to the network virtual appliance (NVA) for inspection or NAT. This is the standard method to implement forced tunneling or centralized internet egress in Azure.

Exam trap

The trap here is that candidates confuse NSG rules with routing: an NSG can block or allow traffic, but it cannot change the path traffic takes, so they incorrectly choose Option A thinking a permit rule will force traffic through the appliance.

Why the other options are wrong

A

An NSG rule controls traffic based on IP addresses but does not force all outbound internet traffic through a specific IP; it only allows or denies traffic. To route all internet-bound traffic through 10.4.2.4, a user-defined route (UDR) with 0.0.0.0/0 next hop to that IP is required.

C

A private DNS zone resolves domain names within a virtual network, but it does not control routing of outbound internet traffic. The question requires sending traffic through a network virtual appliance, which is a routing function, not a DNS function.

D

Service endpoints provide direct, private connectivity from a subnet to Azure PaaS services, not to a network virtual appliance. They do not route all outbound internet traffic through a specific IP address.

When would these options actually be correct?

A

An NSG rule allowing outbound traffic to 10.4.2.4 would be correct if the requirement is to permit traffic to that specific IP (e.g., to allow management traffic to a network virtual appliance) while other outbound traffic is handled differently, such as through default internet routing.

C

A private DNS zone would be correct if the question asked: 'You need to ensure that resources in a subnet can resolve a custom domain name (e.g., contoso.com) to a private IP address within the virtual network.'

D

A service endpoint would be correct if the question required a subnet to securely access an Azure service (e.g., Azure Storage or SQL Database) without sending traffic over the internet, by routing it through the Azure backbone network.

Why candidates pick the wrong answer

A

Candidates may confuse NSG rules with routing, thinking that allowing traffic to the appliance's IP is sufficient to direct all internet traffic through it, not realizing that routing is controlled by route tables, not NSGs.

C

Candidates may confuse DNS resolution with traffic routing, thinking that a private DNS zone can redirect internet-bound traffic by resolving domains to the appliance's IP, but DNS does not force all traffic through that IP.

D

Candidates may confuse service endpoints with routing traffic to a network virtual appliance, thinking that a service endpoint can redirect all outbound traffic, when in fact it only applies to specific Azure services.

147
MCQmedium

A DevOps pipeline runs on an on-premises build server and must deploy ARM templates to a resource group in Azure without using a user password. The server is not in Azure, so managed identity is not available. What should the administrator create?

A.A system-assigned managed identity on the build server.
B.A user-assigned managed identity attached to the on-premises server.
C.A service principal for the pipeline, with certificate-based or federated authentication.
D.A shared access signature for the target resource group.
AnswerC

An on-premises build server cannot use Azure managed identity directly, so the correct approach is to create a service principal and grant it the required RBAC permissions. Using certificate-based or federated authentication avoids storing a user password and supports secure non-interactive deployment from outside Azure.

Why this answer

The on-premises build server cannot use Azure managed identities (which require an Azure resource). Instead, a service principal with certificate-based or federated authentication provides a secure, passwordless identity for the pipeline to authenticate to Azure AD and deploy ARM templates. This aligns with the principle of using Azure AD application credentials for non-Azure workloads.

Exam trap

The trap here is that candidates assume managed identities can be used on any server, but Azure restricts them to Azure-hosted resources, forcing the use of service principals for on-premises scenarios.

Why the other options are wrong

A

Managed identities are an Azure feature that cannot be assigned to on-premises servers; they only work for Azure resources like VMs or App Services. The build server is not in Azure, so a managed identity is not applicable.

B

Managed identities are an Azure feature that cannot be assigned to on-premises servers; they only work with Azure resources like VMs or App Services. The question explicitly states the server is not in Azure.

D

A shared access signature (SAS) provides delegated access to Azure Storage resources, not to ARM template deployment. It cannot authenticate to Azure Resource Manager for deploying templates to a resource group.

When would these options actually be correct?

A

If the build server were an Azure VM, a system-assigned managed identity could be used to authenticate to Azure resources without passwords, enabling secure ARM template deployment.

B

A user-assigned managed identity would be correct if the build server were an Azure VM or Azure Arc-enabled server, and the pipeline needed to authenticate to Azure without managing credentials.

D

A shared access signature would be correct if the question asked for secure access to a storage account (e.g., to allow an on-premises server to upload files to a blob container) without using a password or managed identity.

Why candidates pick the wrong answer

A

Candidates may confuse managed identities with service principals, thinking they can be used for non-Azure resources, or they may overlook the constraint that the server is on-premises.

B

Candidates may confuse managed identities with service principals, thinking they can be applied to any server, or they may overlook the constraint that the server is on-premises and not Azure-based.

D

Candidates may confuse SAS with a general Azure authentication mechanism, thinking it can grant access to any Azure resource, or they may incorrectly assume SAS can be used for ARM template deployment.

148
Multi-Selecteasy

A user deleted a single document from a backed-up Windows VM. Which two Azure Backup actions are appropriate if only that file must be recovered? Select two.

Select 2 answers
A.Use file recovery from the backup point
B.Mount the recovery point and copy the file back
C.Recreate the VM in another region
D.Change the VM size
E.Disable the backup policy
AnswersA, B

Use the built-in Azure Backup file recovery feature: navigate to the Recovery Services vault, select the VM's backup item, choose File Recovery, pick the recovery point that predates the deletion, and download a script that mounts a read-only copy of the VM's disk. This lets you browse the filesystem and retrieve the single deleted document without performing a full VM restore, minimizing downtime and saving compute resources. It is the most direct and sanctioned method for restoring individual files from an Azure VM backup point.

Why this answer

Azure Backup provides file-level recovery for Windows VMs via the 'File Recovery' option in the Recovery Services vault. This allows you to mount the recovery point as a drive on the VM (using iSCSI) and directly copy the deleted file back to its original location without restoring the entire VM. Option B is also correct because mounting the recovery point (via the same file recovery process) and copying the file back is the exact mechanism used; the two options describe the same action from different perspectives.

Exam trap

The trap here is that candidates may think file recovery requires a full VM restore or that mounting the recovery point is a separate, unsupported action, when in fact both options describe the same Azure Backup feature.

Why the other options are wrong

C

Recreating the VM in another region restores the entire VM, not a single file, and is unnecessary for recovering one deleted document. It also incurs higher cost and complexity.

D

Changing the VM size does not recover deleted files; it modifies compute resources, which is irrelevant to file-level restoration from a backup.

E

Disabling the backup policy stops future backups but does not recover the deleted file. The question requires recovering a single file, not altering backup settings.

When would these options actually be correct?

C

If the question asked for recovering an entire VM after a regional disaster (e.g., primary region outage) and the backup was geo-redundant, then recreating the VM in another region from the backup would be appropriate.

D

A question asks how to improve performance for a VM that is consistently hitting CPU or memory limits, and the solution must involve resizing the VM to a larger SKU.

E

If the question asked 'Which action should you take to stop incurring backup costs for a VM that is no longer needed?' then disabling the backup policy would be appropriate.

Why candidates pick the wrong answer

C

Candidates may think that recreating the VM is a valid recovery method for any data loss, not realizing it's overkill for a single file and that Azure Backup offers file-level recovery.

D

Candidates may confuse VM configuration changes with recovery actions, or think that resizing could somehow restore data by altering the VM state.

E

Candidates may think disabling the backup policy somehow triggers a recovery or simplifies the process, but it only affects future backups, not existing data.

149
MCQmedium

A Windows VM must automatically run a setup script after provisioning to install an agent, create a folder, and write configuration files. The administrator wants the script to be delivered through Azure management and run without a human signing in. What should be used?

A.Custom Script Extension
B.Availability set
C.Azure Load Balancer
D.Route table
AnswerA

Custom Script Extension can download and run setup commands on the VM after provisioning without interactive login.

Why this answer

The Custom Script Extension (CSE) is the correct Azure feature to automatically run a setup script on a Windows VM after provisioning. It downloads and executes scripts from Azure Storage or GitHub, runs as the local system account, and requires no user sign-in, making it ideal for post-deployment configuration like installing agents and writing files.

Exam trap

The trap here is that candidates may confuse the Custom Script Extension with VM-level configuration tools like Desired State Configuration (DSC) or automation accounts, but the question specifically asks for a simple script delivery method that runs without human sign-in, which CSE directly provides.

Why the other options are wrong

B

An availability set is a logical grouping of VMs to ensure high availability during maintenance or failures, not for running scripts or automating post-provisioning tasks.

C

Azure Load Balancer distributes incoming network traffic across multiple VMs, but it does not execute scripts or automate software installation on VMs after provisioning.

D

A route table controls network traffic routing and cannot execute scripts or automate software installation on a VM.

When would these options actually be correct?

B

When the question asks how to ensure that at least one VM remains available during planned or unplanned maintenance events, an availability set is the correct answer.

C

An exam question requiring high availability and load distribution for a web application across multiple VMs, where traffic must be evenly distributed and health probes used to detect VM failures.

D

When a question asks how to force all outbound traffic from a subnet to go through a network virtual appliance (NVA) for inspection, a route table with a default route (0.0.0.0/0) pointing to the NVA is the correct answer.

Why candidates pick the wrong answer

B

Candidates might confuse 'availability' with 'automation' or think that an availability set can trigger scripts, but it only provides redundancy, not execution capability.

C

Candidates may confuse the Load Balancer's role in managing VM traffic with the ability to run scripts, or think it can trigger actions on VMs as part of a health probe response.

D

Candidates may confuse 'route' with 'run' or think that a route table can be used to direct the VM to a script location, but it has no execution capability.

150
Multi-Selectmedium

An app on a VM must connect to Azure SQL Database without using the public endpoint. The database name must resolve to a private IP inside the VNet, and public network access should be disabled. Which two actions should the administrator take? Select two.

Select 2 answers
A.Create a private endpoint for the Azure SQL server in the VNet.
B.Link the private DNS zone for the SQL private link domain to the VNet.
C.Enable a service endpoint for Microsoft.Sql on the subnet.
D.Grant the VM's managed identity Reader on the SQL server.
E.Keep public network access enabled and restrict the firewall to the VNet.
AnswersA, B

A private endpoint creates a network interface in your VNet with a private IP address that is mapped to the Azure SQL server, placing the service effectively inside the VNet. All traffic from the VM to SQL then travels over the Microsoft backbone rather than the public internet, and the SQL server's FQDN resolves to that private IP in the linked private DNS zone. This satisfies the requirement by ensuring the VM connects without ever exposing the SQL server to a public endpoint.

Why this answer

A private endpoint assigns the Azure SQL Database server a private IP address from the VNet, allowing the VM to connect without using the public endpoint. This ensures traffic stays within the Microsoft backbone and the database name resolves to a private IP inside the VNet.

Exam trap

The trap here is confusing service endpoints with private endpoints: service endpoints keep the public endpoint active and only add a network-level route, while private endpoints completely remove public exposure by assigning a private IP and requiring DNS reconfiguration.

Why the other options are wrong

C

A service endpoint for Microsoft.Sql only allows traffic from the subnet to Azure SQL's public endpoint via the Azure backbone, but it does not provide a private IP for the database name; the database still resolves to a public IP, and public network access must be disabled per the question.

D

Granting the VM's managed identity Reader role on the SQL server does not enable private connectivity; it only allows the VM to read the SQL server's metadata, not connect to the database privately.

E

Keeping public network access enabled contradicts the requirement to disable public network access, and restricting the firewall to the VNet does not provide a private IP resolution for the database name.

When would these options actually be correct?

C

A question where the requirement is to restrict access to Azure SQL from a specific subnet without disabling public endpoint, and the database name can resolve to a public IP. For example: 'You need to ensure that only traffic from a specific subnet can reach Azure SQL Database. Public endpoint access must remain enabled for other clients.'

D

If the question required the VM to authenticate to Azure SQL Database using a managed identity without using SQL authentication, then granting the managed identity a role (e.g., Contributor or SQL DB Contributor) on the SQL server would be correct, combined with enabling Azure AD authentication.

E

If the question required connecting from a VM to Azure SQL Database using the public endpoint but with access restricted to the VNet's public IP range, enabling public network access and configuring a VNet firewall rule would be correct.

Why candidates pick the wrong answer

C

Candidates often confuse service endpoints with private endpoints, thinking both provide private connectivity, but service endpoints do not assign a private IP and still use the public endpoint.

D

Candidates may confuse identity-based access control with network connectivity, thinking that granting a role to the managed identity is necessary for private endpoint connections.

E

Candidates may confuse VNet service endpoints with private endpoints, thinking that restricting firewall rules to the VNet is sufficient to achieve private connectivity without realizing that public endpoint remains accessible.

Page 1

Page 2 of 14

Page 3