AZ-204 Practice Question: Monitor, troubleshoot, and optimize Azure solutions
You are developing a web app that experiences intermittent slow responses. You enable Application Insights and notice that the server-side request duration is normally under 200ms, but some requests take over 5 seconds. Which diagnostic tool should you use to identify the root cause?
⚠ Common exam trap
Watch out — candidates often confuse the Profiler (for performance bottlenecks) with the Snapshot Debugger (for exception debugging), because both involve code-level diagnostics, but they serve different triggers—duration vs. exception.
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
✓
Application Insights Profiler
The Application Insights Profiler is the correct tool because it provides a flame chart of per-request CPU and wall-clock time, allowing you to identify which code path is causing the 5-second latency. Unlike other tools, the Profiler captures detailed execution traces for slow requests, pinpointing the exact method or dependency that is blocking the thread.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Availability Tests
Why it's wrong here
Availability Tests are external synthetic monitors that periodically send requests to your application's endpoint from various global locations to check its uptime and basic responsiveness. While they can alert if an application is down or consistently slow, they do not provide granular, code-level insights into *why* an intermittent performance issue is occurring within the application's internal execution path. Their focus is on external availability, not internal code bottlenecks.
- ✓
Application Insights Profiler
Why this is correct
Application Insights Profiler is the correct tool because it automatically collects detailed performance traces from your live application, even during intermittent slowdowns. It captures call stacks and execution times for requests, identifying the specific code paths, methods, and dependencies (like database calls or external HTTP requests) that consume the most time or block execution. This allows developers to pinpoint the exact source of intermittent performance bottlenecks at a code level.
- ✗
Snapshot Debugger
Why it's wrong here
The Snapshot Debugger in Application Insights is primarily designed for diagnosing exceptions in production environments without impacting live traffic. When an unhandled exception occurs, it captures a snapshot of the application's state, including variables and the call stack, enabling post-mortem debugging. It is not intended for proactively identifying or analyzing general intermittent performance issues that do not result in exceptions or crashes.
- ✗
Live Metrics Stream
Why it's wrong here
Live Metrics Stream provides a real-time, high-level view of your application's health and performance, displaying aggregated metrics such as request rates, response times, failures, and server CPU usage. While useful for immediate operational awareness and detecting ongoing issues, it does not offer the deep, code-level call stack analysis required to diagnose intermittent performance problems within specific methods or dependencies. It shows *what* is happening, not *why* at a granular code level.
Go deeper
Related to this question
About these practice questions
Courseiva writes every AZ-204 question from scratch — 881 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-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.