AZ-204 Practice Question: Monitor, troubleshoot, and optimize Azure solutions
An Azure web app is experiencing high memory usage. You want to collect memory dumps periodically to analyze the issue without restarting the app. Which Azure App Service diagnostic feature should you use?
⚠ Common exam trap
It's easy for candidates to confuse Application Insights Profiler (which profiles CPU/request timing) with the Snapshot Debugger (which captures memory dumps), or they assume Diagnostic Settings can collect in-process memory dumps when it only handles log streaming.
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 Snapshot Debugger
The Application Snapshot Debugger captures memory dumps (snapshots) of a production web app when an exception occurs or when configured to trigger on specific conditions, such as high memory usage, without restarting the app. It is specifically designed for debugging memory leaks and high CPU/memory issues in Azure App Service by providing detailed snapshots of the process state, including the heap, at the point of interest. While not strictly time-based periodic, if the high memory condition occurs repeatedly, the debugger can be configured to capture multiple snapshots over time for analysis.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Application Insights Profiler
Why it's wrong here
Application Insights Profiler is designed to collect detailed performance traces of code execution paths within an application. It identifies methods consuming the most CPU time, I/O, or blocking operations, helping pinpoint latency bottlenecks. However, its primary focus is on execution flow and timings, not on capturing the entire memory heap state. Therefore, while excellent for performance optimization, it does not provide the memory dump necessary to analyze specific object allocations or memory leaks causing high memory usage.
- ✗
Diagnostic Settings
Why it's wrong here
Diagnostic Settings in Azure allow users to configure the export of platform logs and metrics from Azure resources to various destinations for monitoring and auditing. This includes web server logs, application logs, and resource-level metrics like CPU and memory percentage. While these logs and metrics are vital for overall operational visibility and trend analysis, Diagnostic Settings do not offer any mechanism to initiate or collect a full memory dump of the application process, which is essential for deep-diving into memory consumption patterns.
- ✓
Application Snapshot Debugger
Why this is correct
The Application Snapshot Debugger, integrated with Application Insights, is specifically engineered to capture a full memory snapshot or dump of a running application process. It can be triggered on demand or automatically upon specific exception occurrences, allowing developers to inspect the application's state, including its entire memory heap, without requiring an application restart. This capability is crucial for analyzing high memory usage by examining object allocations, identifying memory leaks, and understanding object retention paths in detail.
- ✗
Auto-healing
Why it's wrong here
Auto-healing, a feature within Azure App Service, enables automatic recycling of an application instance based on predefined rules, such as high memory consumption, specific HTTP error codes, or slow response times. Its purpose is to mitigate immediate operational issues by restarting the problematic instance, thereby freeing up resources and restoring functionality. However, Auto-healing is a reactive recovery mechanism; it does not collect any diagnostic data, including memory dumps, before the restart, making it ineffective for root cause analysis of memory-related problems.
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.