AZ-204 Practice Question: Monitor, troubleshoot, and optimize Azure solutions
You have an App Service web app with Application Insights configured. You want to create an alert that fires when the server response time exceeds 2 seconds for a rolling 10-minute window. Which type of alert rule should you create?
⚠ Common exam trap
A common mix-up: candidates confuse log-based queries (Log Analytics) with metric-based thresholds, assuming that any Application Insights data must be queried via logs, when in fact common performance counters like server response time are exposed as metrics for simpler and faster alerting.
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
✓
Metric alert
Metric alerts in Azure Monitor evaluate resource-level performance counters at regular intervals, making them ideal for threshold-based conditions like server response time. Application Insights automatically collects server response time as a pre-aggregated metric, so a metric alert can check whether the average exceeds 2 seconds over a rolling 10-minute window without needing to query raw log data.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Log alert
Why it's wrong here
Log alerts are configured using Kusto Query Language (KQL) queries against data stored in Log Analytics workspaces. While powerful for complex analysis across multiple data sources or custom logs, they introduce additional latency and cost compared to direct metric monitoring. For a straightforward threshold breach on a single performance metric like server response time, a log alert is an inefficient and overly complex solution.
- ✓
Metric alert
Why this is correct
Metric alerts are the most appropriate and efficient mechanism for monitoring specific performance indicators, such as server response time, directly from Application Insights. They evaluate a numerical metric against a predefined static or dynamic threshold over a specified aggregation period and frequency. This direct integration with Azure Monitor metrics ensures low latency and cost-effective detection of performance degradation.
- ✗
Activity log alert
Why it's wrong here
Activity log alerts are designed to monitor events recorded in the Azure Activity Log, which primarily captures control-plane operations and administrative actions. These events include resource creation, updates, deletions, or security-related incidents at the subscription or resource group level. They are entirely unrelated to application-specific performance metrics like server response time, making them unsuitable for this monitoring requirement.
- ✗
Smart detection alert
Why it's wrong here
Smart detection alerts leverage machine learning algorithms to automatically identify unusual patterns, performance anomalies, or potential failures within your application's telemetry data. Unlike traditional alerts, they do not rely on static thresholds but rather learn normal behavior to detect deviations. While valuable for proactive problem identification, they are not designed for simple, explicit threshold monitoring of a specific metric like server response time.
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.