Courseiva
Deploy and Manage Azure ComputeeasyMultiple SelectObjective-mapped

AZ-104 Deploy and Manage Azure Compute Practice Question

A managed data disk was accidentally deleted from a VM. A snapshot taken the day before is still available. Which two actions should the administrator perform to recover the data? Select two.

⚠ Common exam trap

It's easy for candidates to confuse snapshots with disks, assuming a snapshot can be directly attached to a VM, when in fact Azure requires an explicit disk creation step from the snapshot before attachment.

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 new managed disk from the snapshot.

A snapshot is a point-in-time, read-only copy of a managed disk. To recover the data, you must create a new managed disk from the snapshot using the `az disk create --source` command or the Azure portal. This new disk will contain the exact data as it existed when the snapshot was taken.

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 new managed disk from the snapshot.

    Why this is correct

    A snapshot is a read-only, point-in-time copy of the original disk. To use it as a live volume, you must first create a new managed disk from the snapshot (e.g., via Azure CLI 'az disk create --source snapshot'). This new managed disk becomes fully writable and attachable to the VM, allowing the data to be restored without rebuilding the OS.

  • Attach the new managed disk to the VM.

    Why this is correct

    After creating the managed disk from the snapshot, you attach it to the VM as a data disk. The attachment can be done via the portal, PowerShell (Set-AzVMDataDisk), or CLI, and the VM will recognize it as a block device. Once attached, you must mount it inside the OS (e.g., assign a drive letter or mount point) to access the restored data.

  • Mount the snapshot directly as a data disk.

    Why it's wrong here

    Snapshots are not block devices and cannot be attached as a virtual disk to an Azure VM. Azure VM data disks must be managed or unmanaged disks represented as VHD blobs; snapshots lack this disk structure. Only by creating a new managed disk from the snapshot do you get an attachable block device, so attempting to mount a snapshot directly fails with an invalid parameter error.

    When this WOULD be correct

    If the question asked for a method to create a new VM from a snapshot, mounting the snapshot directly would be incorrect; however, in a scenario where you need to recover a single file from a snapshot without creating a disk, you could use the snapshot to create a disk and then mount it, but the snapshot itself cannot be mounted.

  • Redeploy the VM and reinstall the operating system.

    Why it's wrong here

    Redeploying the VM simply moves it to a different underlying host and does not change the OS disk, while reinstalling the OS would completely replace the boot volume. Neither action recovers the deleted data disk because the snapshot is independent of OS state. This approach is unnecessarily destructive and does not address the missing data volume.

    When this WOULD be correct

    This option would be correct in a scenario where a VM is unresponsive due to a host failure or underlying hardware issue, and the question asks for the action to restore connectivity without affecting data disks.

  • Delete the snapshot after verifying it exists.

    Why it's wrong here

    Deleting the snapshot after merely confirming it exists removes the sole recovery point for the accidentally deleted data disk. A deleted disk cannot be recovered from Azure; the snapshot is the only backup of the data. Destroying it before creating and attaching a new managed disk guarantees permanent data loss and is thus a destructive action that should be taken only after a successful restore.

    When this WOULD be correct

    In a scenario where the question asks for cleanup steps after successfully restoring a VM from a snapshot, and the snapshot is no longer needed for backup or compliance, deleting it would be correct to reduce storage costs.

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 new managed disk from the snapshot.Correct answer

Why this is correct

A snapshot is a read-only, point-in-time copy of the original disk. To use it as a live volume, you must first create a new managed disk from the snapshot (e.g., via Azure CLI 'az disk create --source snapshot'). This new managed disk becomes fully writable and attachable to the VM, allowing the data to be restored without rebuilding the OS.

Mount the snapshot directly as a data disk.Wrong answer — click to see why

Why this is wrong here

Snapshots are not directly mountable as disks; they must first be used to create a managed disk before attaching to a VM.

★ When this WOULD be the correct answer

If the question asked for a method to create a new VM from a snapshot, mounting the snapshot directly would be incorrect; however, in a scenario where you need to recover a single file from a snapshot without creating a disk, you could use the snapshot to create a disk and then mount it, but the snapshot itself cannot be mounted.

Why candidates choose this

Candidates may confuse snapshots with disk images or think that snapshots can be attached directly like a disk, overlooking the required intermediate step of disk creation.

Redeploy the VM and reinstall the operating system.Wrong answer — click to see why

Why this is wrong here

Redeploying the VM and reinstalling the OS does not recover the deleted data disk; it only resets the VM's state and loses all data on the OS disk, leaving the deleted managed disk unrecovered.

★ When this WOULD be the correct answer

This option would be correct in a scenario where a VM is unresponsive due to a host failure or underlying hardware issue, and the question asks for the action to restore connectivity without affecting data disks.

Why candidates choose this

Candidates may confuse redeployment as a recovery method for disk data, mistakenly thinking it restores the VM to a previous state including attached disks.

Delete the snapshot after verifying it exists.Wrong answer — click to see why

Why this is wrong here

Deleting the snapshot after verifying it exists would destroy the only recovery point, making data restoration impossible. The snapshot must be retained until the disk is successfully recreated and data is verified.

★ When this WOULD be the correct answer

In a scenario where the question asks for cleanup steps after successfully restoring a VM from a snapshot, and the snapshot is no longer needed for backup or compliance, deleting it would be correct to reduce storage costs.

Why candidates choose this

Candidates may think that verifying the snapshot's existence is a necessary step before deletion, and they might confuse this with proper snapshot lifecycle management, not realizing that the snapshot is still needed for recovery.

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

One of 1,049 original AZ-104 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.