Courseiva

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

You are monitoring an Azure App Service using Application Insights. You notice that HTTP 500 errors are increasing, but the standard server response time metric remains normal. You suspect that the errors are occurring in an external API call made by the application. How can you identify the dependency that is failing?

⚠ Common exam trap

Many candidates confuse dependency tracking with custom event telemetry or think that snapshot debugging or profiling can identify external API failures, but only dependency tracking provides automatic, aggregated metrics for outbound calls.

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

Configure Application Insights dependency tracking and view the Dependency Metrics blade.

Application Insights dependency tracking automatically monitors HTTP calls, SQL queries, and other external dependencies made by your application. By viewing the Dependency Metrics blade, you can see failure rates, durations, and dependency names, allowing you to identify which external API call is failing without modifying code.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Enable snapshot debugging for the application.

    Why it's wrong here

    Enabling snapshot debugging is primarily designed for post-mortem analysis of specific exceptions in a production environment, capturing the application's state, variables, and call stack at the moment an exception occurs. It provides detailed insights into individual failures but does not offer an aggregated view of dependency-level failure rates across all requests. This feature is for deep forensic analysis of a single problematic event, not for broad monitoring of external service health.

  • Use Application Insights Profiler to capture code-level traces.

    Why it's wrong here

    Application Insights Profiler is a diagnostic tool focused on identifying performance bottlenecks within the application's code by capturing detailed execution traces. While it can show that a particular external call contributed to a slow transaction, its main purpose is to pinpoint where CPU time is spent within your application's methods. It does not provide aggregated metrics or dedicated views for the success rates or failure counts of external dependencies themselves, making it unsuitable for monitoring overall dependency health.

  • Configure Application Insights dependency tracking and view the Dependency Metrics blade.

    Why this is correct

    Configuring Application Insights dependency tracking automatically instruments and records calls made by your application to external services, such as databases, HTTP endpoints, and message queues. The Dependency Metrics blade then aggregates this telemetry, providing a comprehensive view of success rates, average durations, and counts of failed requests for each unique dependency. This built-in functionality offers the most efficient and accurate way to identify and monitor external service failures.

  • Set up a custom event telemetry for each external call.

    Why it's wrong here

    Setting up custom event telemetry for each external call would require extensive manual instrumentation throughout the application's codebase, capturing success or failure status for every interaction. While technically possible, this approach is highly inefficient and prone to errors compared to Application Insights' automatic dependency tracking. Furthermore, aggregating and visualizing these custom events to derive meaningful failure rates would necessitate complex Log Analytics queries or custom dashboards, duplicating functionality already provided out-of-the-box.

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 →

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.