Courseiva
Monitor, troubleshoot, and optimize Azure solutionsmediumMultiple ChoiceObjective-mapped

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

You are monitoring an Azure Web App using Application Insights. You need to track the duration and status code of an external API call made by the app. Which Application Insights feature should you use?

⚠ Common exam trap

Watch out — candidates often confuse 'request telemetry' (incoming calls to the app) with 'dependency telemetry' (outgoing calls from the app), leading them to incorrectly select built-in request telemetry for monitoring external API 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

Dependency tracking feature

Dependency tracking in Application Insights is specifically designed to monitor calls made by your application to external services, such as APIs, databases, or HTTP endpoints. It automatically captures the duration, success/failure status, and response code of outbound HTTP requests, making it the correct choice for tracking an external API call's duration and status 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.

  • Built-in request telemetry (server-side requests)

    Why it's wrong here

    Built-in request telemetry specifically measures the performance and availability of incoming HTTP requests handled by your Azure Web App. It tracks metrics like request duration, response codes, and success rates from the perspective of a client calling your application. This telemetry type focuses on the server's ability to process client requests and does not automatically capture or detail any outbound calls your web app makes to external services or APIs.

  • Dependency tracking feature

    Why this is correct

    Dependency tracking is designed to automatically monitor and collect telemetry for outbound calls made by your application to external services, databases, or other APIs. It captures critical details such as the target dependency's name, call duration, success/failure status, and associated exception messages, providing crucial insights into external service performance. This feature is essential for understanding how your application interacts with and is affected by its external dependencies, enabling effective distributed tracing and troubleshooting.

  • Custom events (TrackEvent)

    Why it's wrong here

    The TrackEvent method in Application Insights is primarily used for manually logging specific business-related occurrences or user interactions within your application. While highly flexible for custom analytics, it requires explicit code implementation for each event and does not automatically capture the detailed performance metrics of external API calls, such as their duration or HTTP status codes. Relying on custom events for dependency tracking would necessitate extensive manual instrumentation to replicate the rich data automatically provided by dedicated dependency telemetry.

  • Page view tracking

    Why it's wrong here

    Page view tracking is a client-side telemetry type specifically designed to monitor the performance and usage of web pages as they are loaded and rendered in a user's browser. It captures metrics like page load times, user session data, and browser-specific information, providing insights into the front-end user experience. This feature is entirely unrelated to server-side operations or the tracking of outbound API calls made by your web app's backend.

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.