AZ-104 Deploy and Manage Azure Compute Practice Question
A data disk on VM-Data01 was corrupted after a bad patch, and you already have a snapshot taken last night. The OS disk should remain unchanged. Which two actions should you take to restore only the data disk? Select two.
⚠ Common exam trap
Test-takers frequently confuse redeploying a VM (which only moves the VM to a new host) with restoring disk data, or mistakenly think a snapshot can be directly attached to a VM without first creating a managed disk.
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
✓
Create a managed disk from the snapshot.
A snapshot is a point-in-time copy of a disk that can be used to create a new managed disk. Since you have a snapshot of the corrupted data disk from last night, creating a managed disk from that snapshot restores the data to its state at the time of the snapshot, leaving the OS disk untouched.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Create a managed disk from the snapshot.
Why this is correct
In Azure, a snapshot is a point-in-time read-only copy of a managed disk and cannot be attached directly to a VM. You must first create a new managed disk using the snapshot as its source (for example, with New-AzDisk specifying the snapshot ID or via the portal's 'Create disk from snapshot' action), selecting the required storage SKU, size, and zone. This produces a writable, independently managed disk that can then be attached for recovery.
- ✓
Attach the restored managed disk to VM-Data01.
Why this is correct
After the managed disk has been created from the snapshot, it must be attached as a data disk to VM-Data01, specifying a LUN and cache setting. If the original corrupted disk is still attached, detach it before attaching the restored disk to avoid LUN conflicts and duplicate disk identifiers. Because this operation targets only the data disk, the OS disk remains intact and the VM boots normally, preserving the system environment while restoring the affected volume.
- ✗
Redeploy the VM and expect the data disk to revert automatically.
Why it's wrong here
The 'Redeploy' action in Azure is a platform-level operation that migrates the VM to a different host node while keeping the same disks, NICs, and settings. It is designed to resolve host hardware or networking faults, not to roll back data corruption on a managed disk. The contents of the data disk are unchanged, so redeploying the VM provides no restoration of the corrupted data from a snapshot.
When this WOULD be correct
This option would be correct if the question asked how to resolve a VM connectivity issue or a host-level problem (e.g., VM stuck in a failed state) without changing disk data. In that case, redeploying the VM can fix the issue by moving it to a new host.
- ✗
Generalize the VM and redeploy it from the snapshot.
Why it's wrong here
Generalizing a VM with Sysprep (Windows) or waagent -deprovision (Linux) prepares the OS as a reusable image template and strips machine-specific identifiers, which is intended for creating new VM images, not for restoring a single data disk. It would invalidate the original VM's identity, disrupt its operation, and still require the snapshot to be converted into a managed disk before any restore could occur. This approach adds unnecessary complexity and fails to isolate the corrupted data volume.
When this WOULD be correct
This option would be correct in a scenario where you need to create a new VM from a snapshot of the OS disk (e.g., after a critical OS corruption) and you want to reuse the same VM name or deploy a standardized image. The question would specify 'OS disk snapshot' and 'create a new VM'.
- ✗
Replace the snapshot with the current data disk to roll back the VM.
Why it's wrong here
A snapshot is an immutable point-in-time copy, and the current live data disk cannot be used to overwrite or 'replace' that snapshot. The restore direction is always from snapshot to a newly created managed disk; there is no Azure operation that writes live disk blocks back into a snapshot. Attempting this would not produce a recovered disk and would violate the snapshot's purpose as a clean backup reference.
When this WOULD be correct
If the question asked to update a snapshot to reflect the current state of a data disk (e.g., after applying a patch that you want to capture for future rollbacks), then replacing the snapshot with the current disk would be correct.
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.
✓Create a managed disk from the snapshot.Correct answer▾
Why this is correct
In Azure, a snapshot is a point-in-time read-only copy of a managed disk and cannot be attached directly to a VM. You must first create a new managed disk using the snapshot as its source (for example, with New-AzDisk specifying the snapshot ID or via the portal's 'Create disk from snapshot' action), selecting the required storage SKU, size, and zone. This produces a writable, independently managed disk that can then be attached for recovery.
✗Redeploy the VM and expect the data disk to revert automatically.Wrong answer — click to see why▾
Why this is wrong here
Redeploying a VM does not revert the data disk to a previous state; it only migrates the VM to a new host while preserving the existing disks. The corrupted data disk would remain corrupted after redeployment.
★ When this WOULD be the correct answer
This option would be correct if the question asked how to resolve a VM connectivity issue or a host-level problem (e.g., VM stuck in a failed state) without changing disk data. In that case, redeploying the VM can fix the issue by moving it to a new host.
Why candidates choose this
Candidates may confuse 'redeploy' with 'restore from snapshot,' assuming redeployment automatically reverts all disks to a previous state, similar to a system restore point.
✗Generalize the VM and redeploy it from the snapshot.Wrong answer — click to see why▾
Why this is wrong here
Generalizing the VM (via Sysprep) prepares the OS for imaging, which is unnecessary and destructive for a simple data disk restore. It would reset the VM's identity and potentially break applications, while the snapshot is only for the data disk.
★ When this WOULD be the correct answer
This option would be correct in a scenario where you need to create a new VM from a snapshot of the OS disk (e.g., after a critical OS corruption) and you want to reuse the same VM name or deploy a standardized image. The question would specify 'OS disk snapshot' and 'create a new VM'.
Why candidates choose this
Candidates may confuse the process of restoring a data disk with creating a new VM from a snapshot, or they might think generalizing is a standard step for any disk recovery, not realizing it's specific to OS disk imaging.
✗Replace the snapshot with the current data disk to roll back the VM.Wrong answer — click to see why▾
Why this is wrong here
Replacing the snapshot with the current data disk would overwrite the snapshot, not restore the data disk. The goal is to restore the data disk from the snapshot, not replace the snapshot.
★ When this WOULD be the correct answer
If the question asked to update a snapshot to reflect the current state of a data disk (e.g., after applying a patch that you want to capture for future rollbacks), then replacing the snapshot with the current disk would be correct.
Why candidates choose this
Candidates may confuse the direction of restoration, thinking that 'replacing' the snapshot with the disk is a way to roll back, but it actually destroys the snapshot without restoring the disk.
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?”
Go deeper
Related to this question
About these practice questions
Courseiva writes every AZ-104 question from scratch — 1,049 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
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.