AZ-204 Practice Question: Monitor, troubleshoot, and optimize Azure solutions
You are monitoring an Azure web application with Application Insights. You notice a sudden increase in the number of failed requests. You want to be notified automatically when such anomalies occur, without manually setting static thresholds. Which Application Insights feature should you use?
⚠ Common exam trap
Watch out — candidates often confuse metric alerts with static thresholds as the only way to get notified, overlooking the machine learning-based Smart Detection feature that is purpose-built for anomaly detection without manual thresholds.
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
✓
Enable Smart Detection for failure anomalies.
Smart Detection for failure anomalies in Application Insights uses machine learning to automatically detect unusual patterns in failed request rates without requiring manual threshold configuration. This feature is specifically designed to notify you of anomalies based on historical behavior, making it the correct choice for the scenario described.
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 metric alert on the 'failed requests' metric with a static threshold.
Why it's wrong here
A static threshold alert on the 'failed requests' metric is insufficient for robust anomaly detection because it requires a predefined, fixed value. This approach struggles to adapt to normal fluctuations in application load or expected error rates, leading to either excessive false positives during peak times or or missed critical issues during low traffic. It lacks the intelligence to dynamically learn the application's baseline behavior, making it less effective for identifying true anomalies.
- ✓
Enable Smart Detection for failure anomalies.
Why this is correct
Enabling Smart Detection for failure anomalies is the most effective solution as it leverages machine learning to automatically analyze application telemetry and establish dynamic baselines for normal behavior. It proactively identifies sudden, statistically significant deviations from these baselines, such as an unexpected spike in failed requests, without requiring manual configuration of thresholds. This intelligent analysis provides timely and relevant alerts, minimizing alert fatigue and focusing on true operational issues.
- ✗
Use Log Analytics to run a query every 5 minutes and trigger an action.
Why it's wrong here
While Log Analytics can be used to create log alerts, this method necessitates writing specific Kusto Query Language (KQL) queries and manually defining static thresholds to detect anomalies. This approach demands continuous tuning and maintenance as application behavior evolves, making it less efficient for dynamic anomaly detection compared to automated solutions. It shifts the burden of defining 'anomalous' behavior to the operator rather than leveraging AI-driven insights.
- ✗
Create an availability test that periodically pings the application.
Why it's wrong here
Creating an availability test primarily focuses on monitoring the external reachability, uptime, and basic response time of a web application's endpoint from various geographic locations. These tests simulate user traffic but do not analyze the internal telemetry, such as detailed failed request patterns or exceptions, generated by real user interactions within the application itself. Therefore, an availability test would not effectively detect subtle or sudden anomalies in the application's internal failure rates.
Go deeper
Related to this question
About these practice questions
One of 881 original AZ-204 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 →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AZ-204 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-204 exam.