Courseiva

AZ-204 Practice Question: Monitor, troubleshoot, and optimize Azure solutions

You need to diagnose why an Azure App Service web app returns HTTP 503 errors during peak traffic. Which Application Insights feature should you use?

⚠ Common exam trap

Watch out — candidates often choose Log Analytics queries (B) because they associate 'failed requests' with error diagnosis, but they overlook that Live Metrics provides the only real-time view necessary to diagnose transient 503 errors during active peak traffic.

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

Live Metrics

Live Metrics (D) is the correct choice because it provides real-time monitoring of server-side performance metrics, including HTTP 503 errors, as they occur during peak traffic. This allows you to immediately correlate the errors with spikes in CPU, memory, or request rates, enabling rapid diagnosis of resource exhaustion or throttling issues in the App Service plan.

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 primarily monitor the external reachability and performance of an endpoint from various global locations. While they can alert you if an endpoint is failing, they do not provide real-time internal diagnostics or detailed error telemetry from within the application itself, which is crucial for understanding the root cause of errors as they occur. They confirm if a problem exists externally, not what the problem is internally in real-time.

  • Log Analytics query for failed requests

    Why it's wrong here

    Log Analytics queries operate on data ingested into Azure Monitor Logs, which typically involves a slight ingestion delay, making it unsuitable for immediate, real-time diagnosis of actively occurring issues. While powerful for historical analysis, trend identification, and post-mortem investigations of failed requests, it does not offer the instantaneous, live streaming metrics required to observe and troubleshoot errors as they happen within the application's current operational state.

  • Application Map

    Why it's wrong here

    Application Map visualizes the components of your distributed application and their dependencies, showing average performance and error rates over a period. Its primary function is to identify performance bottlenecks or failures within specific service interactions across the application architecture. However, it provides an aggregated view and is not designed for real-time, instantaneous streaming of individual error events or live performance metrics necessary for immediate troubleshooting of current issues.

  • Live Metrics

    Why this is correct

    Live Metrics Stream, part of Application Insights, provides a real-time, near-instantaneous view of your application's performance and health directly from the running application instance. It streams key metrics like requests, failures, CPU usage, memory, and custom events with minimal latency. This capability is essential for diagnosing why a web app is returning errors right now, allowing developers to observe active issues, trace individual requests, and identify performance anomalies as they occur.

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 →

How Courseiva writes practice questions · Editorial policy

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.