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

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

Your e-commerce application sends telemetry to Application Insights. You need to reduce ingestion costs while preserving the ability to detect trends in performance metrics. Which sampling type should you configure?

⚠ Common exam trap

It's easy for candidates to confuse 'adaptive sampling' with 'fixed-rate sampling' because both are head-based, but only adaptive sampling dynamically adjusts to reduce costs without losing trend visibility.

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

Adaptive sampling

Adaptive sampling is the correct choice because it automatically adjusts the volume of telemetry data collected based on the application's activity level, ensuring that performance trends are preserved while reducing ingestion costs. Unlike fixed-rate sampling, adaptive sampling dynamically increases or decreases the sampling rate to maintain a target volume, making it ideal for e-commerce applications with variable traffic patterns.

Answer analysis

Option-by-option breakdown

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

  • Fixed-rate sampling

    Why it's wrong here

    Fixed-rate sampling applies a constant, predetermined percentage to all incoming telemetry, regardless of the actual volume. This static approach can lead to significant issues, such as over-sampling during low-traffic periods, incurring unnecessary costs and storage, or critically under-sampling during peak loads, causing the loss of vital diagnostic data and obscuring important trends or anomalies. It lacks the intelligence to adapt to dynamic application workloads, making it inefficient for variable traffic patterns.

  • Adaptive sampling

    Why this is correct

    Adaptive sampling dynamically adjusts the sampling rate based on the current telemetry volume and a configured target data ingestion rate. This intelligent approach ensures that the total volume of collected telemetry remains within a manageable budget, preventing excessive costs while still capturing a statistically representative dataset. By continuously monitoring and adapting, it effectively preserves the statistical accuracy needed for trend analysis and anomaly detection across varying application loads.

  • Ingestion sampling

    Why it's wrong here

    Ingestion sampling occurs at the Application Insights service endpoint, *after* telemetry has been sent from the application's SDK. Because this server-side sampling arbitrarily drops individual telemetry items, it severely compromises the ability to correlate related events within a single transaction, such as requests, dependencies, and traces. This post-collection filtering can lead to incomplete transaction views, making root cause analysis for distributed systems extremely challenging as critical parts of an operation may be missing.

  • Head-based sampling

    Why it's wrong here

    Head-based sampling is a client-side (SDK) implementation where the decision to sample an entire trace, including all its associated telemetry items like requests, dependencies, and logs, is made at the very beginning of a transaction. While it ensures that if a request is sampled, all its related telemetry is also sampled, preserving correlation for that specific trace, it fundamentally operates on a fixed, static probability. Consequently, it shares the same limitations as general fixed-rate sampling, failing to dynamically adjust to fluctuations in telemetry volume and potentially leading to over or under-sampling.

About these practice questions

This AZ-204 question is part of Courseiva's 881-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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.