Courseiva

CCNA Deploy and Manage Azure Compute Questions

40 of 190 questions · Page 3/3 · Deploy and Manage Azure Compute · Answers revealed

151
MCQmedium

A stateless Linux API should start with 2 instances, scale out to 6 when average CPU stays above 75 percent for 10 minutes, and scale back in when load drops. Which Azure compute resource should the administrator deploy?

A.An availability set with manual VM resizing.
B.A virtual machine scale set with autoscale rules.
C.A single Standard D-series VM with scheduled shutdown.
D.A load balancer in front of two unmanaged VMs.
AnswerB

A virtual machine scale set is built for identical compute instances that need to scale horizontally. Autoscale rules can watch CPU, adjust the instance count automatically, and maintain the minimum and maximum capacity you define. This fits stateless services very well because any instance can handle incoming requests once traffic is distributed across the set.

Why this answer

A virtual machine scale set (VMSS) with autoscale rules is the correct choice because it natively supports scaling out and scaling in based on performance metrics like average CPU percentage. The requirement for a stateless Linux API with a minimum of 2 instances, scaling to 6 when CPU exceeds 75% for 10 minutes, and scaling back in when load drops is exactly the use case VMSS is designed for. Autoscale rules can be configured to use a scale-out and scale-in policy with a cool-down period, ensuring the application remains responsive while optimizing cost.

Exam trap

The trap here is that candidates may confuse an availability set with autoscaling, not realizing that availability sets only provide redundancy and fault tolerance, not dynamic scaling, or they may think a load balancer with two VMs is sufficient, overlooking the requirement for automatic scaling based on CPU thresholds.

Why the other options are wrong

A

An availability set with manual VM resizing does not provide automatic scaling based on CPU thresholds; it only ensures high availability across fault domains, not dynamic scaling.

C

A single Standard D-series VM with scheduled shutdown cannot scale out to 6 instances or handle variable load; it's a fixed-size VM that only shuts down on a schedule, not based on CPU metrics.

D

This setup lacks autoscaling; scaling requires manual intervention or additional configuration, and unmanaged VMs do not support the automated scale-out/in rules needed for the stateless API's CPU-based scaling requirements.

152
MCQmedium

You need to deploy several identical virtual machines and ensure that the failure of a single Azure host does not affect all of them. Which feature should you use?

A.An availability set
B.A proximity placement group
C.A private endpoint
D.A custom script extension
AnswerA

An availability set ensures the deployed VMs are placed on different fault domains (distinct physical hardware, power, and network) and update domains (distinct maintenance schedules). This configuration guarantees that at least one VM remains available during either planned Azure maintenance or an unexpected hardware failure, and it is required to qualify for the 99.95% VM SLA. For identical, redundant VMs, an availability set is the standard resilience mechanism.

Why this answer

An availability set distributes virtual machines across multiple fault domains (physical hosts) and update domains within an Azure datacenter. By placing VMs in an availability set, you ensure that a failure of a single Azure host (fault domain) does not affect all VMs, as each VM is placed on a different physical host. This meets the requirement for isolation from a single host failure.

Exam trap

The trap here is that candidates often confuse availability sets with availability zones, thinking zones are required for host failure isolation, but availability sets provide fault domain isolation within a single datacenter, which is sufficient for the stated requirement.

Why the other options are wrong

B

A proximity placement group reduces network latency between VMs by placing them close together, but it does not protect against the failure of a single Azure host. In fact, it increases the risk of simultaneous failure because VMs are placed in close proximity, potentially on the same host.

C

A private endpoint provides secure connectivity to Azure PaaS services over a private IP address, not fault tolerance for VMs. It does not isolate VMs from host failures.

D

A custom script extension is used to run scripts on VMs after deployment, not to provide high availability or fault isolation across hosts.

153
MCQmedium

A development environment uses temporary test VMs that can be rebuilt at any time. The administrator wants the operating system disk to provide the lowest practical latency and does not need the disk data to survive a deallocate operation. Which OS disk option should be selected?

A.Standard HDD managed disk.
B.Premium SSD managed disk.
C.Ephemeral OS disk.
D.Ultra Disk managed disk.
AnswerC

Ephemeral OS disks are designed specifically for stateless workloads like temporary test VMs. The disk is hosted on the local VM storage rather than Azure Storage, providing the lowest possible read/write latency for the OS. When the VM is stopped, deallocated, or redeployed, the disk content is lost, which is exactly what you want for disposable test environments—no persistent storage cost or orphaned disks to clean up.

Why this answer

Ephemeral OS disks use the local VM storage (temporary disk) rather than remote managed storage, which provides the lowest possible latency because data is stored directly on the host node. Since the test VMs can be rebuilt at any time and the disk data does not need to survive a deallocate operation, the ephemeral disk is ideal—it is automatically deleted when the VM is deallocated or deleted, and it avoids the cost and performance overhead of managed disks.

Exam trap

The trap here is that candidates often choose Premium SSD (B) because they associate 'lowest latency' with premium managed disks, forgetting that ephemeral OS disks use local storage which is inherently faster and also meets the 'no persistence' requirement, while managed disks always persist data across deallocations.

Why the other options are wrong

A

Standard HDD managed disks have the highest latency among Azure disk types, which contradicts the requirement for the lowest practical latency. Additionally, they are persistent and survive deallocation, which is unnecessary for temporary VMs that can be rebuilt.

B

Premium SSD provides low latency but its data persists through deallocate, which contradicts the requirement that disk data does not need to survive deallocate. Ephemeral OS disk is the correct choice for lowest latency and data loss on deallocate.

D

Ultra Disk provides extremely low latency, but it is a managed disk that persists data through deallocate operations and is not ephemeral. The question requires the disk to not survive deallocation, so Ultra Disk does not meet that requirement.

154
MCQeasy

A line-of-business app will run on a single Azure virtual machine in a region that supports availability zones. The business wants the VM to keep running if one datacenter in the region fails. Which deployment choice should you use?

A.Place the VM in an availability set
B.Deploy the VM in an availability zone
C.Use a larger VM size
D.Use a custom image
AnswerB

An availability zone places the VM in a physically separate datacenter within the same Azure region. That design gives better resilience against a datacenter-level failure than an availability set. For a single VM, choosing a zone is the direct way to improve protection from one zone or datacenter going offline. It is the right operational choice when the region supports zones and the requirement is survivability during a datacenter outage.

Why this answer

Availability zones are physically separate datacenters within an Azure region, each with independent power, cooling, and networking. Deploying the VM in an an availability zone ensures that if one datacenter fails, the VM remains operational because it is hosted in a different zone. 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 within a datacenter) with availability zones (which protect against entire datacenter failures), leading them to incorrectly select availability set as the answer.

Why the other options are wrong

A

An availability set protects against failures within a single datacenter (e.g., rack or update domain failures), not against a full datacenter outage. Since the requirement is to survive a datacenter failure, availability zones (which span separate datacenters) are needed.

C

Increasing VM size improves performance but does not provide datacenter-level fault tolerance; it only adds more resources within the same datacenter.

D

Using a custom image does not provide any datacenter-level redundancy; it only defines the OS and software configuration of the VM, not its placement or fault tolerance.

155
MCQeasy

Two application VMs are in the same Azure region. They must stay available during planned host maintenance, but the business does not require protection from a full datacenter outage. Which placement option should you use?

A.Availability set
B.Availability zone
C.Shared disk
D.Snapshot set
AnswerA

An availability set spreads VMs across fault and update domains so planned maintenance affects only part of the group at a time.

Why this answer

An availability set distributes VMs across multiple fault domains (up to 3) and update domains (up to 20) within a single Azure datacenter. This ensures that during planned host maintenance, only one update domain is taken offline at a time, keeping the application VMs available. Since the requirement does not include protection from a full datacenter outage, an availability set is the correct and cost-effective placement option.

Exam trap

The trap here is that candidates often choose Availability zones because they see 'high availability' and assume it's always the best option, missing the explicit constraint that only planned host maintenance needs to be covered, not a full datacenter outage.

Why the other options are wrong

B

Availability zones protect against datacenter-level failures, but the question explicitly states no protection from a full datacenter outage is required. Zones also incur cross-zone latency and cost, which are unnecessary for planned host maintenance.

C

Shared disks allow multiple VMs to access the same managed disk simultaneously for clustered applications, but they do not provide high availability against planned host maintenance or datacenter outages.

D

Snapshot set is not a valid Azure placement option; it refers to a collection of disk snapshots used for backup or disaster recovery, not for VM placement during planned maintenance.

156
MCQmedium

A web tier must use identical VMs, keep the desired instance count if one instance becomes unhealthy, and allow future horizontal expansion without creating VMs one by one. What should the administrator deploy?

A.An availability set because it automatically replaces unhealthy instances.
B.A virtual machine scale set with health-based instance management.
C.An Azure Dedicated Host to keep the VMs on one physical server.
D.A proximity placement group to ensure the VMs are distributed evenly.
AnswerB

A virtual machine scale set provides a managed pool of identical VMs and is the right choice when you want Azure to maintain instance count and support horizontal growth. It works well for web tiers because the platform can replace unhealthy instances and let you scale up or down as demand changes. This removes the need to create and maintain each VM individually.

Why this answer

A virtual machine scale set with health-based instance management is correct because it automatically maintains a desired number of identical VM instances, replaces unhealthy instances based on health probes, and supports horizontal scaling without manual VM creation. This aligns with the requirements for identical VMs, automatic instance replacement, and future expansion.

Exam trap

The trap here is that candidates often confuse an availability set's fault domain protection with automatic instance replacement, not realizing that availability sets only provide redundancy, not health-based remediation.

Why the other options are wrong

A

An availability set does not automatically replace unhealthy instances; it only ensures VMs are distributed across fault and update domains for high availability. The question requires automatic health-based instance management, which availability sets lack.

C

An Azure Dedicated Host provides dedicated physical servers for compliance or licensing, but does not offer automatic health-based instance management or horizontal scaling; it would require manual VM creation and replacement.

157
MCQmedium

You need to reduce compute cost for a development virtual machine that is used only during business hours on weekdays. Which option provides the most direct built-in cost optimization?

A.Place the VM in an availability set.
B.Enable auto-shutdown on the VM.
C.Convert the OS disk to premium SSD v2.
D.Create a site-to-site VPN.
AnswerB

Auto-shutdown stops the VM according to a schedule and releases compute resources, so you stop paying for vCPU and RAM while the VM is deallocated; only the managed disk and static resources (such as a reserved public IP) continue to incur charges. For a development VM used only during business hours, this directly eliminates nightly and weekend compute billing, often the largest portion of the monthly cost, with no architectural changes.

Why this answer

B is correct because enabling auto-shutdown on the VM directly stops the VM during non-business hours (e.g., evenings and weekends), eliminating compute costs (which are billed per second while the VM is running). This is a built-in Azure feature that requires no additional infrastructure or manual intervention, making it the most direct cost-optimization method for a development VM with a predictable usage schedule.

Exam trap

The trap here is that candidates may confuse high-availability features (availability sets) or connectivity features (VPN) with cost optimization, or mistakenly think upgrading to premium storage reduces costs, when in fact the most direct built-in method for compute cost reduction is stopping the VM during idle periods via auto-shutdown.

Why the other options are wrong

A

An availability set provides high availability by distributing VMs across fault and update domains, but does not reduce compute costs for a VM used only during business hours.

C

Converting the OS disk to premium SSD v2 increases cost due to higher per-GB pricing and additional IOPS charges, whereas the goal is to reduce compute cost for a VM used only during business hours.

D

Creating a site-to-site VPN does not reduce compute costs; it is a networking feature for connecting on-premises networks to Azure, unrelated to VM cost optimization.

158
MCQeasy

A team has an approved Windows VM that already includes patches, a monitoring agent, and line-of-business software. They want future VMs to start from that same build. What should they use?

A.A custom image
B.A snapshot of the OS disk
C.An availability set
D.A larger VM size
AnswerA

A custom image is the best option when you want future VMs to start from an approved, preconfigured build. The image captures the operating system plus installed software and settings so you can deploy consistent new VMs from the same baseline. This is a common way to standardize environments and speed up repeat deployments.

Why this answer

A custom image captures the exact state of a VM, including installed patches, monitoring agents, and line-of-business software, allowing you to create multiple identical VMs from that golden image. Unlike a snapshot, which is tied to a specific disk and requires manual steps to create a VM, a custom image is stored as a managed image resource that can be used directly during VM provisioning via the Azure portal, CLI, or ARM templates.

Exam trap

The trap here is confusing a snapshot (which is a disk-level backup) with a custom image (which is a deployable template that includes the OS and all software), leading candidates to choose the snapshot option because they think it can be used directly to create a VM with the same configuration.

Why the other options are wrong

B

A snapshot of the OS disk captures the disk state at a point in time but cannot be used directly to deploy new VMs; it must first be converted to a managed disk or image, and it does not include the data disks or the generalized sysprep state required for creating multiple VMs.

C

An availability set is used to ensure high availability by grouping VMs across fault and update domains, not for creating reusable VM configurations.

D

A larger VM size only provides more compute resources (CPU/RAM) but does not capture the pre-configured OS, patches, monitoring agent, or line-of-business software needed to replicate the approved build.

159
MCQmedium

An operations team must administer Windows and Linux VMs that have no public IP addresses. They want to connect from a browser without installing a VPN client and without exposing RDP or SSH to the internet. Which Azure service should they deploy?

A.Azure Load Balancer
B.Azure Bastion
C.VPN Gateway point-to-site only
D.Application Gateway
AnswerB

Azure Bastion provides secure browser-based RDP and SSH access to VMs in a virtual network without needing public IP addresses on the VMs. It also avoids exposing management ports directly to the internet and does not require the user to install a VPN client. This makes it a strong fit for controlled administrative access in locked-down environments.

Why this answer

Azure Bastion provides secure, seamless RDP and SSH connectivity to virtual machines directly from the Azure portal over TLS, without requiring a public IP address on the VM, a VPN client, or exposing RDP/SSH ports to the internet. It uses a hardened bastion host inside the virtual network, proxying connections via the browser, which satisfies the requirement for browser-based access without additional client software.

Exam trap

The trap here is that candidates often confuse Azure Bastion with a VPN gateway or jump box, mistakenly thinking a VPN client or public IP is required for administrative access, when Bastion eliminates both by proxying connections directly from the Azure portal.

Why the other options are wrong

A

Azure Load Balancer distributes network traffic but does not provide secure browser-based RDP/SSH access to VMs without public IPs; it operates at the transport layer and cannot replace a jump server or bastion host.

C

VPN Gateway point-to-site requires installing a VPN client on the browser machine, which contradicts the requirement of no VPN client installation.

D

Application Gateway is a layer-7 load balancer that requires public IPs for frontend and does not provide secure browser-based RDP/SSH access to VMs without public IPs.

160
MCQhard

A stateless web app runs on two Ubuntu VMs behind an Azure Load Balancer. The region supports availability zones. The business wants the app to survive a full datacenter outage and also avoid having both VMs on the same maintenance boundary. Which deployment should you choose?

A.Place both VMs in a single availability set.
B.Deploy one VM and rely on Azure Backup for recovery.
C.Place the VMs in separate availability zones in the same region.
D.Deploy both VMs without any fault-domain configuration.
AnswerC

Availability zones place workloads in physically separate datacenters within the same region. That design protects against a full zone or datacenter outage and also gives you a stronger isolation boundary than an availability set. Because the app has two VMs behind a load balancer, you can distribute them across zones and maintain service if one zone becomes unavailable.

Why this answer

Deploying the VMs in separate availability zones ensures they are placed in physically distinct datacenters within the same region, protecting against a full datacenter outage. Additionally, each availability zone has its own fault and update domains, so the VMs will never share the same maintenance boundary, meeting both business requirements.

Exam trap

The trap here is that candidates often confuse availability sets (which protect within a datacenter) with availability zones (which protect across datacenters), and fail to recognize that only zones can survive a full datacenter outage while also avoiding shared maintenance boundaries.

Why the other options are wrong

A

An availability set protects against rack-level failures within a single datacenter, not a full datacenter outage. The requirement to survive a full datacenter outage demands availability zones, which span separate physical locations.

B

Azure Backup provides disaster recovery for data and VMs, but it does not ensure high availability or prevent downtime during a datacenter outage; recovery takes time and the app would be unavailable.

D

Deploying both VMs without fault-domain configuration does not protect against a full datacenter outage or maintenance events, as both VMs could be placed on the same physical host or within the same datacenter, violating the requirement for high availability.

161
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

B

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

C

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

D

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

162
Multi-Selecteasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

C

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

D

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

E

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

163
MCQhard

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

164
Multi-Selecthard

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

C

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

D

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

E

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

165
Multi-Selecthard

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

C

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

D

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

E

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

166
MCQhard

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

167
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

168
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

169
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

170
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

171
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

172
MCQhard

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

B

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

C

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

D

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

173
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

B

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

C

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

D

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

174
MCQmedium

Based on the exhibit, which deployment change best meets the resilience requirement for the application VMs?

A.Keep both VMs in the same availability set to spread them across update domains only.
B.Place each VM in a different availability zone and keep the load balancer in front.
C.Deploy both VMs into a proximity placement group to reduce latency between them.
D.Move the VMs into a single availability set and add more managed disks for redundancy.
AnswerB

Availability zones provide isolation across datacenters within the same region. By placing the two VMs in different zones, the workload can continue if one zone or datacenter becomes unavailable. The load balancer can direct traffic to the surviving VM. This design matches the stated requirement more closely than an availability set, which only spreads VMs across fault and update domains inside a single datacenter cluster.

Why this answer

Deploying each VM into a different availability zone ensures that the VMs are physically separated across distinct data centers within an Azure region, protecting against zone-level failures. The load balancer in front distributes traffic across the VMs, providing high availability even if one zone goes offline. This meets the resilience requirement by eliminating a single point of failure at the data center level.

Exam trap

The trap here is that candidates often confuse availability sets (which protect against rack-level failures within a single data center) with availability zones (which protect against full data center outages), leading them to choose Option A thinking it provides sufficient resilience.

Why the other options are wrong

A

An availability set only protects against rack-level failures and update domain reboots, not against a full datacenter outage. The question's resilience requirement demands protection against a zonal failure, which only availability zones provide.

C

The question focuses on resilience (high availability), not latency. A proximity placement group reduces network latency but does not protect against zonal or rack-level failures, so it fails to meet the resilience requirement.

D

Adding more managed disks does not provide VM resilience; it only increases storage redundancy. The question requires application VM resilience, which is about compute availability, not disk redundancy.

175
MCQmedium

An Azure virtual machine was moved to a host that is experiencing intermittent issues. You need to move the VM to a different Azure host while keeping the existing managed disks and configuration. Which action should you perform?

A.Stop
B.Restart
C.Redeploy
D.Capture
AnswerC

Redeploy is the correct action because Azure explicitly reallocates the virtual machine to a different physical host within the same region, while preserving the VM's managed disks, network interfaces, and configuration. This operation is designed to resolve host-level failures or performance issues that a simple OS-level reboot cannot address. The portal's 'Redeploy' button triggers a backend process that first deallocates the VM and then restores it onto a healthy host, ensuring continuity of your VM's data and settings.

Why this answer

Redeploying the VM (Option C) is the correct action because it moves the VM to a new Azure host node while preserving the existing managed disks, virtual network, and configuration. The Azure platform automatically selects a healthy host, resolves transient hardware issues, and maintains the VM's identity and associated resources.

Exam trap

The trap here is that candidates confuse 'Stop' (which deallocates but may not change the host) with 'Redeploy' (which explicitly forces a host migration), or they mistakenly think 'Restart' is sufficient to fix hardware issues when it only reboots the OS on the same faulty host.

Why the other options are wrong

A

Stopping the VM only deallocates it; it does not force the VM to be moved to a different host. The VM may be placed back on the same problematic host when started again.

B

Restarting the VM does not change the underlying host; it only reboots the VM on the same host, so it would not resolve issues caused by a faulty host.

D

Capturing a VM creates a generalized image, which removes machine-specific configurations and managed disks, making it unsuitable for moving the VM to a different host while keeping existing managed disks and configuration.

176
MCQeasy

A development VM is rebuilt often and does not need its operating system disk contents to survive deallocation. The team wants the lowest practical disk latency for the OS. Which disk option should the administrator choose?

A.Standard HDD managed disk
B.Ephemeral OS disk
C.Geo-redundant storage for the OS disk
D.A data disk formatted as the boot disk
AnswerB

An ephemeral OS disk is hosted on the local VM storage instead of a managed disk, which eliminates the separate storage cost and dramatically reduces read/write latency. Because the disk is tied to the VM's lifecycle, every time the VM is deallocated or rebuilt the disk is reset to the original image, making it ideal for a frequently recreated development VM. This exactly matches the requirement that the VM does not need its OS disk to persist between runs.

Why this answer

Ephemeral OS disks use the local VM storage (SSD) rather than Azure managed disks, providing the lowest latency for OS read/write operations. Since the VM is rebuilt often and disk persistence is not required, the ephemeral disk is ideal because its contents are lost when the VM is deallocated, eliminating the need for a separate managed disk.

Exam trap

The trap here is that candidates often choose Standard HDD (Option A) thinking it is the cheapest option, but they overlook that 'lowest practical disk latency' explicitly requires performance, not cost, and that Ephemeral OS disks provide both low latency and zero cost for the OS disk itself (since it uses local storage).

Why the other options are wrong

A

Standard HDD managed disks have higher latency compared to SSDs or ephemeral disks, and the question specifically asks for the lowest practical disk latency for the OS.

D

A data disk formatted as the boot disk cannot be used as the OS disk in Azure; the OS disk must be a managed disk attached as the OS disk, not a data disk. This option does not provide the lowest latency or meet the requirement for an OS disk that is rebuilt often.

177
MCQeasy

You deploy a Windows Server VM and need to run several PowerShell commands after deployment without signing in to the VM. Which Azure feature should you use?

A.Use the Custom Script Extension on the VM.
B.Put the VM in an availability zone.
C.Attach a managed identity and rely on Azure Policy.
D.Create a snapshot before startup.
AnswerA

The Custom Script Extension downloads and executes PowerShell scripts on the Windows VM via the Azure VM Agent. It is specifically designed for post-deployment configuration tasks such as installing roles, configuring settings, or applying updates, without requiring an interactive RDP or PowerShell session. You can deploy it through the Azure portal, CLI, PowerShell, or Azure Resource Manager templates.

Why this answer

The Custom Script Extension (CSE) is the correct Azure feature because it allows you to run PowerShell or Bash scripts on a VM after deployment without requiring interactive sign-in. It executes the script via the Azure VM Agent, which runs as a local system process, making it ideal for post-deployment configuration tasks like installing software or running commands.

Exam trap

The trap here is confusing post-deployment script execution with other VM management features like availability zones or managed identities, which serve entirely different purposes (high availability and authentication, respectively).

Why the other options are wrong

B

Availability zones provide high availability by protecting VMs from datacenter failures, but they do not execute PowerShell commands after deployment.

C

Attaching a managed identity and relying on Azure Policy does not execute PowerShell commands on the VM; it assigns permissions and enforces compliance rules, not post-deployment scripts.

D

Creating a snapshot before startup captures the disk state but does not execute any commands after deployment. Snapshots are for backup or recovery, not for running scripts.

178
Matchingeasy

Match each image or placement term to the administrator need it supports.

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

Concepts
Matches

Used to deploy multiple new VMs from a prepared standard build.

Used to create a new VM that keeps the source machine's existing state.

Helps protect against host or maintenance failures inside one datacenter.

Helps protect against a full datacenter outage in a region.

Why these pairings

Availability Set protects against rack failures; Availability Zone protects against datacenter failures; Proximity Placement Group reduces latency; Scale Set provides auto-scaling; VNet isolates network; Load Balancer distributes traffic.

179
MCQhard

A virtual machine named VM-App01 hosts a critical internal application. You need to protect the VM so that it can be restored if the VM is deleted or corrupted. The solution must provide centralized backup management and retention policies. What should you use?

A.Azure Backup with a Recovery Services vault.
B.Managed disk snapshots only.
C.Azure Site Recovery only.
D.Boot diagnostics.
AnswerA

Azure Backup with a Recovery Services vault is the correct solution because it provides a centralized, policy-driven backup service designed specifically for VM protection. It installs the VM extension to take application-consistent snapshots, transfers them to the vault, and applies configurable retention rules for daily/weekly/monthly/yearly points. This enables granular restores (files, disks, or entire VM) with integration into Azure Monitor and RBAC, giving you a reliable, auditable backup system for disaster recovery and operational recovery.

Why this answer

Azure Backup with a Recovery Services vault is the correct choice because it provides centralized backup management, configurable retention policies, and the ability to restore a VM even if it is deleted or corrupted. Unlike snapshots, Azure Backup stores backups in a separate vault, supports application-consistent backups via the Volume Shadow Copy Service (VSS), and offers long-term retention with backup policies.

Exam trap

The trap here is that candidates often confuse Azure Backup (for backup and retention) with Azure Site Recovery (for disaster recovery), or assume that disk snapshots alone are sufficient for full VM recovery, ignoring the need for centralized management and retention policies.

Why the other options are wrong

B

Managed disk snapshots only provide crash-consistent backups for individual disks, but they lack centralized management, retention policies, and the ability to restore the entire VM configuration (including network and OS settings) in case of VM deletion or corruption.

C

Azure Site Recovery is designed for disaster recovery and business continuity by replicating VMs to a secondary region, not for centralized backup management with retention policies for restoring deleted or corrupted VMs.

D

Boot diagnostics only captures serial console output and screenshots for troubleshooting boot failures; it does not provide backup or restore capabilities for VM deletion or corruption.

180
MCQmedium

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

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

A Virtual Machine Scale Set (VMSS) is a managed Azure service that deploys and manages a group of identically configured virtual machines, making it the ideal choice for running 25 identical web servers. VMSS integrates automatic scaling, enabling the fleet to grow or shrink based on CPU, memory, or custom metrics, and it can work with Azure Load Balancer or Application Gateway for traffic distribution. By defining a single VM image and configuration, you can effortlessly maintain a consistent environment across all instances, which is exactly what this workload requires.

Why this answer

A Virtual Machine Scale Set (VMSS) is the correct Azure compute feature because it allows you to deploy and manage a group of identical, load-balanced VMs whose number can automatically increase or decrease in response to CPU demand using autoscale rules. This directly meets the requirement for 25 identical VMs with automatic scaling based on CPU metrics.

Exam trap

The trap here is that candidates often confuse an availability set (which provides high availability) with a Virtual Machine Scale Set (which provides both identical deployment and autoscaling), leading them to select Option A because they focus on the 'identical VMs' requirement without recognizing that autoscaling is the key differentiator.

Why the other options are wrong

A

An availability set provides high availability by distributing VMs across fault domains 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 based on CPU demand.

D

Boot diagnostics captures serial console output and screenshots for troubleshooting VM boot failures, but it does not provide automatic scaling or deployment of multiple VMs.

181
Multi-Selectmedium

Which three of the following are valid ways to achieve high availability for a virtual machine workload running in Azure? (Choose three.)

Select 3 answers
.Deploy the VM inside an Availability Set with two or more VMs.
.Use an Availability Zone by deploying VMs into different zones within the same region.
.Configure a VM Scale Set with a minimum instance count of 2 and spread across fault domains.
.Assign a public IP address to each VM to enable load balancing.
.Set the VM’s operating system disk to a Premium SSD tier to reduce disk latency.
.Enable Azure Backup on the VM to protect against regional disasters.

Why this answer

Deploying a VM inside an Availability Set with two or more VMs ensures high availability by placing the VMs across multiple fault domains and update domains within a single Azure datacenter. This protects against hardware failures and planned maintenance events, as at least one VM remains available during an outage or update cycle.

Exam trap

The trap here is confusing high-availability mechanisms (like redundancy and automatic failover) with performance improvements (Premium SSD) or data protection (Azure Backup), leading candidates to select options that improve speed or recovery but do not ensure continuous uptime.

182
MCQeasy

Based on the exhibit, which deployment choice should the administrator use to keep the application available if one datacenter in the Azure region fails?

A.Place both VMs in the same availability set.
B.Deploy the VMs across separate availability zones.
C.Use a proximity placement group for both VMs.
D.Use a larger VM size for each virtual machine.
AnswerB

Availability zones place resources in physically separate datacenters within the region. If one datacenter fails, the other zone can continue serving traffic. This matches the requirement for surviving a single datacenter outage and is the preferred Azure design when zone support is available.

Why this answer

Availability zones are physically separate datacenters within an Azure region, each with independent power, cooling, and networking. Deploying VMs across separate availability zones ensures that if one datacenter fails, the application remains available in the other zone, providing resilience against datacenter-level failures.

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 incorrectly choose an availability set for datacenter-level resilience.

Why the other options are wrong

A

An availability set protects against rack-level failures within a single datacenter, not against a full datacenter failure. If one datacenter fails, all VMs in the same availability set (which are in that datacenter) become unavailable.

D

Larger VM sizes improve performance but do not provide redundancy or fault isolation; if a datacenter fails, all VMs in that datacenter are affected regardless of size.

183
Multi-Selecthard

A data disk on VM-Data01 was corrupted after a bad patch, and you already have a snapshot taken last night. The OS disk should remain unchanged. Which two actions should you take to restore only the data disk? Select two.

Select 2 answers
A.Create a managed disk from the snapshot.
B.Attach the restored managed disk to VM-Data01.
C.Redeploy the VM and expect the data disk to revert automatically.
D.Generalize the VM and redeploy it from the snapshot.
E.Replace the snapshot with the current data disk to roll back the VM.
AnswersA, B

In Azure, a snapshot is a point-in-time read-only copy of a managed disk and cannot be attached directly to a VM. You must first create a new managed disk using the snapshot as its source (for example, with New-AzDisk specifying the snapshot ID or via the portal's 'Create disk from snapshot' action), selecting the required storage SKU, size, and zone. This produces a writable, independently managed disk that can then be attached for recovery.

Why this answer

A snapshot is a point-in-time copy of a disk that can be used to create a new managed disk. Since you have a snapshot of the corrupted data disk from last night, creating a managed disk from that snapshot restores the data to its state at the time of the snapshot, leaving the OS disk untouched.

Exam trap

The trap here is that candidates may confuse redeploying a VM (which only moves the VM to a new host) with restoring disk data, or mistakenly think a snapshot can be directly attached to a VM without first creating a managed disk.

Why the other options are wrong

C

Redeploying a VM does not revert the data disk to a previous state; it only migrates the VM to a new host while preserving the existing disks. The corrupted data disk would remain corrupted after redeployment.

D

Generalizing the VM (via Sysprep) prepares the OS for imaging, which is unnecessary and destructive for a simple data disk restore. It would reset the VM's identity and potentially break applications, while the snapshot is only for the data disk.

E

Replacing the snapshot with the current data disk would overwrite the snapshot, not restore the data disk. The goal is to restore the data disk from the snapshot, not replace the snapshot.

184
Multi-Selecthard

A build pipeline needs to run a Linux container for about 15 minutes whenever a request arrives. The job never needs inbound traffic, clustering, or persistent node management. A second workload is a public web app that needs built-in TLS, deployment slots, and autoscale. Which two Azure compute services should the administrator choose? Select two.

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

This is a serverless container host that fits short-lived, on-demand container jobs.

Why this answer

Azure Container Instances (ACI) is the correct choice for the first workload because it allows you to run a Linux container on demand without managing any underlying infrastructure, and it supports a 15-minute execution time perfectly with its per-second billing and no requirement for persistent nodes or inbound traffic. Azure App Service is correct for the second workload because it natively provides built-in TLS/SSL termination, deployment slots for staging and swapping, and autoscale capabilities out of the box, making it ideal for a public web app.

Exam trap

The trap here is that candidates often choose Azure Kubernetes Service for any container workload, overlooking that ACI is simpler and cheaper for ephemeral, single-container tasks, and they may also pick Azure Functions for the web app without realizing it lacks native deployment slots and built-in TLS management compared to App Service.

Why the other options are wrong

C

Azure Kubernetes Service (AKS) is overkill for a simple Linux container that runs for 15 minutes on demand without clustering or persistent node management. For the public web app, AKS does not provide built-in TLS, deployment slots, or autoscale out of the box; these require additional configuration.

D

Azure Virtual Machines require persistent node management, inbound traffic handling, and clustering, which are unnecessary for the short-lived Linux container job. For the public web app, VMs lack built-in TLS, deployment slots, and autoscale without additional configuration.

E

Azure Functions is event-driven and designed for short-lived executions (typically under 10 minutes), not for a 15-minute container run on demand. It also lacks native container support for arbitrary images.

185
MCQeasy

Two app VMs must stay available during planned host maintenance in the same region. Datacenter-level redundancy is not required, but the VMs should be spread across update domains. What should you configure?

A.Availability set
B.Availability zone
C.Azure Backup
D.Managed disk
AnswerA

An availability set logically groups VMs so Azure distributes them across fault domains (isolated power/network) and update domains (host groups rebooted sequentially). During planned host maintenance, Azure updates one update domain at a time, so at least one VM in the set remains online. This is the targeted placement control that directly matches the scenario's requirement.

Why this answer

An availability set logically groups VMs to protect against planned maintenance events by distributing them across up to 3 fault domains and 20 update domains. This ensures that during host maintenance, only one update domain is taken offline at a time, keeping the other VMs available. Since datacenter-level redundancy is not required, an availability set is the correct choice.

Exam trap

The trap here is that candidates often confuse availability zones (which provide datacenter-level redundancy) with availability sets (which provide intra-datacenter fault and update domain distribution), leading them to select availability zones even when the question explicitly states datacenter-level redundancy is not required.

Why the other options are wrong

B

Availability zones provide datacenter-level redundancy across physically separate zones, which is not required here. The question specifies that datacenter-level redundancy is not needed, and only spreading across update domains within the same region is required, which is a feature of availability sets.

C

Azure Backup is a data protection service for backing up VMs, not a high-availability feature. It does not distribute VMs across update domains or provide availability during planned host maintenance.

D

Managed disks provide storage redundancy and durability, but they do not distribute VMs across update domains to ensure availability during planned host maintenance.

186
MCQeasy

A reporting server will run an in-memory analytics application that needs 8 vCPUs and 64 GiB of RAM. The administrator wants a VM family that is a good fit for memory-heavy workloads. Which VM family should be chosen?

A.Memory-optimized VM family
B.Burstable VM family
C.Compute-optimized VM family
D.Storage-optimized VM family
AnswerA

Memory-optimized sizes are designed for workloads that need a higher memory-to-vCPU ratio than general-purpose sizes. They are a practical fit for analytics engines, large caches, and in-memory databases where RAM is the main constraint. Choosing this family helps the team meet the workload requirement without paying for unnecessary specialized features that do not address the sizing need.

Why this answer

Memory-optimized VM families (e.g., Azure E-series) are designed for workloads that require a high memory-to-vCPU ratio, such as in-memory analytics applications. The requirement of 64 GiB of RAM for 8 vCPUs (8:1 ratio) aligns with the memory-optimized profile, which offers up to 8 GiB per vCPU or more, ensuring the application's data fits entirely in RAM for low-latency processing.

Exam trap

The trap here is that candidates may confuse 'memory-heavy' with 'compute-heavy' and choose compute-optimized VMs, overlooking the specific memory-to-vCPU ratio required for in-memory analytics.

Why the other options are wrong

B

The question specifies a memory-heavy workload requiring 64 GiB of RAM, and burstable VM families are designed for workloads with variable CPU usage, not consistent high memory demands.

C

The question specifies a memory-heavy workload with 64 GiB of RAM, and compute-optimized VMs prioritize high CPU performance over memory capacity, making them unsuitable for this requirement.

D

Storage-optimized VM families are designed for high disk throughput and I/O, not for large memory requirements. The question specifies a memory-heavy workload needing 64 GiB of RAM, which is not a storage concern.

187
MCQeasy

An application on an Azure VM needs more CPU and memory. The administrator wants to keep the same OS disk and installed apps, without redeploying the server. What should be done?

A.Resize the VM to a larger size
B.Reimage the VM
C.Move the VM into a different availability zone
D.Create a new storage account
AnswerA

Resizing the VM changes the allocated compute resources while keeping the same operating system disk and data disks. This is the usual way to give an existing VM more CPU and memory without rebuilding the server. In many cases, you only need to stop the VM briefly, choose a larger size, and start it again.

Why this answer

Resizing the VM (Option A) allows you to change the VM size to a SKU with more CPU and memory while preserving the OS disk, installed applications, and all data. This operation can be performed on a stopped (deallocated) VM and does not require redeployment or reimaging, making it the correct choice for scaling up resources without disruption to the existing configuration.

Exam trap

The trap here is that candidates may confuse 'resizing' with 'reimaging' or think that changing availability zones or storage accounts can affect compute resources, when in fact only changing the VM size directly modifies CPU and memory allocation.

Why the other options are wrong

B

Reimaging the VM would reset the OS disk to its original state, removing installed applications and custom configurations, which contradicts the requirement to keep the same OS disk and installed apps.

C

Moving a VM to a different availability zone does not change its CPU or memory resources; it only changes the physical location for high availability.

D

Creating a new storage account does not change the VM's CPU or memory resources; it only provides additional storage, which does not address the need for more compute capacity.

188
MCQhard

Two backend VMs must remain available if an Azure host is patched or fails. A full datacenter outage is not part of the requirement, and the team wants the VMs to stay in the same region with predictable east-west latency. Which placement option should the administrator choose?

A.Availability zones in separate datacenters
B.An availability set
C.A proximity placement group
D.A single VM scale set instance
AnswerB

An availability set spreads the two backend VMs across multiple fault domains (distinct racks with separate power and network switches) and update domains (hosts rebooted one at a time during patching). By placing each VM in a different fault domain, Azure guarantees that at least one VM stays running when a single physical host fails or undergoes maintenance, so this directly meets the resilience requirement with minimal configuration.

Why this answer

An availability set distributes VMs across multiple fault domains (separate physical racks with independent power, cooling, and network) within a single Azure datacenter. This protects against host patching and hardware failures while keeping VMs in the same datacenter, ensuring predictable east-west latency. The requirement explicitly excludes a full datacenter outage, so availability zones (which span separate datacenters) are unnecessary.

Exam trap

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

Why the other options are wrong

A

Availability zones place VMs in physically separate datacenters within a region, which protects against a single host failure but also introduces cross-zone latency. The requirement specifies predictable east-west latency and staying within the same region without needing full datacenter redundancy, making availability sets a better fit.

C

A proximity placement group reduces network latency between VMs but does not protect against host patching or failure; it can place VMs on the same host, increasing failure risk.

D

A single VM scale set instance does not provide high availability; it is just one VM. The requirement for two backend VMs to remain available during host patching or failure necessitates redundancy, which a single instance cannot offer.

189
Multi-Selecthard

A reporting application will run on a single Azure VM and needs 8 vCPUs, 64 GiB of RAM, and a temporary local disk for cache. The team wants a size that satisfies the requirement without oversizing memory or paying for an unnecessarily large specialty series. Which two VM sizes meet the requirement best? Select two.

Select 2 answers
A.E8as_v5
B.E8ds_v5
C.D8as_v5
D.F8s_v2
E.M8ms
AnswersA, B

This size provides 8 vCPUs and 64 GiB of memory, matching the workload requirement closely.

Why this answer

The E8as_v5 is correct because it provides 8 vCPUs and 64 GiB of RAM, matching the requirement exactly, and includes a temporary local disk (SSD) for cache. It belongs to the memory-optimized Esv5 series, which is designed for memory-intensive workloads without oversizing, and the 'as' variant includes local temporary storage.

Exam trap

The trap here is that candidates often overlook the local temporary disk requirement and select a VM size that meets vCPU and RAM but lacks local storage (e.g., D8as_v5 without 's' or F-series), or they choose an M-series VM that grossly oversizes memory, mistaking 'memory-optimized' as always appropriate for any memory need.

Why the other options are wrong

C

The D8as_v5 has only 32 GiB of RAM, which is half the required 64 GiB, and it lacks a local temporary disk for cache, failing the storage requirement.

D

The F8s_v2 has only 8 vCPUs and 16 GiB of RAM, which is far below the required 64 GiB of RAM for the reporting application.

E

The M8ms is a memory-optimized VM from the M-series, which is designed for large in-memory workloads like SAP HANA. It provides 8 vCPUs and 64 GiB of RAM, but it is a specialty series that is significantly more expensive than the E-series, and the question specifies avoiding unnecessarily large specialty series. Additionally, the M8ms does not include a temporary local disk for cache, which is required by the application.

190
MCQeasy

An application uses two Azure VMs in the same datacenter and must continue through planned maintenance and a single hardware host failure. The administrator does not need separate datacenter protection. Which option should be used?

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

An availability set is designed to spread VMs across update and fault domains within a datacenter. That reduces the chance that maintenance or a host failure takes down all instances at once. Because the scenario only requires protection from host-level and planned maintenance events, an availability set is the appropriate and cost-effective choice.

Why this answer

An availability set distributes VMs across multiple fault domains (hardware hosts) and update domains within a single Azure datacenter. This ensures that during planned maintenance (update domains) or a single hardware host failure (fault domains), at least one VM remains available. Since the requirement does not include separate datacenter protection, an availability set is the correct choice.

Exam trap

The trap here is that candidates often confuse availability zones (which offer datacenter-level redundancy) with availability sets (which offer host-level redundancy within a single datacenter), leading them to choose zones even when the requirement explicitly states no separate datacenter protection is needed.

Why the other options are wrong

A

Availability zones provide datacenter-level redundancy across multiple physical locations within a region, but the question explicitly states no separate datacenter protection is needed. The requirement is only for protection against planned maintenance and a single hardware host failure, which an availability set handles within a single datacenter.

C

Proximity placement groups reduce network latency between VMs but do not provide high availability against planned maintenance or hardware failures. They lack fault domain and update domain isolation.

D

A virtual machine scale set provides auto-scaling and load balancing across multiple VMs, but it does not guarantee protection against planned maintenance or a single hardware host failure unless combined with an availability set or zones. The question specifies only two VMs and no need for scaling, making an availability set the simpler and correct choice.

← PreviousPage 3 of 3 · 190 questions total

Ready to test yourself?

Try a timed practice session using only Deploy and Manage Azure Compute questions.