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 availability failures. The developer needs distributed tracing across requests and dependencies. What should be enabled?

⚠ Common exam trap

A common mix-up: candidates confuse general monitoring tools (like logs or compliance) with the specific need for distributed tracing, overlooking that only Application Insights with dependency tracking provides the correlation and dependency mapping required for diagnosing availability failures across requests and dependencies.

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 in an Azure App Service application. It automatically collects telemetry data, including end-to-end transaction details, and maps dependencies like SQL databases, HTTP calls, and Azure services, enabling developers to diagnose availability failures by correlating traces across components.

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

    Why this is correct

    Application Insights automatically collects telemetry including requests, exceptions, and traces for live applications. Its dependency tracking feature is crucial for diagnosing availability failures in an Azure App Service because it visualizes calls to external services like databases, other APIs, or storage accounts. This allows developers to pinpoint if a slowdown or failure originates within the App Service itself or from an unresponsive downstream dependency, providing a clear path to resolution and improving overall application reliability.

  • Storage account static website logs

    Why it's wrong here

    Storage account static website logs primarily record HTTP requests made directly to files hosted within a storage account configured for static website hosting. These logs provide basic access information for static content but lack the capability to capture application-level telemetry, code execution traces, or dependency calls originating from a dynamic Azure App Service. Therefore, they cannot diagnose availability issues or track dependencies within an active web application's runtime.

  • Azure Policy compliance scan

    Why it's wrong here

    Azure Policy is designed to enforce organizational standards and assess the compliance of Azure resources against defined rules and conditions, operating at the resource management plane. While it ensures resources adhere to governance requirements like tagging or allowed locations, it does not monitor application performance, trace distributed requests, or identify the root cause of availability failures within an executing App Service application. A compliance scan provides no operational insight into application runtime health.

  • Cost Management budgets only

    Why it's wrong here

    Azure Cost Management budgets are financial tools used to monitor and control cloud spending by setting thresholds and generating alerts when expenditure approaches or exceeds predefined limits. These budgets are purely for financial governance and have no inherent capability to collect application telemetry, analyze request paths, or diagnose operational issues like availability failures within an Azure App Service. They provide no insight into application performance or health metrics.

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.