Courseiva

CCNA Deploy and Manage Azure Compute Questions

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

1
MCQmedium

Two legacy application VMs must survive planned maintenance and a single host failure. The vendor requires both VMs to stay in the same region, and a datacenter outage is not part of the requirement. What should the administrator use?

A.An availability set that places the VMs in separate fault and update domains.
B.Availability zones with one VM in each zone.
C.A virtual machine scale set in a single zone.
D.A proximity placement group for both VMs.
AnswerA

Availability sets are designed for host-level resilience inside one datacenter. They spread VMs across fault domains and update domains, which helps reduce impact from hardware failures and planned maintenance. Because the requirement does not include surviving a full datacenter outage, an availability set is the right level of protection without the added complexity of zones.

Why this answer

An availability set protects against planned maintenance and single host failures by placing VMs in separate fault domains (different physical hardware) and update domains (different maintenance windows). This ensures that during planned Azure maintenance, only one VM is rebooted at a time, and if a host fails, only VMs in that fault domain are affected. Since the requirement specifies a single host failure (not a datacenter outage) and both VMs must stay in the same region, an availability set is the correct choice.

Exam trap

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

Why the other options are wrong

B

The requirement is to survive a single host failure, not a datacenter outage. Availability zones protect against datacenter failures, but placing one VM in each zone would not protect against a single host failure because each zone contains multiple hosts, and the VMs could still be on the same host within a zone.

C

A virtual machine scale set in a single zone does not protect against a single host failure because all VMs could be on the same host; it also doesn't meet the requirement of exactly two legacy VMs with separate fault domains.

D

A proximity placement group ensures low network latency between VMs but does not protect against planned maintenance or single host failure, as VMs can still be placed on the same host or fault domain.

2
Matchingeasy

Match each Azure CLI command to the action it performs for a virtual machine.

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

Concepts
Matches

Starts a stopped virtual machine without changing its disks or NICs.

Stops the VM and releases the compute host, which can reduce compute charges.

Moves the VM to a new Azure host to help resolve host-level issues.

Changes the VM size, such as moving from a smaller to a larger SKU.

Why these pairings

Each Azure CLI command performs the corresponding VM lifecycle action: create, start, stop, deallocate (releases resources), delete, or list.

3
MCQmedium

A team needs to deploy 25 identical Ubuntu VMs every month from source control. The deployment must be repeatable, and each VM must include a system-assigned managed identity at creation time. Which approach should be used?

A.Azure portal manual creation of each VM.
B.A Bicep template deployment.
C.An Azure Policy assignment at the subscription level.
D.An Azure Monitor alert rule that triggers VM creation.
AnswerB

A Bicep template is declarative infrastructure as code that can be stored in source control, versioned, and reviewed like application code. It uses a file with resource definitions, and with a simple loop (for i in range(25)) you can deploy 25 identical Ubuntu VMs with consistent identity settings, OS configuration, and networking in an idempotent way. Bicep modules and parameters also let you reuse the same template month after month, with changes tracked in Git history. Since Bicep deployments are deterministic and auditable, it is the correct approach for a recurring, code-driven VM deployment.

Why this answer

A Bicep template is an Infrastructure as Code (IaC) solution that declaratively defines Azure resources, including VMs with system-assigned managed identities. It ensures repeatable, version-controlled deployments of 25 identical Ubuntu VMs every month, meeting the requirements for automation and identity assignment at creation time.

Exam trap

The trap here is confusing Azure Policy (which enforces compliance) with Azure Resource Manager templates (which deploy resources), leading candidates to select Policy thinking it can create VMs, when it only audits or remediates existing ones.

Why the other options are wrong

A

Manual creation via Azure portal is not repeatable and cannot efficiently deploy 25 identical VMs every month, nor does it inherently enforce system-assigned managed identity at scale.

C

Azure Policy can enforce compliance (e.g., require managed identity) but cannot deploy 25 identical VMs from source control; it is not a deployment tool.

D

Azure Monitor alert rules trigger actions based on metrics or logs, not for provisioning resources like VMs. They cannot deploy VMs with specific configurations like managed identities.

4
MCQeasy

Based on the exhibit, which OS disk option best fits a development VM that is rebuilt often and does not need the disk contents to survive deallocation?

A.A Standard HDD managed OS disk.
B.An ephemeral OS disk.
C.A premium managed data disk used as the OS disk.
D.A shared disk attached to multiple VMs.
AnswerB

An ephemeral OS disk is the best match because it provides very fast local storage for the operating system and does not need to preserve data after deallocation. This is ideal for rebuildable development VMs where performance matters more than retaining the OS disk contents.

Why this answer

An ephemeral OS disk is created on the local VM host and not stored in Azure Storage, so it provides lower latency and is automatically deleted when the VM is deallocated. This makes it ideal for development VMs that are rebuilt often and do not require disk persistence across deallocations.

Exam trap

The trap here is that candidates may assume a Standard HDD managed disk is the cheapest option for a development VM, overlooking that ephemeral disks incur no storage cost and automatically reset the OS on each rebuild, which is more cost-effective and operationally simpler for the described use case.

Why the other options are wrong

A

A Standard HDD managed OS disk persists its contents even after VM deallocation, which contradicts the requirement that disk contents do not survive deallocation. Ephemeral OS disks are designed to be temporary and are lost on deallocation.

C

A premium managed data disk cannot be used as an OS disk in Azure; OS disks must be managed disks attached as OS disks, not data disks. Additionally, premium disks are overkill for a development VM that is rebuilt often and does not need persistence.

D

A shared disk cannot be used as an OS disk; it is only for data disks and requires cluster-aware file systems, so it cannot host the VM's operating system.

5
MCQmedium

You need to deploy a group of identical Azure virtual machines and ensure they are distributed across fault domains and update domains to reduce the impact of host failures and planned maintenance. 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 is the correct choice because it logically groups identical VMs across multiple fault domains and update domains, each with distinct underlying hardware and scheduled maintenance windows. This configuration guarantees that during an Azure datacenter outage or planned maintenance, only a subset of the VMs is affected, preserving overall service availability and meeting the requirement for host-level resiliency.

Why this answer

An availability set is the correct feature because it logically groups VMs to isolate them from each other during host failures and planned maintenance. It distributes VMs across up to 3 fault domains (each with separate power, cooling, and network) and up to 20 update domains (which are rebooted sequentially during maintenance), ensuring that not all VMs are impacted simultaneously.

Exam trap

The trap here is that candidates often confuse availability sets with availability zones, thinking zones are required for fault domain distribution, but availability sets provide fault and update domain isolation within a single Azure region without requiring multiple zones.

Why the other options are wrong

B

A proximity placement group reduces network latency between VMs but does not distribute them across fault domains or update domains for high availability.

C

A private endpoint provides secure connectivity to Azure PaaS services over a private IP address, not fault or update domain distribution for VMs.

D

A custom script extension is used to run scripts on VMs after deployment for configuration or software installation, not to manage fault domain and update domain distribution across a group of VMs.

6
MCQeasy

A line-of-business application must keep running even if one datacenter in an Azure region has an outage. Which deployment option should you choose for the VMs?

A.An availability set
B.A single virtual machine with Premium SSD
C.Availability zones
D.A proximity placement group
AnswerC

Availability zones place VMs in separate physical datacenters within the same region. That gives the workload protection from a datacenter-level failure, which is stronger than an availability set. If one zone goes down, VMs in the other zones can continue serving traffic when the application is designed for zone-aware redundancy.

Why this answer

Availability zones (Option C) are physically separate datacenters within an Azure region, each with independent power, cooling, and networking. Deploying VMs across two or more zones ensures that if one datacenter fails, the application continues running in the other zone, meeting the requirement for resilience against a single datacenter outage.

Exam trap

The trap here is that candidates often confuse availability sets (which protect against rack-level failures) with availability zones (which protect against datacenter-level failures), leading them to choose Option A when the requirement is for datacenter outage resilience.

Why the other options are wrong

A

An availability set protects against failures within a single datacenter (rack/update domain failures), not against an entire datacenter outage within a region.

B

A single virtual machine with Premium SSD does not provide redundancy; if the datacenter hosting that VM fails, the VM becomes unavailable, failing the requirement to keep running during a datacenter outage.

D

A proximity placement group reduces network latency between VMs but does not provide redundancy across datacenters; it cannot keep the application running during a datacenter outage.

7
MCQeasy

A team deploys a Linux VM that must read secrets from Azure Key Vault without storing any usernames, passwords, or client secrets on the VM. What should the administrator enable on the VM?

A.A system-assigned managed identity
B.A storage account access key
C.A service endpoint on the VM subnet
D.A user account in Entra ID with a stored password
AnswerA

A system-assigned managed identity gives the VM an Azure-managed identity that can authenticate to Azure services without embedded credentials. It is tied to the VM’s lifecycle, so there is no secret to rotate or store on the operating system. This is the simplest secure choice when one VM needs to access Key Vault and the identity should exist only while the VM exists.

Why this answer

A system-assigned managed identity enables the Linux VM to authenticate to Azure Key Vault without any stored credentials. Azure automatically creates a service principal in Entra ID for the VM, and the VM can obtain an access token from the Azure Instance Metadata Service (IMDS) endpoint (169.254.169.254) to authenticate to Key Vault. This eliminates the need to store usernames, passwords, or client secrets on the VM.

Exam trap

The trap here is that candidates often confuse service endpoints (which control network access) with managed identities (which provide identity-based access), leading them to select option C thinking it secures the VM's access to Key Vault without credentials.

Why the other options are wrong

B

A storage account access key is a shared secret that would need to be stored on the VM, violating the requirement to avoid storing any secrets on the VM. It also does not provide a secure, identity-based method for accessing Key Vault.

C

A service endpoint on the VM subnet secures Azure service access to the subnet but does not provide identity or credentials for the VM to authenticate to Key Vault. The VM still needs a way to prove its identity, which a service endpoint alone cannot do.

D

Using a user account in Entra ID with a stored password requires the VM to store credentials, violating the requirement to avoid storing usernames, passwords, or client secrets.

8
MCQmedium

A company is deploying two Linux application VMs in Azure for a production workload. The region supports availability zones, and the business requires the workload to stay online if an entire datacenter in the region becomes unavailable. Which deployment choice best meets this requirement?

A.Place both VMs in the same availability set so Azure separates them across update domains.
B.Deploy the VMs across two availability zones in the same region.
C.Use a single larger VM size with premium SSD storage for better uptime.
D.Deploy the VMs in the same resource group and enable auto-shutdown.
AnswerB

Availability zones place resources in separate datacenters within the same Azure region. That design protects the workload if a full datacenter or zone experiences an outage. For production systems that must survive a zone failure, zones provide stronger resilience than availability sets. This is the best fit when the region supports zones and the application can run with zone-separated instances.

Why this answer

Availability zones are physically separate datacenters within an Azure region, each with independent power, cooling, and networking. Deploying the two Linux VMs across two different zones ensures that if an entire datacenter fails, the VM in the other zone remains online, meeting the requirement for resilience against a full datacenter outage.

Exam trap

The trap here is that candidates confuse availability sets (which protect within a datacenter) with availability zones (which protect against full datacenter failure), leading them to choose option A even though it cannot meet the stated requirement.

Why the other options are wrong

A

An availability set protects against hardware failures within a single datacenter, not against an entire datacenter failure. The requirement is to survive a full datacenter outage, which requires availability zones.

C

Using a single larger VM does not provide redundancy; if the datacenter hosting that VM fails, the workload goes offline, failing to meet the requirement of surviving an entire datacenter outage.

D

Auto-shutdown only powers down VMs on a schedule, not during a datacenter outage, and does not provide high availability or redundancy against zone or datacenter failures.

9
Multi-Selecthard

A platform team has a generalized VM image that must be published to East US and West Europe today and patched later without overwriting the original build. They want Azure to keep version history and replicate the image to both regions. Which two actions or resources should they use? Select two.

Select 2 answers
A.Create an Azure Compute Gallery
B.Create an image definition and image version
C.Capture the VM as a single managed image and copy it manually to each region
D.Use an availability set to preserve the image
E.Take a snapshot of the OS disk and deploy VMs directly from the snapshot
AnswersA, B

Azure Compute Gallery (formerly Shared Image Gallery) is a managed service for storing, versioning, and replicating VM images across regions and subscriptions. It provides centralized lifecycle control, replication policies, and supports both specialized and generalized images. This makes it the appropriate foundation for a platform team's generalized VM image needing broad distribution.

Why this answer

Azure Compute Gallery (formerly Shared Image Gallery) allows you to store and manage VM image versions, including version history, and replicate them across multiple Azure regions. By creating an image definition and image version within the gallery, you can publish the generalized VM image to East US and West Europe today, and later create a new image version for patching without overwriting the original build, preserving the version history.

Exam trap

The trap here is that candidates often confuse a single managed image (Option C) with the Azure Compute Gallery’s image version, not realizing that a managed image lacks version history and automated multi-region replication, which are key requirements for this scenario.

Why the other options are wrong

D

An availability set is used to distribute VMs across fault domains and update domains for high availability, not for preserving or replicating VM images across regions.

E

Snapshots capture a point-in-time copy of a disk but do not support versioning, replication across regions, or shared image management. Deploying VMs directly from snapshots lacks the centralized version history and automated replication provided by Azure Compute Gallery.

10
MCQmedium

A production application runs on three Azure VMs in the same region. The business requires the service to stay available if one entire datacenter in the region becomes unavailable because of a power or network outage. Which configuration best meets the requirement?

A.Place the VMs in the same availability set.
B.Deploy the VMs across availability zones.
C.Use a proximity placement group for the VMs.
D.Attach the VMs to the same Azure Load Balancer backend pool.
AnswerB

Availability zones are physically separate datacenters within an Azure region, each with independent power, cooling, and networking. Spreading the three VMs across zones ensures that if one zone fails, the other two remain available, providing high availability for the production application. This directly mitigates the risk of a full datacenter outage, which is the core requirement here.

Why this answer

Availability Zones are physically separate datacenters within an Azure region, each with independent power, cooling, and networking. By deploying VMs across three zones, the application can survive the failure of an entire datacenter because the other zones remain operational. This meets the requirement for high availability against a full datacenter outage.

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 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 within a single datacenter, not against an entire datacenter outage. It does not provide resilience across multiple datacenters.

C

Proximity placement groups reduce network latency between VMs but do not protect against datacenter-level failures; they can even place VMs in the same datacenter, increasing risk.

D

Attaching VMs to the same Azure Load Balancer backend pool distributes traffic but does not protect against a full datacenter failure if all VMs are in the same datacenter. The requirement is for availability during a datacenter outage, which requires physical separation across zones.

11
MCQeasy

A container group runs a one-time import job in Azure Container Instances. After the job finishes successfully, it should not restart. Which restart policy should you choose?

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

Never is the correct restart policy for a one-time task that should run once and then stop. Azure Container Instances will not try to restart the container after it exits, even if it finishes successfully. That behavior matches import jobs, batch scripts, and other short-lived workloads that should complete and remain stopped.

Why this answer

The 'Never' restart policy ensures that the container group does not restart after the job completes, which is ideal for a one-time import job that should run exactly once. Azure Container Instances supports three restart policies: Always, OnFailure, and Never. For a job that must not restart after successful completion, 'Never' is the correct choice because it prevents any automatic restart regardless of the exit code.

Exam trap

The trap here is that candidates may confuse 'OnFailure' with 'Never' for a successful job, but 'OnFailure' still allows restarts on failure, which violates the 'should not restart' requirement; the question explicitly states the job finishes successfully, so the correct policy is 'Never' to guarantee no restart under any condition.

Why the other options are wrong

A

The 'Always' restart policy restarts the container regardless of exit code, which is inappropriate for a one-time import job that should not restart after successful completion.

B

The 'OnFailure' policy restarts the container only if it exits with a non-zero exit code, but the job completes successfully (exit code 0), so it would not restart. However, the question requires that the container should not restart at all after success, making 'Never' the correct choice.

D

Azure Container Instances does not support a 'Manual' restart policy. The valid policies are Always, OnFailure, and Never.

12
MCQmedium

A developer packages an internal web app as a Linux container. The app must be published with built-in HTTPS, deployment slots, and autoscale, and the team does not want to manage OS patching or container hosts. Which Azure service should the administrator choose?

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

Azure App Service is a fully managed platform-as-a-service (PaaS) that can host Linux containers through Web App for Containers, providing built-in HTTPS, custom domains, deployment slots, and automatic scaling without requiring infrastructure management. The service automatically patches the underlying OS and runtime, freeing the developer from server maintenance. This makes it the ideal choice for an internal web app that needs a managed host with robust web hosting features.

Why this answer

Azure App Service is the correct choice because it natively supports Linux containers, built-in HTTPS via TLS/SSL, deployment slots for staging and production swaps, and autoscale based on metrics or schedules. It also abstracts OS patching and container host management, meeting the team's requirement to avoid managing infrastructure.

Exam trap

The trap here is that candidates often choose Azure Kubernetes Service (D) for containerized apps, overlooking that App Service provides a simpler, fully managed solution with built-in deployment slots and autoscale, while AKS requires cluster management and lacks native slot support.

Why the other options are wrong

A

Azure Container Instances does not provide built-in HTTPS, deployment slots, or autoscale. It is a simple container runtime without the PaaS features required for the web app.

C

Azure Virtual Machines require the team to manage OS patching and container hosts, contradicting the requirement to avoid managing OS patching or container hosts.

D

Azure Kubernetes Service (AKS) requires managing the container orchestration layer and does not provide built-in HTTPS, deployment slots, or autoscale without additional configuration. It also involves managing OS patching for node pools, contradicting the requirement to avoid managing container hosts.

13
MCQmedium

After applying a custom image, a VM boots to a black screen with a blinking cursor. The OS never reaches the login prompt. The administrator needs the fastest way to inspect the boot process and view serial console output. What should be enabled or checked?

A.Azure Monitor metrics for the VM
B.Boot diagnostics
C.Network watcher packet capture
D.Azure Advisor recommendations
AnswerB

Boot diagnostics is the quickest way to review startup problems because it captures the VM screenshot and serial console output during the boot process. When the operating system is not reaching the login screen, this feature helps identify whether the failure happens before the guest OS loads successfully.

Why this answer

Boot diagnostics captures serial console output and screenshots of the VM during boot. When a VM boots to a black screen with a blinking cursor, the serial console log provides the exact kernel or bootloader messages (e.g., GRUB, initramfs errors) without requiring OS-level access. This is the fastest way to inspect the boot process because it works even when the OS is unresponsive.

Exam trap

The trap here is that candidates confuse boot diagnostics (which captures serial console output) with Azure Monitor metrics (which only track performance counters), leading them to choose a monitoring tool that cannot inspect the boot process.

Why the other options are wrong

A

Azure Monitor metrics provide performance counters (e.g., CPU, memory) but do not capture serial console output or boot logs, so they cannot help inspect the boot process or view the blinking cursor issue.

C

Network Watcher packet capture captures network traffic, not serial console output or boot process logs. It cannot help inspect the boot process or view serial console output for a VM that fails to boot.

D

Azure Advisor provides recommendations for best practices, not real-time boot diagnostics. It cannot inspect the boot process or view serial console output.

14
Multi-Selectmedium

A reporting application must run on an Azure VM with at least 8 vCPUs and 64 GiB of RAM. The team also wants headroom for short spikes without falling below the requirement. Which two VM sizes meet or exceed the requirement? Select two.

Select 2 answers
A.Standard_E8s_v5
B.Standard_D8s_v5
C.Standard_F8s_v2
D.Standard_M8ms
E.Standard_B8ms
AnswersA, D

Meets the requirement exactly with 8 vCPUs and 64 GiB of memory.

Why this answer

Standard_E8s_v5 is correct because it provides 8 vCPUs and 64 GiB of RAM, meeting the minimum requirement exactly. The E-series is memory-optimized, offering a high memory-to-core ratio suitable for reporting workloads, and the v5 generation includes Intel Xeon Platinum 8370C processors with support for premium storage and accelerated networking, ensuring headroom for short spikes without dropping below the requirement.

Exam trap

The trap here is that candidates often overlook the RAM requirement and select sizes like Standard_D8s_v5 or Standard_B8ms because they see '8 vCPUs' and assume the RAM is sufficient, but the D-series and B-series provide only 32 GiB of RAM, not the required 64 GiB.

Why the other options are wrong

B

The Standard_D8s_v5 has 8 vCPUs and 32 GiB of RAM, which does not meet the 64 GiB RAM requirement.

C

The Standard_F8s_v2 has 8 vCPUs but only 16 GiB of RAM, which is far below the required 64 GiB. It is a compute-optimized VM, not memory-optimized.

E

The Standard_B8ms is a burstable VM series designed for workloads with low average CPU usage but occasional spikes. It does not guarantee sustained performance of 8 vCPUs and 64 GiB RAM, and its baseline CPU performance is lower than required for a reporting application needing consistent resources.

15
Multi-Selecteasy

A business wants a line-of-business VM workload to keep running if one Azure datacenter in the region goes offline. Which two deployment choices should the administrator use? Select two.

Select 2 answers
A.Deploy the VMs in different availability zones.
B.Place the VMs in the same availability set.
C.Choose an Azure region that supports availability zones.
D.Use a proximity placement group for the VMs.
E.Use a snapshot of the operating system disk.
AnswersA, C

Azure availability zones are physically separate datacenters within an Azure region, each with independent power, cooling, and networking infrastructure. By deploying VM replicas across at least two different zones, you protect the workload from a single datacenter-wide failure, such as a power outage or network cut, because traffic can be shifted to the surviving zone. This is the core mechanism for zone-level resilience and is required to meet the high-availability SLA for IaaS workloads.

Why this answer

Deploying VMs across different availability zones protects against a single datacenter failure. Each availability zone is a physically separate datacenter within an Azure region, with independent power, cooling, and networking. If one zone goes offline, the VM in the other zone remains operational, ensuring business continuity for the line-of-business workload.

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 full datacenter outages), leading them to select option B instead of A and C.

Why the other options are wrong

B

Availability sets protect against rack-level failures within a single datacenter, not against an entire datacenter outage. They do not provide cross-datacenter redundancy.

D

A proximity placement group reduces network latency between VMs but does not protect against datacenter failure; it may even place VMs in the same datacenter, increasing risk.

E

Snapshots are point-in-time copies of a disk used for backup or recovery, not for real-time high availability. They do not provide automatic failover if a datacenter goes offline.

16
MCQeasy

A build pipeline needs to run a Linux container for 10 to 15 minutes at a time. The team does not want to manage servers, clusters, or an always-on VM. Which Azure service should be used?

A.Azure Container Instances
B.Azure Kubernetes Service
C.Azure Virtual Machine
D.Azure App Service
AnswerA

Azure Container Instances is well suited for short-lived, isolated container runs without cluster management. It lets the team start a container on demand, run the job, and stop paying for a continuously running server once the task is complete. For scheduled or event-driven container workloads that do not need orchestration features, it is a simple and practical choice.

Why this answer

Azure Container Instances (ACI) is the correct choice because it allows you to run a Linux container directly on Azure without provisioning or managing any underlying infrastructure. ACI is ideal for short-lived, burstable workloads like a build pipeline that runs for 10–15 minutes, as it supports per-second billing and automatic startup/shutdown without the overhead of a cluster or VM.

Exam trap

The trap here is that candidates often confuse Azure Container Instances with Azure Kubernetes Service, assuming that any container workload requires a full orchestration platform, but ACI is purpose-built for simple, short-lived container execution without cluster management.

Why the other options are wrong

B

Azure Kubernetes Service (AKS) is designed for managing containerized applications across a cluster of VMs, requiring ongoing cluster management and incurring costs even when not actively running containers. For short-lived tasks (10-15 minutes) without server management, AKS is overkill and not cost-effective.

C

Azure Virtual Machine requires managing an always-on VM, which contradicts the requirement to not manage servers or an always-on VM. It also incurs costs even when not in use, unlike the short-lived container needs.

D

Azure App Service is a fully managed platform for hosting web apps, APIs, and mobile backends, but it requires the app to be deployed as a web application, not a standalone container. It does not support running a Linux container for a short duration without an always-on app or server management.

17
MCQeasy

A line-of-business app requires protection against a datacenter outage in a region that supports zones. You want the strongest placement resilience available for the VMs. What should you choose?

A.Availability set
B.Availability zone
C.Virtual machine scale set
D.Resource lock
AnswerB

Availability zones are physically separate datacenters within an Azure region, each with independent power, cooling, and networking. Deploying the application's VMs across multiple zones, or using zone-redundant services (such as Azure Load Balancer or Azure SQL Database), isolates the workload from a single datacenter failure. This is the correct answer because an availability zone is the only option here that explicitly spans datacenter boundaries while remaining in the same region, enabling continued operation if one zone goes down.

Why this answer

Availability zones are physically separate datacenters within an Azure region, each with independent power, cooling, and networking. Deploying VMs across zones provides the strongest resilience against a datacenter outage because if one zone fails, the other zones remain operational. This is the highest level of protection available within a single region for IaaS VMs.

Exam trap

The trap here is that candidates often confuse availability sets (which protect against rack-level failures) with availability zones (which protect against full datacenter outages), leading them to choose the weaker option when the question explicitly demands the strongest placement resilience.

Why the other options are wrong

A

An availability set protects against failures within a single datacenter (rack/update domain failures), not against a full datacenter outage across zones. The question requires resilience across zones, which availability sets do not provide.

C

Virtual machine scale sets provide scaling and load balancing, not the strongest placement resilience against a datacenter outage. They distribute VMs across fault domains within a region but do not isolate across zones, so a single zone failure can affect all VMs.

D

Resource locks prevent accidental deletion or modification of resources but do not provide any placement or availability resilience against datacenter outages.

18
MCQhard

You need to run a stateless web workload on Azure virtual machines and automatically increase or decrease instance count based on demand. You also want a single management boundary for the VM instances. Which solution should you deploy?

A.A Virtual Machine Scale Set
B.An availability set with individual VMs
C.Azure Backup
D.A Recovery Services vault
AnswerA

A Virtual Machine Scale Set is the correct IaaS compute option because it is purpose-built to run a stateless web workload across many identical VM instances as a single collective resource. It provides native autoscaling based on CPU, memory, or custom metrics, integrates with Azure Load Balancer or Application Gateway for traffic distribution, and supports rolling image upgrades—making it far simpler to operate than dozens of individually managed VMs. For stateless applications, scale sets can also scale to zero, which individual VMs cannot do.

Why this answer

A Virtual Machine Scale Set (VMSS) is the correct solution because it provides an autoscaling group of identical VMs that can automatically increase or decrease instance count based on demand (e.g., CPU or memory metrics). It also offers a single management boundary, allowing you to manage, monitor, and scale all instances as a unified resource rather than individually.

Exam trap

The trap here is that candidates often confuse an availability set (which provides high availability but no scaling) with a Virtual Machine Scale Set (which provides both scaling and a single management boundary), or they mistakenly think backup/recovery services can manage compute scaling.

Why the other options are wrong

B

An availability set with individual VMs does not provide automatic scaling based on demand; it only ensures high availability by distributing VMs across fault and update domains. It lacks the built-in autoscaling and single management boundary of a scale set.

C

Azure Backup is a backup service for protecting data, not a compute scaling solution. It does not provide automatic scaling or a management boundary for VM instances.

D

A Recovery Services vault is used for backup and disaster recovery, not for scaling or managing compute instances. It does not provide automatic scaling or a management boundary for VM instances.

19
MCQmedium

A developer wants to publish an internet-facing application from source code. Required capabilities include built-in HTTPS, deployment slots, and autoscale, but the team does not want to manage the operating system. Which Azure service should the administrator choose?

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

Azure App Service is the best fit for a code-based internet-facing application that needs managed HTTPS, deployment slots, and autoscale without operating system administration. It provides a platform service for web hosting, which reduces operational work while supporting the common web app features named in the requirement.

Why this answer

Azure App Service is the correct choice because it provides a fully managed platform for hosting web applications with built-in HTTPS support, deployment slots for staging and swapping, and autoscale capabilities. It abstracts the underlying operating system, allowing the team to focus on code without managing infrastructure.

Exam trap

The trap here is that candidates often confuse Azure App Service with Azure Container Instances or Azure Kubernetes Service because they all support containers, but only App Service provides built-in deployment slots and OS abstraction without requiring container orchestration management.

Why the other options are wrong

A

Azure Container Instances lacks built-in HTTPS, deployment slots, and autoscale; it is designed for simple container workloads without these PaaS features.

B

Azure Virtual Machines require managing the operating system, which contradicts the requirement that the team does not want to manage the OS. Additionally, VMs do not natively provide built-in HTTPS, deployment slots, or autoscale without additional configuration.

D

Azure Kubernetes Service (AKS) requires managing the operating system and Kubernetes control plane, which contradicts the requirement of not managing the OS. Additionally, AKS is overkill for a simple internet-facing application from source code and does not natively provide deployment slots.

20
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.

21
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.

22
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.

23
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.

24
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.

25
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.

26
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.

27
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.

28
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.

29
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.

30
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.

31
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.

32
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.

33
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.

34
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.

35
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.

36
Matchingmedium

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

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

Concepts
Matches

az vm deallocate

az vm redeploy

az vm resize

az snapshot create

az vm disk attach

Why these pairings

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

37
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

38
Multi-Selectmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

C

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

E

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

39
Multi-Selectmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

C

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

D

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

E

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

40
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

41
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

B

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

D

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

42
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

B

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

C

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

D

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

43
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

44
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

45
MCQeasy

A build pipeline must run a Linux container for about 10 minutes per request. The team does not want to manage servers or a Kubernetes cluster. Which Azure service should the administrator choose?

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

Azure Container Instances runs containers on demand without managing servers or orchestration clusters.

Why this answer

Azure Container Instances (ACI) is the correct choice because it allows you to run a Linux container directly on Azure without managing any underlying servers or orchestrators. The 10-minute execution time fits perfectly within ACI's per-second billing model, and the service automatically starts and stops the container on demand, making it ideal for short-lived, ephemeral workloads like build pipeline tasks.

Exam trap

The trap here is that candidates often confuse Azure Container Instances with Azure Kubernetes Service, assuming that any container workload requires an orchestrator, but ACI is purpose-built for simple, serverless container execution without cluster management.

Why the other options are wrong

B

Azure Virtual Machines require managing the underlying OS and patching, which contradicts the requirement to not manage servers. They also take longer to provision and are not optimized for short-lived tasks like a 10-minute container run.

C

Azure App Service requires a web app or API to be deployed, not a standalone container that runs for 10 minutes and then stops. It is designed for continuous web hosting, not ephemeral batch jobs.

D

Azure Kubernetes Service (AKS) is a managed Kubernetes cluster, which still requires cluster management and is overkill for running a single container for 10 minutes. The team explicitly wants to avoid managing servers or a Kubernetes cluster.

46
MCQmedium

You need to restore a deleted file from a backed-up Azure virtual machine without restoring the entire VM. Which Azure Backup capability should you use?

A.Cross-region restore
B.File Recovery
C.Azure Site Recovery failover
D.Boot diagnostics
AnswerB

Azure Backup's File Recovery feature is the correct tool because it is specifically designed to restore individual files or folders from an Azure VM backup without redeploying the entire VM. You select a recovery point, and Azure mounts the backup as an iSCSI target on your machine, allowing you to copy the deleted file directly. This granular recovery is efficient for single-file restores and avoids the overhead of a full VM restoration.

Why this answer

Azure Backup's File Recovery capability allows you to mount the VM's recovery point as a drive on your local machine, enabling you to browse and restore individual files without restoring the entire VM. This is achieved by creating an iSCSI target from the recovery point snapshot, which you can connect to from a compatible OS. It is the correct choice for granular file-level recovery from a VM backup.

Exam trap

The trap here is that candidates often confuse Azure Backup's File Recovery with Azure Site Recovery's failover, mistakenly thinking failover can be used for granular file restoration, when in fact Site Recovery is for full VM replication and disaster recovery, not backup-based file recovery.

Why the other options are wrong

A

Cross-region restore is used to restore a VM or its data to a paired Azure region for disaster recovery, not for restoring individual files from a backup within the same region.

C

Azure Site Recovery failover is designed for disaster recovery by replicating entire VMs to a secondary region, not for granular file-level restoration from backup data.

D

Boot diagnostics provides screenshots and serial logs for troubleshooting VM boot failures, not file-level recovery from backups.

47
MCQeasy

A stateless web app on Azure must add or remove instances automatically when CPU usage changes. Which service should you deploy?

A.Virtual machine scale set with autoscale
B.Single virtual machine
C.Availability set
D.Managed disk
AnswerA

VM scale sets are designed for multiple identical instances and can scale automatically based on rules.

Why this answer

A virtual machine scale set (VMSS) with autoscale is the correct choice because it is designed to automatically increase or decrease the number of VM instances based on metrics like CPU usage. Autoscale rules can be configured to scale out when CPU exceeds a threshold (e.g., 75%) and scale in when it drops below a threshold, ensuring the stateless web app handles variable load without manual intervention.

Exam trap

The trap here is that candidates confuse high-availability constructs (availability sets) or storage components (managed disks) with autoscaling compute, or assume a single VM can be dynamically scaled horizontally, when only VMSS provides automated instance-level scaling based on metrics.

Why the other options are wrong

B

A single virtual machine cannot automatically scale out or in based on CPU usage; it lacks the orchestration and autoscaling capabilities needed for a stateless web app that requires dynamic instance adjustment.

C

An availability set provides high availability for VMs within a datacenter but does not include autoscaling capabilities to automatically add or remove instances based on CPU usage.

D

Managed disks are storage volumes for VMs, not a compute scaling solution. They do not provide automatic instance addition or removal based on CPU usage.

48
MCQhard

A container group must run an image from a private Azure Container Registry without embedding registry credentials in the deployment. The same authentication method should be reusable by future container groups, and the application must continue to work if the container group is recreated. Which identity approach should the administrator use?

A.A system-assigned managed identity for the container group.
B.A user-assigned managed identity assigned to the container group.
C.An ACR admin username and password stored in the container image.
D.A shared access signature token passed as an environment variable.
AnswerB

A user-assigned managed identity can be reused across container groups and survives recreation of the workload resource. After granting the identity AcrPull on the registry, the container group can authenticate without stored usernames, passwords, or registry secrets.

Why this answer

A user-assigned managed identity (B) is the correct approach because it is a persistent Azure AD identity that can be pre-created and assigned to any number of container groups. It decouples the identity from the container group's lifecycle, so if the container group is recreated, the same identity can be reassigned without reconfiguration. The container group uses this identity to authenticate to ACR via Azure AD token-based authentication, eliminating the need to embed registry credentials.

Exam trap

The trap here is that candidates often choose system-assigned managed identity (A) because it is simpler to configure, but they overlook the requirement for reusability across container group recreations, which only a user-assigned managed identity can satisfy due to its independent lifecycle.

Why the other options are wrong

C

ACR admin credentials are shared secrets that must be embedded in deployment, violating the requirement to avoid embedding credentials. They are not reusable across container groups without re-exposing the secret, and recreating the container group would require re-supplying the credentials.

D

A shared access signature (SAS) token provides time-limited access and must be regenerated if the container group is recreated, violating the requirement that the authentication method be reusable and persist across recreation.

49
MCQeasy

Based on the exhibit, what should the administrator do next so the VM can use the extra capacity on the resized data disk?

A.Resize the managed disk again in Azure.
B.Extend the partition or file system inside the VM.
C.Detach the disk and attach it to another VM.
D.Create a new virtual machine from the disk.
AnswerB

After Azure increases a managed disk, the guest operating system still needs to recognize the new space. Expanding the partition or file system inside the VM makes the newly allocated disk capacity available to applications.

Why this answer

After resizing a managed disk in Azure, the additional capacity is allocated at the Azure platform level but is not automatically available to the operating system. The administrator must extend the partition or file system inside the VM using tools like Diskpart (Windows) or fdisk/resize2fs (Linux) to make the new space usable. This is a standard post-resize step because the OS still sees the original partition boundaries.

Exam trap

The trap here is that candidates assume resizing the disk in Azure automatically makes the extra space available inside the VM, overlooking the required OS-level partition extension step.

Why the other options are wrong

A

Resizing the managed disk in Azure only increases the disk's capacity; the VM's operating system still needs to extend the partition or file system to use the new space. Simply resizing again does not address the missing step inside the VM.

C

Detaching the disk and attaching it to another VM does not make the extra capacity available on the original VM; the partition must be extended inside the OS.

D

Creating a new VM from the disk would not utilize the extra capacity on the existing resized data disk; it would create a new VM with the same disk, still requiring partition extension inside the OS.

50
Multi-Selectmedium

The operations team wants 3 to 8 identical Linux VM instances, with more instances added when average CPU stays above 70 percent for 10 minutes and removed when load falls. Which three settings should be configured? Select three.

Select 3 answers
A.Use a virtual machine scale set for the identical application instances.
B.Create an autoscale profile with a scale-out rule based on average CPU utilization.
C.Set minimum and maximum instance counts so the service cannot scale below 3 or above 8.
D.Place the VMs in an availability set instead of using a scale set.
E.Clone the VM manually whenever CPU rises and remove clones by hand later.
AnswersA, B, C

A virtual machine scale set (VMSS) is the Azure compute service purpose-built to run multiple identical VM instances from a single configuration model. It provides built-in horizontal autoscaling, health monitoring, and centralized instance management, and can distribute instances across fault domains and availability zones. For a workload that needs 3–8 identical Linux instances that automatically adjust, VMSS is the correct foundation; it eliminates the need to manage each VM separately and enables declarative scaling policies.

Why this answer

A virtual machine scale set (VMSS) is the correct Azure service for deploying and managing a group of identical, load-balanced Linux VMs that can automatically scale in and out based on demand. It supports autoscaling rules that adjust the instance count within a defined range, meeting the requirement for 3 to 8 identical instances with automatic addition when average CPU exceeds 70% for 10 minutes and removal when load falls.

Exam trap

The trap here is that candidates may confuse availability sets with scale sets, thinking both provide scaling, but availability sets only offer redundancy and fault tolerance, not automatic scaling or instance count management.

Why the other options are wrong

D

An availability set provides high availability for VMs but does not support autoscaling; it cannot automatically add or remove instances based on CPU load, which is required by the question.

E

Manual cloning and removal does not meet the requirement for automated scaling based on CPU thresholds; it lacks the autoscaling and orchestration capabilities of a scale set.

51
MCQhard

A development VM is recreated from scratch every week. The team wants the operating system disk to boot as quickly as possible and does not need the OS disk contents to survive deallocation. Which disk choice should the administrator make?

A.A Premium SSD managed OS disk
B.An ephemeral OS disk
C.A Standard SSD managed OS disk
D.The VM temporary disk as the operating system disk
AnswerB

Ephemeral OS disks leverage local VM storage rather than a remote managed disk, placing the boot drive on the same host that runs the VM. This eliminates network round-trips for I/O, delivering significantly faster boot times and lower read/write latency. Because the dev VM is recreated from scratch every week, the lack of persistence is a benefit—each new VM gets a clean, empty OS disk, and there is no stale data or orphaned storage cost after deletion.

Why this answer

An ephemeral OS disk is created on the local VM host storage, not on Azure managed storage, which eliminates network latency and provides significantly faster boot times. Since the team does not need the OS disk contents to survive deallocation and recreates the VM weekly, ephemeral disks are ideal as they are reset to the original image state on each deployment.

Exam trap

The trap here is that candidates often choose Premium SSD for 'fastest boot' without realizing that ephemeral OS disks bypass network storage entirely, offering even lower latency for boot operations, and that the temporary disk cannot be used as an OS disk despite its local nature.

Why the other options are wrong

A

Premium SSD managed disks persist data even after deallocation, which contradicts the requirement that OS disk contents do not survive deallocation. They also do not boot faster than ephemeral disks.

C

Standard SSD managed disks persist data even after deallocation, which contradicts the requirement that OS disk contents do not need to survive deallocation. Additionally, they are slower than ephemeral disks for boot performance.

D

The VM temporary disk (D: drive on Windows, /dev/sdb on Linux) is not supported as an OS disk; it is intended for temporary data and is not bootable.

52
MCQeasy

A data disk was accidentally deleted from a VM. You have a snapshot of that disk from before the deletion. What should you create first to restore the data with minimal impact to the VM's OS disk?

A.A new managed disk from the snapshot
B.A new virtual machine
C.A new availability set
D.A larger VM size
AnswerA

A snapshot is a backup point for a disk, but it must be turned into a managed disk before it can be attached to a VM. Creating a new managed disk from the snapshot restores the data in a recoverable form while leaving the VM's OS disk untouched. After the new disk is created, you can attach it as a data disk. This is the normal restore path for a deleted or lost managed data disk.

Why this answer

A is correct because creating a new managed disk from the snapshot is the direct and minimal-impact method to restore the deleted data disk. Once the new managed disk is created, you can attach it to the existing VM without affecting the OS disk or requiring a VM rebuild. This approach avoids any downtime beyond the brief attachment operation.

Exam trap

The trap here is that candidates may think they need to recreate the entire VM (Option B) to use the snapshot, not realizing that a snapshot can be converted directly into a managed disk and attached to the existing VM without any OS disk impact.

Why the other options are wrong

B

Creating a new virtual machine does not restore the deleted data disk; it creates a new VM with no data from the snapshot. The correct approach is to first create a managed disk from the snapshot, then attach it to the existing VM.

C

An availability set is a logical grouping of VMs to provide high availability, not a data recovery mechanism. It cannot restore a deleted data disk from a snapshot.

D

Resizing the VM does not restore deleted data disks; it only changes the VM's compute capacity. The question requires restoring data from a snapshot, which is unrelated to VM size.

53
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

54
Multi-Selecthard

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

C

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

D

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

E

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

55
MCQhard

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

56
Multi-Selecthard

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

B

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

C

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

E

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

57
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

58
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

59
MCQhard

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

B

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

C

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

D

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

60
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

D

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

61
Multi-Selecteasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

C

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

D

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

E

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

62
MCQmedium

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

B

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

D

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

63
MCQeasy

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

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

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

Why this answer

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

Exam trap

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

Why the other options are wrong

A

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

C

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

D

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

64
MCQhard

A container group runs a one-time import job that writes data to an external system. If the job succeeds, the container must stop and stay stopped. If the job fails, it should automatically retry by restarting. Which restart policy should the administrator choose?

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

OnFailure matches a batch-style workload that should retry after an error but remain stopped after a successful run. It allows the container group to restart when the process exits unsuccessfully while avoiding unnecessary reruns after completion.

Why this answer

The OnFailure restart policy is correct because it instructs Azure Container Instances (ACI) to restart the container only when the process exits with a non-zero exit code, indicating failure. For a one-time import job that must stop permanently on success (exit code 0) and retry on failure, OnFailure matches this exact behavior without unnecessary restarts.

Exam trap

The trap here is that candidates often confuse 'OnFailure' with 'Always' for retry scenarios, not realizing that 'Always' restarts even after success, which would break the 'stop on success' requirement.

Why the other options are wrong

A

The 'Always' policy restarts the container regardless of exit code, so even after a successful job completion, the container would restart, preventing it from staying stopped as required.

B

The 'Never' restart policy means the container will never be restarted, even if the job fails. Since the requirement is to automatically retry on failure, 'Never' does not satisfy the retry condition.

D

The 'Manual' restart policy is not a valid option for Azure Container Instances; the available policies are Always, Never, and OnFailure. Therefore, it cannot be selected for any restart behavior.

65
MCQmedium

An operations team maintains a hardened Windows Server image with application prerequisites and monitoring tools already installed. They want to deploy future VMs from the same versioned image in multiple subscriptions and promote a new build only after testing. Which Azure feature should they use?

A.A managed disk snapshot created from one of the VMs
B.An Azure Compute Gallery image version
C.A custom script extension installed during VM provisioning
D.An availability set containing the VMs
AnswerB

An Azure Compute Gallery image version is a managed, versioned artifact that packages a fully configured OS—including a hardened Windows Server baseline—into a reusable entity. It supports regional replication, controlled sharing via RBAC or community gallery, and distinct version numbers so VM deployments can be pinned to a known-good configuration. This is the proper mechanism to consistently deploy identical, hardened VMs across subscriptions or regions.

Why this answer

An Azure Compute Gallery (formerly Shared Image Gallery) allows you to store and manage multiple versions of a custom VM image, replicate them across regions, and share them across subscriptions. This enables the team to maintain a hardened, versioned image, deploy VMs from it in multiple subscriptions, and promote a new build only after testing by creating a new image version.

Exam trap

The trap here is that candidates often confuse a managed disk snapshot with a reusable image, but snapshots lack versioning, cross-subscription sharing, and the ability to promote builds after testing, which are core requirements for this scenario.

Why the other options are wrong

A

A managed disk snapshot captures a point-in-time copy of a single disk, but it does not support versioning, replication across subscriptions, or the structured testing and promotion workflow required for maintaining a hardened image pipeline.

C

A custom script extension runs scripts during VM provisioning but does not create a reusable, versioned image that can be deployed across multiple subscriptions and tested before promotion.

D

An availability set is a logical grouping of VMs to provide high availability during maintenance or failures, not a mechanism for deploying versioned images across multiple subscriptions or managing image lifecycle.

66
MCQeasy

A stateless web application needs a group of identical Azure VMs that can automatically add more instances during the workday and remove them at night based on CPU usage. What should the administrator deploy?

A.An availability set with two VMs
B.A virtual machine scale set with autoscale rules
C.A single VM with a larger disk
D.An Azure Policy assignment to increase CPU capacity
AnswerB

A virtual machine scale set with autoscale rules is the correct choice because it is designed specifically to run a group of identical VMs that can dynamically scale out and in based on demand. Autoscale rules can monitor metrics such as CPU percentage, memory, or HTTP queue depth, and automatically add or remove VM instances without manual intervention. The stateless nature of the web app means each instance is interchangeable, which perfectly matches the VMSS model where all VMs use the same configuration template.

Why this answer

A virtual machine scale set (VMSS) with autoscale rules is the correct solution because it provides a group of identical, load-balanced VMs that can automatically scale out (add instances) during high CPU usage in the workday and scale in (remove instances) at night based on CPU thresholds. This matches the stateless, elastic requirement perfectly, as VMSS is designed for horizontal scaling of identical instances with autoscale policies tied to metrics like CPU percentage.

Exam trap

The trap here is that candidates often confuse availability sets (which provide fault tolerance but no scaling) with virtual machine scale sets (which provide both scaling and high availability), or they mistakenly think Azure Policy can dynamically adjust compute resources, when it only enforces configuration rules.

Why the other options are wrong

A

An availability set provides high availability for a fixed number of VMs but does not support automatic scaling based on CPU usage or schedule.

C

A single VM with a larger disk cannot automatically scale out or in based on CPU usage; it lacks the ability to add or remove instances dynamically, which is required for handling variable workload during the day and night.

D

Azure Policy is used to enforce compliance rules (e.g., tagging, allowed locations) and cannot dynamically add or remove VM instances based on CPU usage. It does not provide autoscaling capabilities.

67
MCQeasy

A stateless web service must handle traffic spikes by adding or removing instances automatically based on CPU usage. Which Azure service fits best?

A.One larger standalone VM
B.Availability set with two VMs
C.Virtual machine scale set with autoscale
D.Recovery Services vault backup
AnswerC

Virtual Machine Scale Set with autoscale is the only option that directly satisfies the requirement of a stateless web service handling traffic spikes. It maintains a pool of identical VM instances behind a load balancer and uses autoscale rules based on metrics such as average CPU percent, memory pressure, or incoming request rate to automatically add instances during a spike and remove them when demand drops. Because the workload is stateless, instances can be created or destroyed without risk of losing session state. You can also define minimum and maximum instance limits and set cool-down periods to prevent autoscale thrashing.

Why this answer

A Virtual Machine Scale Set (VMSS) with autoscale is the correct choice because it automatically adjusts the number of VM instances based on CPU utilization metrics, enabling the stateless web service to handle traffic spikes by scaling out (adding instances) and scaling in (removing instances) as needed. This aligns with the requirement for a stateless, elastic, and automated scaling solution.

Exam trap

The trap here is that candidates often confuse high availability (provided by availability sets) with autoscaling, or assume a single large VM can handle spikes via vertical scaling, ignoring the need for horizontal, automated scaling for stateless workloads.

Why the other options are wrong

A

A single large VM cannot automatically scale out or in based on demand; it only supports vertical scaling (resizing), not horizontal scaling required for handling traffic spikes.

B

An availability set only provides high availability for two VMs but does not automatically scale instances based on CPU usage; it lacks autoscaling capabilities required for handling traffic spikes.

D

Recovery Services vault backup is a disaster recovery and backup service, not designed for handling traffic spikes or automatic scaling of compute instances. It does not add or remove VMs based on CPU usage.

68
Multi-Selecthard

A customer-facing service needs to survive a single datacenter outage in a zone-supported region. You do not need cross-region failover, but you do need Azure to spread instances without manual placement errors. Which two deployment choices satisfy that goal? Select two.

Select 2 answers
A.Place the VMs in different availability zones within the same region.
B.Use an availability set and expect it to cover a zone outage.
C.Deploy the workload in a zone-enabled virtual machine scale set.
D.Keep all instances in one zone and rely on the load balancer.
E.Use a paired region for automatic in-region zone balancing.
AnswersA, C

Availability zones are physically separate groups of datacenters within an Azure region, each with independent power, cooling, and network connectivity. Placing VMs in different availability zones ensures that if an entire datacenter (or zone) suffers an outage, the service remains available in other zones. Because all zones are in the same region, traffic stays local, which satisfies the requirement to avoid cross-region failover and keeps latency low. This is the foundational pattern for zone-level resilience when you need explicit control over VM placement.

Why this answer

Availability zones are physically separate datacenters within a region, each with independent power, cooling, and networking. Placing VMs in different zones ensures that a single datacenter outage does not affect all instances, meeting the survivability requirement without manual placement errors. Azure automatically distributes VMs across selected zones, eliminating human error in instance placement.

Exam trap

The trap here is confusing availability sets (which protect against rack failures within a single datacenter) with availability zones (which protect against full datacenter outages), leading candidates to incorrectly select Option B as a valid solution for zone-level resilience.

Why the other options are wrong

B

An availability set protects against rack-level failures within a single datacenter, not against an entire datacenter outage. Zone outages span multiple datacenters, so availability sets cannot survive a zone failure.

D

Keeping all instances in one zone does not survive a single datacenter outage because a zone outage would take down all instances. The load balancer cannot redistribute traffic if all backend instances are in the failed zone.

E

Paired regions are for cross-region disaster recovery, not for surviving a single datacenter outage within a zone-supported region. They do not provide automatic zone balancing within a region.

69
Multi-Selectmedium

A stateless web tier must survive a datacenter outage in a region that supports availability zones, and the number of instances should increase during business hours. Which three actions should the administrator take? Select three.

Select 3 answers
A.Deploy the workload as a virtual machine scale set instead of a standalone VM.
B.Enable zone distribution for the scale set in a region that supports availability zones.
C.Configure autoscale so the instance count can change according to demand.
D.Place all instances in a single availability set and scale them manually.
E.Deploy only one zonal VM and use snapshots to recover if the datacenter fails.
AnswersA, B, C

A virtual machine scale set is the Azure compute service that manages a group of identical, load-balanced VMs as a single logical resource, enabling horizontal scaling and high availability. Unlike a standalone VM, a scale set can automatically replace failed instances, distribute across availability zones, and integrate with Azure Load Balancer for continuous service. This architecture directly satisfies the requirement for a stateless web tier to survive a datacenter outage by providing redundant, automatically maintained instances.

Why this answer

A virtual machine scale set (VMSS) provides automatic scaling and high availability across multiple instances, which is essential for a stateless web tier that must survive a datacenter outage. By deploying as a scale set instead of a standalone VM, the administrator gains the ability to distribute instances across availability zones and configure autoscale rules to adjust capacity based on demand, meeting both the resilience and elasticity requirements.

Exam trap

The trap here is that candidates often confuse availability sets (which protect against rack failures) with availability zones (which protect against datacenter outages), leading them to select option D instead of the correct zone distribution in option B.

Why the other options are wrong

D

Placing all instances in a single availability set does not survive a datacenter outage because availability sets protect against rack-level failures within a single datacenter, not across datacenters. Manual scaling also fails to meet the requirement for automatic increase during business hours.

E

A single zonal VM cannot survive a datacenter outage because it is tied to one zone; snapshots do not provide automatic failover or high availability. The question requires surviving a datacenter outage, which demands redundancy across zones.

70
MCQhard

You are deploying a stateless web application on Azure virtual machines. The solution must automatically add and remove instances based on CPU demand and allow all instances to be managed as one logical group. Which Azure compute feature should you deploy?

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

A Virtual Machine Scale Set is the appropriate solution because it deploys and manages a fleet of identical VM instances that can automatically scale in or out based on CPU, memory, or custom metrics, ideal for a stateless web application. It integrates with Azure Load Balancer or Application Gateway to distribute traffic, and it supports centralized OS and app configuration, allowing uniform updates across all instances. Because the workload is stateless, instances can be freely added or removed without data-affinity concerns, making autoscaling seamless.

Why this answer

A Virtual Machine Scale Set (VMSS) is the correct Azure compute feature because it automatically manages a group of identical, load-balanced VMs that can scale in and out based on CPU demand using autoscale rules. It treats all instances as a single logical group, enabling unified management, patching, and application deployment, which is exactly what the stateless web application requires.

Exam trap

The trap here is that candidates often confuse an availability set (which provides high availability) with a scale set (which provides both high availability and automatic scaling), leading them to select availability set when the question explicitly requires automatic scaling and logical group management.

Why the other options are wrong

B

An availability set only provides high availability by distributing VMs across fault and update domains, but it does not support automatic scaling or management as a single logical group for a stateless web application.

C

A Recovery Services vault is used for backup and disaster recovery, not for scaling or managing virtual machines as a group.

D

Boot diagnostics is a feature for troubleshooting VM boot failures by capturing serial console output and screenshots, not for scaling or managing instances as a group.

71
MCQhard

An administrator has already increased the size of a managed data disk attached to a running Windows VM. Azure now shows the larger disk size, but the application still cannot use the new capacity. What should the administrator do next?

A.Detach the disk, shrink it, and reattach it to refresh the filesystem.
B.Expand the partition or volume inside the guest operating system.
C.Convert the data disk to a shared disk so Windows can auto-detect the size increase.
D.Redeploy the virtual machine to apply the new disk size.
AnswerB

After Azure grows the managed disk, the operating system still needs to recognize and consume that extra space. Expanding the partition or volume inside the guest OS is the required next step so the application can use the larger capacity.

Why this answer

When a managed data disk attached to a running Windows VM is resized in Azure, the underlying virtual hard disk (VHD) expands, but the guest operating system does not automatically recognize the new unallocated space. The administrator must use the Disk Management tool (diskmgmt.msc) or the diskpart command to extend the volume or partition into the unallocated space. This is a standard operating system task, not an Azure control-plane action.

Exam trap

The trap here is that candidates assume Azure automatically applies the size change to the guest OS, when in fact the administrator must manually extend the partition inside the operating system using disk management tools.

Why the other options are wrong

A

Shrinking the disk would reduce capacity, not help the OS recognize the increased size. The filesystem refresh is not achieved by detaching and shrinking; the OS must extend the partition to use the new space.

C

Converting a data disk to a shared disk does not cause Windows to auto-detect a size increase; shared disks are for multi-VM access, not for resizing. The guest OS still requires manual partition expansion.

D

Redeploying a VM moves it to a new host but does not resize or refresh the disk partition inside the guest OS; the OS still sees the old partition size.

72
Multi-Selecthard

A reporting server will run an analytics engine that needs 8 vCPUs and 64 GiB of RAM. Average CPU use is expected to stay moderate, but the workload is memory heavy and should not use a burstable SKU. Which two deployment choices best align with the requirement? Select two.

Select 2 answers
A.Select a memory-optimized VM family.
B.Choose a size with at least 8 vCPUs and 64 GiB of RAM.
C.Choose a burstable B-series size to lower cost.
D.Pick a compute-optimized F-series size because CPU use is only moderate.
E.Select the smallest VM size that supports managed disks.
AnswersA, B

Memory-optimized VM families, such as Ev4/Esv4 or M-series, are designed with a high memory-to-vCPU ratio so analytics workloads can cache large datasets in RAM. A reporting analytics engine performs sorts, joins, and aggregations that consume substantial memory, and these SKUs provide this capacity along with high memory bandwidth. Selecting this family directly satisfies the workload's dominant 64 GiB RAM requirement while still delivering 8 vCPUs.

Why this answer

The workload is memory heavy, and memory-optimized VM families (e.g., E-series) are designed with a higher memory-to-vCPU ratio to handle such workloads efficiently. Option B is correct because the requirement explicitly states 8 vCPUs and 64 GiB of RAM, so selecting a size that meets these exact specifications is necessary, regardless of family, as long as it is not burstable.

Exam trap

The trap here is that candidates may assume a moderate CPU workload automatically calls for a compute-optimized SKU (F-series), ignoring the memory-heavy requirement that necessitates a memory-optimized family.

Why the other options are wrong

C

The question explicitly states 'should not use a burstable SKU', so choosing a B-series size violates that requirement. B-series VMs are burstable and not suitable for sustained memory-heavy workloads.

D

The workload is memory-heavy, requiring a memory-optimized VM family. Compute-optimized F-series is designed for CPU-intensive tasks, not memory-intensive ones, and does not prioritize memory performance.

E

The requirement specifies at least 8 vCPUs and 64 GiB of RAM, and the smallest VM size supporting managed disks may not meet these minimums, especially for memory-heavy workloads.

73
MCQhard

A stateless API must run 4 to 12 identical Windows VMs, scale out automatically when average CPU stays above 70% for 10 minutes, and distribute instances to improve resiliency. Deployments are defined in Bicep. Which Azure compute service should be used?

A.A single Azure VM with an autoscale setting
B.A virtual machine scale set with autoscale enabled
C.An availability set with manual VM resizing
D.Azure Container Instances running one container per request
AnswerB

A virtual machine scale set with autoscale enabled is the correct choice because it is a native Azure service designed to manage a homogeneous pool of Windows VMs. Autoscale rules can dynamically adjust the instance count between the required minimum of 4 and maximum of 12 based on metrics such as CPU utilization or queue depth, ideal for a stateless API. The scale set distributes incoming traffic across all instances via a load balancer, ensuring identical configuration and enabling horizontal scale-out and scale-in without manual intervention.

Why this answer

A virtual machine scale set (VMSS) with autoscale enabled is the correct choice because it supports running multiple identical Windows VMs, can automatically scale out when average CPU exceeds 70% for 10 minutes, and distributes instances across fault domains and availability zones for resiliency. Bicep deployments natively define VMSS configurations, making it the ideal compute service for stateless, scalable API workloads.

Exam trap

The trap here is that candidates confuse autoscale settings (which only apply to scale sets or PaaS services) with individual VMs, or assume an availability set provides autoscaling, when in fact it only ensures fault tolerance for a static number of VMs.

Why the other options are wrong

A

A single Azure VM cannot scale out to 4-12 instances; autoscale requires a scale set to add or remove VMs, not a single VM.

C

An availability set does not provide autoscaling; it only distributes VMs across fault and update domains for high availability. Manual resizing cannot automatically scale out based on CPU thresholds.

D

Azure Container Instances (ACI) does not support autoscaling based on CPU metrics for Windows containers, nor does it provide a VM-based environment for running Windows VMs; it runs containers, not VMs.

74
MCQmedium

You deploy a Windows VM with an ARM template. During the first boot, it must install IIS, copy application files from storage, and run a bootstrap script. Which Azure feature should you add to the deployment?

A.A VM extension such as Custom Script Extension
B.An availability set
C.A managed disk snapshot
D.A public IP address
AnswerA

A VM extension such as Custom Script Extension is designed specifically to run scripted configuration tasks on an Azure VM during deployment. Defined in the ARM template under Microsoft.Compute/virtualMachines/extensions, it downloads and executes a PowerShell script on Windows—or a shell script on Linux—after the VM is provisioned. This script runs with administrative privileges and can install IIS, copy files, modify registry settings, or perform any other bootstrapping action. Because the extension is part of the deployment resource, it executes when the VM first boots, making it the correct choice.

Why this answer

The Custom Script Extension (CSE) is the correct Azure feature to use because it allows you to execute PowerShell or Bash scripts on a Windows or Linux VM during first boot. By adding the CSE to your ARM template, you can automate the installation of IIS, copy application files from Azure Storage (using the `fileUris` property), and run a bootstrap script after the OS is provisioned, ensuring the VM is fully configured without manual intervention.

Exam trap

The trap here is that candidates often confuse a VM extension (which runs scripts post-deployment) with a VM image (which bakes configuration into the OS disk), leading them to think a snapshot or availability set can achieve the same result, but neither can execute commands during first boot.

Why the other options are wrong

B

An availability set is used to ensure high availability by distributing VMs across fault and update domains, not for installing software or running scripts during deployment.

C

A managed disk snapshot captures the state of a disk at a point in time, but it cannot execute scripts or install software during VM deployment. The question requires running a bootstrap script and installing IIS, which is beyond the capability of a snapshot.

D

A public IP address enables inbound internet connectivity but does not install IIS, copy files, or run scripts during first boot. The question requires a feature that performs post-deployment configuration, which is not provided by a public IP.

75
MCQeasy

A stateless web application must automatically add VM instances during business hours and remove them at night based on CPU usage. Which Azure service should be deployed?

A.Virtual machine scale set
B.Availability set
C.Azure Bastion
D.Proximity placement group
AnswerA

A virtual machine scale set is designed for identical VM instances that can scale out and scale in based on demand. It works well for stateless applications because instances can be added or removed without needing manual reconfiguration of each server. Autoscale rules can use metrics such as CPU percentage to change capacity automatically.

Why this answer

Virtual Machine Scale Sets (VMSS) are designed to automatically scale the number of VM instances in or out based on metrics like CPU usage, and they support scheduled scaling to align with business hours. This makes them the correct choice for a stateless web application that needs to add instances during business hours and remove them at night, as VMSS can integrate with Azure Autoscale to adjust capacity based on both performance metrics and time schedules.

Exam trap

The trap here is that candidates often confuse an availability set (which provides high availability) with a scale set (which provides auto-scaling), leading them to select availability set when the question explicitly requires automatic scaling based on CPU and time schedules.

Why the other options are wrong

B

An availability set is a logical grouping of VMs to protect against failures within a datacenter, but it does not provide automatic scaling based on CPU usage or schedule.

C

Azure Bastion provides secure RDP/SSH access to VMs without public IPs, but it does not handle auto-scaling or scheduling of VM instances based on CPU usage or time.

D

Proximity placement groups reduce network latency between VMs but do not provide autoscaling or scheduled instance management based on CPU usage, which is required for the stateless web application.

Page 1 of 3 · 190 questions totalNext →

Ready to test yourself?

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