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

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

An Azure App Service application has slow API requests. The developer needs distributed tracing across requests and dependencies. What should be enabled?

⚠ Common exam trap

Test-takers frequently confuse Azure Policy or storage logs with monitoring tools, but only Application Insights provides the distributed tracing and dependency correlation needed for diagnosing slow API requests across multiple components.

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 with dependency tracking

Application Insights with dependency tracking is the correct choice because it provides distributed tracing across requests and dependencies, enabling developers to correlate end-to-end transactions in a microservices or multi-component application. It automatically collects telemetry for HTTP calls, database queries, and other external service calls, which is essential for diagnosing slow API requests in an Azure App Service environment.

Answer analysis

Option-by-option breakdown

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

  • Azure Policy compliance scan

    Why it's wrong here

    Azure Policy's primary function is to enforce organizational standards and assess the compliance of Azure resources against defined policies, such as resource tagging or allowed locations. It operates at the resource management plane and does not collect or analyze runtime application telemetry like API request durations or dependency call traces, which are essential for diagnosing performance issues within an App Service application.

  • Application Insights with dependency tracking

    Why this is correct

    Application Insights is an Application Performance Management (APM) service specifically designed to monitor live web applications and collect detailed telemetry. Its dependency tracking feature automatically captures data on all outgoing calls made by the application to external services, including databases, other APIs, and HTTP endpoints, providing crucial insights into their duration and success. This comprehensive telemetry is vital for identifying which specific external calls are contributing to slow API requests in an Azure App Service application.

  • Storage account static website logs

    Why it's wrong here

    A storage account configured for static website hosting is designed to serve static content like HTML, CSS, and JavaScript files, and its logs record client access to these static assets. These logs do not provide any insight into the internal execution path, dynamic API calls, or backend dependencies of a live Azure App Service application. Therefore, they are entirely unsuitable for diagnosing performance bottlenecks or slow API requests within a dynamic application.

  • Cost Management budgets only

    Why it's wrong here

    Azure Cost Management budgets are financial governance tools used to set spending limits and generate alerts when actual or forecasted expenditures exceed predefined thresholds. While cost optimization might indirectly involve resource scaling, budgets themselves offer no operational telemetry, performance metrics, or diagnostic data related to application request paths or execution times. Consequently, they cannot be used to pinpoint the root cause of slow API requests in an App Service.

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.