AZ-204 Practice Question: Monitor, troubleshoot, and optimize Azure solutions
You are monitoring an Azure App Service using Application Insights. You want to alert when the average server response time exceeds 2 seconds over a 5-minute window. What should you create?
⚠ Common exam trap
Watch out — candidates often confuse metric alerts (which use pre-aggregated metrics) with log alerts (which require custom KQL queries), assuming that any alert involving Application Insights must use logs, when in fact the 'Server response time' is a standard metric signal available directly in the metric alert creation flow.
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
✓
A metric alert with 'Server response time' as the signal
A metric alert is the correct choice because 'Server response time' is a pre-aggregated performance metric emitted by Azure App Service to Application Insights. Metric alerts evaluate this signal against a static threshold (e.g., >2 seconds) over a specified time window (e.g., 5 minutes) without needing custom queries, making them ideal for simple threshold-based monitoring of latency.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
An availability alert
Why it's wrong here
Availability alerts, typically configured via Application Insights' Availability tests, are designed to verify if an application endpoint is reachable and returns a successful status code. While crucial for detecting outages or service unavailability, they do not inherently measure the duration or latency of the server's response to a request. Therefore, they are unsuitable for monitoring specific performance metrics like server response time, which indicates how quickly the application processes requests.
- ✗
A log alert with a custom KQL query
Why it's wrong here
Log alerts in Azure Monitor are primarily used to analyze data stored in Log Analytics workspaces, which includes detailed logs and custom events from Application Insights. Although one could potentially extract response time from raw log entries (e.g., the 'requests' table) using a complex KQL query, this method is less efficient and direct for continuous thresholding on a standard metric. Log alerts are better suited for detecting specific patterns, errors, or anomalies within log streams rather than direct performance metric monitoring.
- ✓
A metric alert with 'Server response time' as the signal
Why this is correct
Metric alerts in Azure Monitor are specifically designed to monitor numeric values collected over time, such as performance counters or telemetry from Application Insights. 'Server response time' is a standard, pre-aggregated metric automatically collected by Application Insights, representing the time taken for the server to process a request. Configuring a metric alert with this signal allows for direct, efficient, and real-time thresholding to detect performance degradation or spikes in latency, making it the ideal choice for this scenario.
- ✗
An activity log alert
Why it's wrong here
Activity log alerts are triggered by events recorded in the Azure Activity Log, which captures control-plane operations performed on Azure resources, such as resource creation, updates, deletions, or service health notifications. These alerts are focused on administrative actions, security events, and service health status, not on application-specific performance metrics like server response time. They are entirely unrelated to the operational performance or latency of an application running within an App Service.
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.