An operations team maintains a hardened Windows base image that includes patch baseline settings and monitoring agents. They need to publish new versions, replicate the image to another region, and deploy future VMs from the same controlled image source. What should they use?
A Compute Gallery image version is the correct mechanism because it stores a fully generalized VM image as a managed, versioned resource. This lets you maintain multiple versions (e.g., quarterly patch baselines), replicate them to other Azure regions for faster or resilient deployment, and use any version as the source for thousands of identical VMs. It provides controlled rollback and a standardized, repeatable image distribution pipeline.
Why this answer
An Azure Compute Gallery (formerly Shared Image Gallery) is the correct service for managing, versioning, replicating, and deploying custom Windows images across regions. It supports multiple image versions, regional replication, and allows you to deploy VMs from a controlled, hardened base image. Snapshots alone lack versioning and cross-region replication capabilities.
Exam trap
The trap here is that candidates often confuse a simple snapshot or managed disk copy with the versioning, replication, and lifecycle management capabilities that only an Azure Compute Gallery provides.
Why the other options are wrong
A snapshot of the generalized OS disk does not support replication to another region or centralized version management for publishing new image versions. Azure Compute Gallery is required for multi-region replication and controlled image versioning.
A VM extension is used to configure software or agents on an existing VM, not to publish, replicate, or deploy new VM images from a controlled source.
An availability set is used to distribute VMs across fault and update domains for high availability, not for managing, versioning, or replicating custom images across regions.
When would these options actually be correct?
A snapshot would be correct if the question asked for a one-time backup of a generalized VM disk to be used for creating a single VM in the same region, without need for versioning, replication, or sharing across teams.
When the question asks how to install monitoring agents or apply patch configurations to existing VMs without modifying the base image, a VM extension would be the correct answer.
When the question asks for a way to ensure high availability of a multi-VM application by distributing VMs across isolated hardware within a single region, an availability set would be the correct answer.
Why candidates pick the wrong answer
Candidates may think a snapshot is sufficient because it captures the disk state, but they overlook the need for replication and version management, which are not features of snapshots.
Candidates may confuse VM extensions with the ability to manage image configurations, thinking extensions can be used to enforce settings on new VMs from a base image.
Candidates may confuse availability sets with replication or distribution capabilities, thinking that 'availability' implies making the image available in multiple regions.