Question 597 of 1,170
Deploy and Manage Azure ComputeeasyMultiple ChoiceObjective-mapped

Creating a Custom VM Image

This AZ-104 practice question tests your understanding of deploy and manage azure compute. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A team has an approved Windows VM that already includes their application, patches, and monitoring agent. They want future VMs to start with the same configuration. What should they use?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

A managed image created from the approved VM

A managed image captures the entire VM configuration, including the OS, application, patches, and monitoring agent, allowing you to create multiple identical VMs from a single source. Unlike a snapshot, which is tied to a specific disk and requires manual steps to replicate the full VM setup, a managed image provides a reusable template for consistent deployments. This approach ensures future VMs start with the exact same configuration as the approved VM.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • A managed image created from the approved VM

    Why this is correct

    A managed image captures the configured operating system and installed software so you can deploy new VMs with the same baseline. This is the simplest way to standardize a known-good VM configuration for repeated use. It fits the requirement because the team wants future VMs to start from the same approved setup, not rebuild the software manually each time. It is an operationally common choice for consistent VM deployment.

    Related concept

    Read the scenario before looking for a memorised answer.

  • An availability set

    Why it's wrong here

    An availability set improves resilience, but it does not capture software, settings, or installed agents.

    When this WOULD be correct

    When the question asks how to ensure that two or more VMs are not placed on the same physical hardware or are updated separately to maintain application availability during maintenance.

  • A snapshot of the OS disk

    Why it's wrong here

    A snapshot is a point-in-time copy of a disk, but it is not the standard choice for reusable VM templating.

    When this WOULD be correct

    When you need to create a backup or restore a specific VM's OS disk to the same or a different VM, such as for disaster recovery or rolling back changes, a snapshot is the appropriate choice.

  • A larger virtual machine size

    Why it's wrong here

    A larger size increases CPU and memory, but it does not preserve application configuration or installed software.

    When this WOULD be correct

    A question where the requirement is to improve performance of an existing VM that is under heavy load, such as 'A VM is experiencing high CPU usage and needs more compute power. What should you do?'

Option-by-option analysis

Why each answer is right or wrong

Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The AZ-104 exam frequently reuses these exact scenarios with slightly different constraints.

A managed image created from the approved VMCorrect answer

Why this is correct

A managed image captures the configured operating system and installed software so you can deploy new VMs with the same baseline. This is the simplest way to standardize a known-good VM configuration for repeated use. It fits the requirement because the team wants future VMs to start from the same approved setup, not rebuild the software manually each time. It is an operationally common choice for consistent VM deployment.

An availability setWrong answer — click to see why

Why this is wrong here

An availability set is used to ensure high availability by distributing VMs across fault and update domains, not to capture a VM's configuration for reuse.

★ When this WOULD be the correct answer

When the question asks how to ensure that two or more VMs are not placed on the same physical hardware or are updated separately to maintain application availability during maintenance.

Why candidates choose this

Candidates may confuse availability sets with configuration templates because both involve VMs, but availability sets focus on redundancy, not image reuse.

A snapshot of the OS diskWrong answer — click to see why

Why this is wrong here

A snapshot of the OS disk captures only the disk state at a point in time, but it cannot be used directly to deploy new VMs with the same configuration; you would need to create a managed image from the snapshot first.

★ When this WOULD be the correct answer

When you need to create a backup or restore a specific VM's OS disk to the same or a different VM, such as for disaster recovery or rolling back changes, a snapshot is the appropriate choice.

Why candidates choose this

Candidates may think a snapshot is sufficient to replicate a VM's configuration because it captures the disk contents, but they overlook that snapshots lack the metadata and generalization required for creating multiple VMs.

A larger virtual machine sizeWrong answer — click to see why

Why this is wrong here

Increasing the VM size only changes the hardware resources (CPU/RAM) and does not capture or replicate the OS configuration, application, patches, or monitoring agent. It does not create a reusable template for future VMs.

★ When this WOULD be the correct answer

A question where the requirement is to improve performance of an existing VM that is under heavy load, such as 'A VM is experiencing high CPU usage and needs more compute power. What should you do?'

Why candidates choose this

Candidates may mistakenly think that a larger VM size implies a more capable or 'better' baseline configuration, confusing hardware scaling with software configuration management.

Analysis generated from the official AZ-104blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often confuse a snapshot with a managed image, not realizing that a snapshot only captures a single disk's state and lacks the VM-level configuration needed to create a fully functional VM directly.

Detailed technical explanation

How to think about this question

Managed images are stored as page blobs in Azure Storage and can be used to create VMs in the same region or replicated across regions via Azure Compute Gallery (formerly Shared Image Gallery). When you create a managed image from a generalized VM (using Sysprep for Windows), it captures the OS disk, data disks, and VM configuration, enabling rapid scaling of standardized workloads. Under the hood, the image is a snapshot of the VM's disks with metadata that allows direct VM provisioning without manual disk attachment.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

An e-commerce site experiences heavy traffic on Black Friday and near-zero traffic during off-peak weeks. Rather than provisioning permanent large VMs, the team uses auto-scaling groups that add capacity automatically under load and reduce it overnight. Questions like this test whether you understand elasticity, availability zones, and cloud compute scaling patterns.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related AZ-104 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free AZ-104 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this AZ-104 question test?

Deploy and Manage Azure Compute — This question tests Deploy and Manage Azure Compute — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: A managed image created from the approved VM — A managed image captures the entire VM configuration, including the OS, application, patches, and monitoring agent, allowing you to create multiple identical VMs from a single source. Unlike a snapshot, which is tied to a specific disk and requires manual steps to replicate the full VM setup, a managed image provides a reusable template for consistent deployments. This approach ensures future VMs start with the exact same configuration as the approved VM.

What should I do if I get this AZ-104 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more ways this is tested on AZ-104

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

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

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

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

Keep practising

More AZ-104 practice questions

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This AZ-104 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-104 exam.