AZ-204 Practice Question: Monitor, troubleshoot, and optimize Azure solutions
You have an Azure App Service web app that experiences intermittent slowness. You enable Application Insights and notice that the "Failed Requests" metric is low, but "Server Response Time" is high for a subset of requests. You want to identify the specific code path causing the delay. Which feature should you use?
⚠ Common exam trap
Watch out — candidates often confuse the Profiler (for performance diagnostics) with the Snapshot Debugger (for exception debugging), leading candidates to choose Snapshot Debugger when the question explicitly asks about identifying the cause of high response times, not failures.
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
✓
Profiler.
C is correct because the Application Insights Profiler captures detailed call stacks and execution timing for slow requests, allowing you to pinpoint the exact code path causing high server response time. Unlike other features, Profiler is specifically designed for performance troubleshooting by tracing request execution at the code level.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Live Metrics.
Why it's wrong here
Live Metrics Stream in Application Insights provides a real-time, minute-by-minute view of your application's health, including requests, failures, and performance counters. While useful for immediate operational monitoring and spotting sudden spikes or drops, it aggregates data and does not offer the granular, code-path tracing necessary to pinpoint specific slow methods or lines of code causing performance bottlenecks. It's a high-level operational dashboard, not a diagnostic profiler.
- ✗
Snapshot Debugger.
Why it's wrong here
The Snapshot Debugger for Azure App Services is designed to automatically collect debug snapshots from live web applications when an exception occurs. It allows developers to inspect the state of variables and call stacks at the moment of an exception without impacting the live application's performance. However, it is not intended for diagnosing general application slowness or performance degradation that doesn't manifest as an unhandled exception, as it requires a specific trigger point.
- ✓
Profiler.
Why this is correct
Application Insights Profiler continuously collects performance traces from your live Azure App Service application, even when it's under load. It automatically identifies the "hot paths" in your code that consume the most time during web requests, database calls, or other operations. By visualizing the call stack and execution times for individual requests, the Profiler helps pinpoint the exact methods responsible for application slowness, enabling targeted optimization.
- ✗
Availability tests.
Why it's wrong here
Application Insights Availability tests are external monitors that periodically send web requests to your application from various global locations to assess its uptime and responsiveness. These tests confirm if your application is accessible and performing within expected thresholds from an end-user perspective. However, they provide no insight into the internal execution flow or specific code paths that might be causing performance issues once a request successfully reaches the application.
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.