A managed data disk on a VM was deleted by mistake. You have a snapshot from before the deletion and want to restore the data with minimal impact to the VM's operating system disk. What should you do?
A managed-disk snapshot is a point-in-time read-only copy of the original data disk. To recover the deleted data disk, you create a new managed disk from that snapshot (specifying the same or larger size and the appropriate storage type) and then attach it to the VM as a data disk. This restores all file contents without re-creating the VM and leaves the existing OS disk untouched, so the VM's identity, name, and attached resources remain consistent.
Why this answer
You can create a new managed disk from the snapshot and attach it as a data disk to the existing VM. This restores the data without affecting the OS disk or requiring a VM redeployment, minimizing downtime and impact.
Exam trap
The trap here is that candidates may confuse snapshots with OS disk recovery options, incorrectly assuming a data disk snapshot can be used to boot the VM, or that resizing or redeploying the VM will restore deleted disks.
Why the other options are wrong
Redeploying the VM from a marketplace image would replace the entire OS disk with a fresh image, losing all data and customizations, and does not restore the deleted data disk.
Converting a snapshot into an OS disk and booting from it would replace the VM's operating system disk, causing significant disruption and potential data loss on the OS disk, whereas the question asks to restore a data disk with minimal impact to the OS disk.
Resizing a VM does not recover deleted disks; disks are independent resources and must be recreated from snapshots or backups.
When would these options actually be correct?
If the VM's OS disk is corrupted or compromised and you need to quickly restore the VM to its original state without preserving any data or customizations, redeploying from the marketplace image is a valid option.
If the VM's OS disk itself was deleted and you have a snapshot of the OS disk, you could create a managed disk from that snapshot and attach it as the OS disk to a new VM, or use it to replace the existing OS disk (with downtime).
If a VM is experiencing performance issues due to insufficient disk throughput, resizing the VM to a larger size can increase the disk performance limits, potentially resolving the issue.
Why candidates pick the wrong answer
Candidates may think redeploying is a quick fix to restore the VM, not realizing it wipes the OS disk and does not recover the deleted data disk.
Candidates may think that since snapshots can create disks, directly using a snapshot as an OS disk is a quick fix, overlooking that the snapshot is from a data disk and that booting from it would replace the OS disk, causing major disruption.
Candidates may mistakenly think that disk resizing or VM operations can restore deleted disks, confusing disk management with VM lifecycle operations.