AZ-104 Monitor and Maintain Azure Resources Practice Question
A production virtual machine is experiencing intermittent performance spikes. The operations team wants an alert when average CPU usage stays above 80 percent for 10 minutes and wants email and SMS notifications sent automatically. What should the administrator configure in Azure Monitor?
⚠ Common exam trap
Candidates often confuse metric alerts (which evaluate live performance counters) with log search alerts (which require log ingestion and are slower), or mistakenly think Azure Policy can react to performance metrics instead of enforcing configuration rules.
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 metric alert on Percentage CPU and associate an action group with email and SMS receivers.
Azure Monitor metric alerts can evaluate real-time performance counters like Percentage CPU against a threshold (e.g., 80%) over a specified duration (e.g., 10 minutes). By associating an action group with email and SMS receivers, the alert automatically triggers the desired notifications without requiring log ingestion or complex queries.
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 log search alert on the VM performance data and attach a resource lock.
Why it's wrong here
A log search alert on VM performance data would require sending diagnostics to a Log Analytics workspace, adding cost and ingestion latency compared to a platform metric alert. A resource lock is designed to protect Azure resources from accidental deletion or modification; it cannot evaluate CPU thresholds or trigger notifications. Even if the log alert fired, without an action group attached there is no channel to actually contact the team, and the resource lock is entirely irrelevant to monitoring.
When this WOULD be correct
This option would be correct if the question required alerting based on custom log data (e.g., application logs) and also needed to prevent the alert rule from being deleted or modified, where a resource lock on the alert rule would be appropriate.
- ✓
Create a metric alert on Percentage CPU and associate an action group with email and SMS receivers.
Why this is correct
Metric alerts are the best fit for near real-time threshold monitoring of Azure platform metrics such as CPU. An action group delivers the notification channels, such as email and SMS, when the alert fires. This design meets both parts of the requirement: detect sustained CPU pressure and notify the operations team automatically without needing log ingestion or manual polling.
- ✗
Assign an Azure Policy definition to the VM to stop it when CPU exceeds the threshold.
Why it's wrong here
Azure Policy performs compliance evaluation and remediation of configurations on resources, such as tagging or allowed SKUs; it does not inspect runtime performance metrics like Percentage CPU. No built-in policy defines 'stop VM if CPU exceeds threshold,' and even a custom initiative cannot react dynamically to metric spikes because policy evaluation is not an event-driven alerting engine. Stopping a VM would also require an automation runbook or a conditional deployment, not a policy assignment, and it would not send a notification.
When this WOULD be correct
An administrator needs to enforce a rule that all VMs in a subscription must have a specific tag or must be deployed in a particular region. Azure Policy would be used to audit or enforce such compliance requirements.
- ✗
Enable diagnostic settings on the VM and send the data only to a storage account.
Why it's wrong here
Diagnostic settings only stream performance counters and logs to a destination; a storage account is simply an archive sink. Without an alert rule that queries that data and without an action group, no email/SMS is ever generated, so the operations team remains unaware of CPU spikes. This approach enables post-incident analysis but fails the real-time notification requirement.
When this WOULD be correct
If the question asked for long-term archival of VM performance data for compliance or historical analysis, enabling diagnostic settings to send data to a storage account would be correct. For example: 'A company needs to store VM metrics for 3 years for auditing purposes.'
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 metric alert on Percentage CPU and associate an action group with email and SMS receivers.Correct answer▾
Why this is correct
Metric alerts are the best fit for near real-time threshold monitoring of Azure platform metrics such as CPU. An action group delivers the notification channels, such as email and SMS, when the alert fires. This design meets both parts of the requirement: detect sustained CPU pressure and notify the operations team automatically without needing log ingestion or manual polling.
✗Create a log search alert on the VM performance data and attach a resource lock.Wrong answer — click to see why▾
Why this is wrong here
A log search alert requires log data from the VM, but the question specifies using 'average CPU usage' which is a metric, not log data. Additionally, a resource lock prevents accidental deletion or modification, not alerting.
★ When this WOULD be the correct answer
This option would be correct if the question required alerting based on custom log data (e.g., application logs) and also needed to prevent the alert rule from being deleted or modified, where a resource lock on the alert rule would be appropriate.
Why candidates choose this
Candidates may confuse log search alerts with metric alerts, or think that resource locks are part of alert configuration, not understanding that locks are for governance, not notification.
✗Assign an Azure Policy definition to the VM to stop it when CPU exceeds the threshold.Wrong answer — click to see why▾
Why this is wrong here
Azure Policy is used for governance and compliance, not for real-time monitoring or alerting. It cannot trigger email or SMS notifications based on performance metrics like CPU usage.
★ When this WOULD be the correct answer
An administrator needs to enforce a rule that all VMs in a subscription must have a specific tag or must be deployed in a particular region. Azure Policy would be used to audit or enforce such compliance requirements.
Why candidates choose this
Candidates may confuse Azure Policy with Azure Monitor alerts, thinking that policies can enforce actions based on performance thresholds, but policies are for resource configuration compliance, not operational alerts.
✗Enable diagnostic settings on the VM and send the data only to a storage account.Wrong answer — click to see why▾
Why this is wrong here
Diagnostic settings send performance data to a storage account, but they do not create alerts or trigger notifications. The question requires an alert with email and SMS, which diagnostic settings alone cannot provide.
★ When this WOULD be the correct answer
If the question asked for long-term archival of VM performance data for compliance or historical analysis, enabling diagnostic settings to send data to a storage account would be correct. For example: 'A company needs to store VM metrics for 3 years for auditing purposes.'
Why candidates choose this
Candidates may think diagnostic settings are necessary for alerting because they enable data collection, but they confuse data collection with alert rule creation, overlooking that alerts require separate metric or log search rules.
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
Learn chapter
Managed Identities for Azure Resources
Key term
Action group
An Action group is a collection of notification and automation settings that defines how an Azure Monitor alert responds when triggered, such as who gets emailed, which phone numbers get called, or which automated tasks run.
Key term
Metric
A metric is a quantifiable measurement used to assess the performance, health, or status of IT systems, networks, or applications.
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.