Question 197 of 1,049
AZ-104 Deploy and Manage Azure Compute Practice Question
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.
⚠ Common exam trap
Many exam-takers 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.
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
✓
Store the application data on a separate managed data disk
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.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Store the application data on a separate managed data disk
Why this is correct
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.
- ✓
Create a snapshot of the data disk before the change
Why this is correct
Creating a snapshot before modifying the data disk gives you a crash-consistent, point-in-time restore point. Managed disk snapshots are incremental, meaning they only capture changed blocks since the last snapshot, making them quick and cost-efficient. If the change causes corruption or unintended data loss, you can create a new managed disk from the snapshot and attach it to the VM, or even restore the original disk, minimizing downtime. This proactive safety measure is a standard pre-change control in production environments.
- ✗
Use an ephemeral OS disk for the application files
Why it's wrong here
An ephemeral OS disk is stored on the VM's local temp drive (SSD or NVMe) and is not backed by Azure Storage. Its contents are lost when the VM is stopped/deallocated, redeployed, or rebooted for maintenance on some instances, and it cannot hold durable application data. Using it for application files means critical state may vanish without warning, leading to application failures or data loss. Ephemeral disks are intended only for temporary caching or workloads that tolerate recreating data from an external source.
When this WOULD be correct
When the question asks for maximizing OS disk read/write performance for temporary workloads (e.g., cache or batch processing) and persistence is not required, an ephemeral OS disk is correct.
- ✗
Keep the files only on the OS disk and rely on reimaging
Why it's wrong here
Storing application data on the OS disk couples your data lifecycle to the VM image and the OS disk's health. Reimaging replaces the entire OS disk with a fresh copy from the image, erasing any files that were added or modified—including your application data—unless you had already captured them in a custom image. Additionally, if the OS disk experiences corruption or must be deleted to resize the VM, the data goes with it. This approach eliminates the isolation that Azure's data disk architecture exists to provide.
When this WOULD be correct
This option would be correct in a scenario where the question asks for the simplest way to reset a VM to its original state without preserving any application data, and the application data is stored externally (e.g., in Azure Files or a database).
- ✗
Delete and recreate the VM from the same image
Why it's wrong here
Deleting a VM and recreating it from the same image discards the current OS disk and any attached data disks, unless you explicitly detach and preserve them beforehand. The image represents only the captured or marketplace configuration at the time it was created, so any subsequent writes, user data, or runtime state are lost forever. Merely recreating the VM does not restore the pre-change state of the data disk; it resets to the image's baseline. Without a separate backup or snapshot, this action amplifies data loss instead of protecting against it.
When this WOULD be correct
This would be correct if the question asked for a way to reset the OS to a known good state without needing to preserve any data, such as when the OS is corrupted and you want to quickly redeploy the same configuration without data persistence.
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.
✓Store the application data on a separate managed data diskCorrect answer▾
Why this is correct
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.
✗Use an ephemeral OS disk for the application filesWrong answer — click to see why▾
Why this is wrong here
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.
★ When this WOULD be the correct answer
When the question asks for maximizing OS disk read/write performance for temporary workloads (e.g., cache or batch processing) and persistence is not required, an ephemeral OS disk is correct.
Why candidates choose this
Candidates may confuse 'ephemeral' with 'separate' or think it offers fast rebuild capability, not realizing ephemeral disks lack persistence and cannot be snapshotted for rollback.
✗Keep the files only on the OS disk and rely on reimagingWrong answer — click to see why▾
Why this is wrong here
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.
★ When this WOULD be the correct answer
This option would be correct in a scenario where the question asks for the simplest way to reset a VM to its original state without preserving any application data, and the application data is stored externally (e.g., in Azure Files or a database).
Why candidates choose this
Candidates may think reimaging is a quick rollback method, but they overlook that it only resets the OS disk and does not preserve or separate application data.
✗Delete and recreate the VM from the same imageWrong answer — click to see why▾
Why this is wrong here
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.
★ When this WOULD be the correct answer
This would be correct if the question asked for a way to reset the OS to a known good state without needing to preserve any data, such as when the OS is corrupted and you want to quickly redeploy the same configuration without data persistence.
Why candidates choose this
Candidates may think that recreating the VM from the same image is a fast rollback method, but they overlook that it does not preserve the data disk, which is required for keeping application data separate and recoverable.
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?”
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 →
Last reviewed: Jun 11, 2026
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.
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.
Sign in to join the discussion.