Question 186 of 1,170
Monitor and Maintain Azure ResourcesmediumMultiple ChoiceObjective-mapped

AZ-104 Monitor and Maintain Azure Resources Practice Question

This AZ-104 practice question tests your understanding of monitor and maintain azure resources. 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.

Exhibit

Recovery Services vault > Backup item: vm-web02
Available recovery points: 5
Current VM status: Running
Issue reported: OS disk corruption after patching
Requirement: repair the VM without rebuilding networking or re-registering the VM

Based on the exhibit, the OS disk on a production VM is corrupted, but the VM must stay in place and keep its NIC and data disks. Which restore option should you choose?

Exhibit

Recovery Services vault > Backup item: vm-web02
Available recovery points: 5
Current VM status: Running
Issue reported: OS disk corruption after patching
Requirement: repair the VM without rebuilding networking or re-registering the VM

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

Restore the disk, then attach or swap it as needed to repair the existing VM.

Option B is correct because when an OS disk is corrupted, you can restore just the disk from a recovery point and then either attach it as a data disk to the existing VM or swap the OS disk. This approach preserves the VM's NIC, data disks, and IP configuration, meeting the requirement to keep the VM in place.

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.

  • Restore the VM as a new virtual machine and delete the existing one immediately.

    Why it's wrong here

    A full VM restore can create a replacement VM, but the requirement says to keep the current VM in place and avoid rebuilding networking. That makes this option unnecessarily disruptive.

    When this WOULD be correct

    This option would be correct if the question required replacing the VM entirely (e.g., due to severe corruption) and the new VM could be configured with the same NIC and data disks, or if the original VM's resources were to be released immediately after restoration.

  • Restore the disk, then attach or swap it as needed to repair the existing VM.

    Why this is correct

    When the VM still exists but one disk is corrupted, restoring the disk is the correct approach. It lets you recover the damaged OS disk from a backup point and then attach or swap it without rebuilding the VM identity, NIC, or data disk layout. This is a common recovery pattern for targeted repair.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Use Azure Monitor to roll back the last deployment automatically.

    Why it's wrong here

    Azure Monitor observes and alerts on issues; it does not restore disks or roll back VM configurations. Recovery must come from Azure Backup.

    When this WOULD be correct

    If a VM deployment fails due to a configuration error and you need to revert to the last successful deployment state, you could use Azure Monitor to trigger a rollback via Azure Automation or a runbook, but this is not a standard restore operation.

  • Enable a diagnostic setting on the VM so the OS disk will be repaired.

    Why it's wrong here

    Diagnostic settings collect logs and metrics, but they do not repair corrupted disks or provide disk recovery capabilities.

    When this WOULD be correct

    This option would be correct if the question asked: 'You need to collect boot diagnostics logs to troubleshoot why a VM is not starting. Which action should you take?'

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.

Restore the disk, then attach or swap it as needed to repair the existing VM.Correct answer

Why this is correct

When the VM still exists but one disk is corrupted, restoring the disk is the correct approach. It lets you recover the damaged OS disk from a backup point and then attach or swap it without rebuilding the VM identity, NIC, or data disk layout. This is a common recovery pattern for targeted repair.

Restore the VM as a new virtual machine and delete the existing one immediately.Wrong answer — click to see why

Why this is wrong here

Restoring the VM as a new virtual machine and deleting the existing one would change the VM's identity, NIC, and data disk attachments, violating the requirement to keep the VM in place with its NIC and data disks.

★ When this WOULD be the correct answer

This option would be correct if the question required replacing the VM entirely (e.g., due to severe corruption) and the new VM could be configured with the same NIC and data disks, or if the original VM's resources were to be released immediately after restoration.

Why candidates choose this

Candidates may think that creating a new VM from a restore point is the only way to recover, overlooking the ability to restore just the disk and swap it into the existing VM.

Use Azure Monitor to roll back the last deployment automatically.Wrong answer — click to see why

Why this is wrong here

Azure Monitor is a monitoring and diagnostics service, not a backup or restore tool. It cannot roll back deployments or repair corrupted OS disks.

★ When this WOULD be the correct answer

If a VM deployment fails due to a configuration error and you need to revert to the last successful deployment state, you could use Azure Monitor to trigger a rollback via Azure Automation or a runbook, but this is not a standard restore operation.

Why candidates choose this

Candidates may confuse Azure Monitor's diagnostic and alerting capabilities with recovery features, or think it can automatically fix issues like a corrupted disk.

Enable a diagnostic setting on the VM so the OS disk will be repaired.Wrong answer — click to see why

Why this is wrong here

Enabling a diagnostic setting on the VM does not repair a corrupted OS disk; it only collects logs and metrics. It cannot restore or fix disk corruption.

★ When this WOULD be the correct answer

This option would be correct if the question asked: 'You need to collect boot diagnostics logs to troubleshoot why a VM is not starting. Which action should you take?'

Why candidates choose this

Candidates may confuse diagnostic settings with repair capabilities, thinking that enabling diagnostics can automatically fix disk issues.

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 Azure Monitor with Azure Backup or Site Recovery, assuming monitoring can perform recovery actions, when in fact only backup-based disk restoration can repair a corrupted OS disk while keeping the VM in place.

Detailed technical explanation

How to think about this question

Azure VM disk restoration uses the 'Restore disks' option in Azure Backup, which creates a managed disk from a recovery point. You can then use the 'Swap OS disk' feature in the Azure portal to replace the corrupted OS disk with the restored disk without deleting the VM, preserving the VM's resource ID, NIC, and data disks. This process leverages Azure Resource Manager's ability to update the VM's storage profile while the VM remains in a stopped state.

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?

Monitor and Maintain Azure Resources — This question tests Monitor and Maintain Azure Resources — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Restore the disk, then attach or swap it as needed to repair the existing VM. — Option B is correct because when an OS disk is corrupted, you can restore just the disk from a recovery point and then either attach it as a data disk to the existing VM or swap the OS disk. This approach preserves the VM's NIC, data disks, and IP configuration, meeting the requirement to keep the VM in place.

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

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.