Courseiva
Monitor and Maintain Azure ResourcesmediumMultiple ChoiceObjective-mapped

AZ-104 Monitor and Maintain Azure Resources Practice Question

A Virtual Machine Scale Set must add instances automatically when average CPU usage is above 75 percent and remove instances when CPU drops below 30 percent. Which feature should you configure?

⚠ Common exam trap

Candidates often confuse Azure Advisor (which gives recommendations) with the actual implementation of autoscale rules, or mistakenly think Recovery Services vault policies or boot diagnostics are involved in scaling decisions.

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

Autoscale rules in Azure Monitor

Autoscale rules in Azure Monitor allow you to define conditions for automatically scaling a Virtual Machine Scale Set (VMSS) based on metrics like average CPU usage. You can set a scale-out rule to add instances when CPU exceeds 75% and a scale-in rule to remove instances when CPU drops below 30%, with a cool-down period to prevent flapping. This is the native Azure feature designed for such metric-based auto-scaling scenarios.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Autoscale rules in Azure Monitor

    Why this is correct

    Autoscale rules in Azure Monitor are the native mechanism for automatically adding or removing VM Scale Set instances based on metric thresholds such as CPU percentage, memory pressure, or a custom application metric. A rule defines a metric source, an operator (e.g., greater than), a threshold, and a duration, and when the condition holds, the scale action increments the instance count by a specified value. These rules can also include a cool-down period to prevent flapping, and schedule-based profiles allow time-window scaling. Because the autoscale engine is part of Azure Monitor, it is the correct component to implement metric-driven auto-instance provisioning for a scale set.

  • A Recovery Services vault policy

    Why it's wrong here

    A Recovery Services vault policy governs backup and restore operations, not compute capacity. It defines retention ranges, backup frequency, and point-in-time recovery settings for Azure VMs or other protected workloads. While it might indirectly help recover a failed instance, it has no relationship to the VM Scale Set's instance count or scaling logic. Therefore, configuring a Recovery Services vault policy would never cause instances to be added automatically in response to load.

    When this WOULD be correct

    When the question asks about configuring backup schedules or retention policies for Azure VMs, such as 'You need to ensure daily backups of a VM are retained for 30 days. Which feature should you configure?'

  • Boot diagnostics

    Why it's wrong here

    Boot diagnostics captures serial console output and screenshots of a VM's startup process to assist with troubleshooting boot failures. It stores those logs in a managed storage account and can be viewed via the Azure portal or Azure CLI. Although boot diagnostics are often enabled on VM Scale Set instances for operational visibility, they are a telemetry and debugging tool only. They contain no logic to evaluate metrics, trigger scale events, or alter the number of running instances, so they cannot satisfy the requirement to add instances automatically.

    When this WOULD be correct

    A question asks: 'You need to troubleshoot why a VM in a scale set fails to start. Which feature should you enable to capture boot errors?' Boot diagnostics would be the correct answer.

  • Azure Advisor only

    Why it's wrong here

    Azure Advisor is a recommendation service that analyzes resource configurations and usage patterns to suggest best practices for cost, performance, reliability, and security. For example, it might recommend enabling autoscale on a VM Scale Set or changing instance sizes, but it does not perform any actions on your behalf unless you manually accept and implement the recommendation. Advisory recommendations, even if followed, only lead to the creation or modification of an actual autoscale rule; Advisor alone never adds or removes instances. Thus, Azure Advisor cannot directly provide automatic instance scaling without the underlying Azure Monitor autoscale configuration.

    When this WOULD be correct

    A question asks: 'Which service provides cost optimization, security, and reliability recommendations for Azure resources?' In that case, Azure Advisor would be the correct answer.

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.

Autoscale rules in Azure MonitorCorrect answer

Why this is correct

Autoscale rules in Azure Monitor are the native mechanism for automatically adding or removing VM Scale Set instances based on metric thresholds such as CPU percentage, memory pressure, or a custom application metric. A rule defines a metric source, an operator (e.g., greater than), a threshold, and a duration, and when the condition holds, the scale action increments the instance count by a specified value. These rules can also include a cool-down period to prevent flapping, and schedule-based profiles allow time-window scaling. Because the autoscale engine is part of Azure Monitor, it is the correct component to implement metric-driven auto-instance provisioning for a scale set.

A Recovery Services vault policyWrong answer — click to see why

Why this is wrong here

A Recovery Services vault policy is used for backup and disaster recovery of Azure VMs, not for scaling VM instances based on CPU metrics.

★ When this WOULD be the correct answer

When the question asks about configuring backup schedules or retention policies for Azure VMs, such as 'You need to ensure daily backups of a VM are retained for 30 days. Which feature should you configure?'

Why candidates choose this

Candidates may confuse 'policy' with scaling rules, or think Recovery Services vault can manage performance-based actions due to its role in VM protection.

Boot diagnosticsWrong answer — click to see why

Why this is wrong here

Boot diagnostics captures serial console output and screenshots for troubleshooting VM boot failures, but it does not provide autoscaling capabilities based on CPU metrics.

★ When this WOULD be the correct answer

A question asks: 'You need to troubleshoot why a VM in a scale set fails to start. Which feature should you enable to capture boot errors?' Boot diagnostics would be the correct answer.

Why candidates choose this

Candidates may confuse boot diagnostics with monitoring features, thinking it can trigger actions based on performance metrics, or they may misremember it as a tool for performance analysis.

Azure Advisor onlyWrong answer — click to see why

Why this is wrong here

Azure Advisor provides recommendations for best practices but does not implement autoscaling rules. Autoscaling requires configuring Autoscale rules in Azure Monitor, not just Advisor.

★ When this WOULD be the correct answer

A question asks: 'Which service provides cost optimization, security, and reliability recommendations for Azure resources?' In that case, Azure Advisor would be the correct answer.

Why candidates choose this

Candidates may think Azure Advisor can automatically adjust resources based on its recommendations, confusing advisory with automated scaling actions.

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

This AZ-104 question is part of Courseiva's 1,049-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. 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.