AZ-204 Practice Question: Monitor, troubleshoot, and optimize Azure solutions
An e-commerce application emits a high volume of telemetry data to Azure Application Insights. You need to reduce the cost of data ingestion while preserving statistical accuracy for performance metrics. Which sampling technique should you use?
⚠ Common exam trap
It's easy for candidates to confuse adaptive sampling with fixed-rate sampling, assuming a constant low rate (like 1%) is always cheaper, but they miss that adaptive sampling preserves accuracy by retaining all data during low-volume periods and only reduces during spikes.
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 sampling rate based on the volume of telemetry data, ensuring that during low-traffic periods all data is retained for statistical accuracy, while during high-traffic periods it reduces the rate to control costs. This technique is specifically designed for high-volume scenarios like e-commerce telemetry, where preserving statistical accuracy for performance metrics (e.g., request durations, failure rates) is critical, and it avoids the manual tuning required by fixed-rate sampling.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Adaptive sampling
Why this is correct
Adaptive sampling in Application Insights automatically adjusts the sampling rate based on the volume of telemetry and a target maximum data ingestion rate. This dynamic adjustment ensures that a representative sample of data is collected during both low and high traffic periods, preventing excessive costs while maintaining sufficient data for accurate diagnostics and performance analysis. It intelligently reduces the sampling rate during spikes and increases it during lulls to meet the configured daily cap, preserving statistical validity.
- ✗
Fixed-rate sampling with a 1% rate
Why it's wrong here
Fixed-rate sampling applies a constant sampling percentage, such as 1%, to all telemetry items, regardless of the current traffic volume. While it offers predictable data volume under stable load, it fails to adapt to the fluctuating high volume characteristic of an e-commerce application. During traffic spikes, a fixed 1% rate could still lead to excessive data ingestion and costs, or conversely, during lulls, it might collect too little data for meaningful analysis, making it inefficient for dynamic workloads.
- ✗
Ingestion sampling
Why it's wrong here
"Ingestion sampling" is not a recognized or configurable sampling method within Azure Application Insights. Application Insights primarily offers SDK-based sampling (fixed-rate and adaptive) and a form of "daily cap" which limits total ingestion but isn't a proactive sampling strategy. While data might be dropped if a daily cap is exceeded, this isn't a configurable, intelligent sampling mechanism like adaptive sampling, making it an incorrect choice for managing high-volume telemetry.
- ✗
Head-based sampling
Why it's wrong here
Head-based sampling, often used in distributed tracing systems, makes sampling decisions at the very beginning of a request's lifecycle, typically based on a trace ID. This ensures that all telemetry items related to a single request are either fully sampled or fully dropped, preserving the complete context of a transaction. However, Azure Application Insights does not natively implement head-based sampling as a configurable option, instead relying on adaptive or fixed-rate sampling for its telemetry collection.
Go deeper
Related to this question
Learn chapter
Azure Functions Development
Key term
Azure Event Hubs
Azure Event Hubs is a cloud-based service that ingests and processes millions of events per second from devices, applications, and services in real time.
Key term
Application Insights
Application Insights is an Azure monitoring service that helps developers detect, diagnose, and understand issues in live web applications by collecting telemetry data like requests, exceptions, and performance counters.
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 →
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.