Question 243 of 324
mediummultiple choiceObjective-mapped

AZ-204 Practice Question: Application Insights adaptive sampling to reduce…

This AZ-204 practice question tests your understanding of application insights adaptive sampling to reduce…. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. A key principle to apply: application Insights adaptive sampling. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A high-traffic API sends approximately 80,000 telemetry events per second to Application Insights. Monthly ingestion costs are too high. The team wants to reduce data volume by roughly 80 percent while still seeing representative samples of all request types. What should the developer configure?

Question 1mediummultiple choice
Full question →

A high-traffic API sends approximately 80,000 telemetry events per second to Application Insights. Monthly ingestion costs are too high. The team wants to reduce data volume by roughly 80 percent while still seeing representative samples of all request types. What should the developer configure?

Answer choices

Why each option matters

Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.

A

Distractor review

Increase the TelemetryClient flush interval from 30 seconds to 5 minutes to batch events

Flush interval controls when buffered events are sent, not how many are sent. Flushing less frequently does not reduce the number of events — it only changes the timing. Total event volume and ingestion cost remain the same.

B

Distractor review

Filter all events with HTTP status code 200 from the telemetry pipeline before sending

Filtering out 200-OK requests removes all evidence of successful operations. Metrics like response time percentiles, throughput, and dependency success rates become meaningless. Sampling preserves proportional representation; hard filtering destroys observability for the majority of traffic.

C

Best answer

Enable adaptive sampling in the Application Insights SDK and set a target events-per-second limit

Adaptive sampling runs in the SDK. It monitors the outgoing telemetry rate and automatically raises or lowers the sample percentage to stay near the target rate. All operation types are sampled proportionally, so statistical trends remain meaningful even at 20 percent of raw volume. Data is reduced before transmission, lowering both network and ingestion costs.

D

Distractor review

Configure ingestion sampling in the Azure portal to retain 20 percent of incoming telemetry

Ingestion sampling discards 80 percent of events after they arrive at the Application Insights endpoint. The data is still transmitted from the application, so network bandwidth is unchanged. It reduces storage and query costs but not the cost of transmitting data from the app.

Common exam trap

Common exam trap: answer the scenario, not the keyword

Many certification questions include familiar terms but test a specific constraint. Read the exact wording before choosing an answer that is generally true but wrong for this case.

Technical deep dive

How to think about this question

Treat this as a scenario question. Identify the problem, the constraint, and the best action. Then compare each option against those facts.

KKey Concepts to Remember

  • Application Insights adaptive sampling
  • ingestion cost
  • representative telemetry
  • SDK-side sampling

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Application Insights adaptive sampling

Related practice questions

Related AZ-204 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

More questions from this exam

Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.

Question 1

An application stores customer invoices in Azure Blob Storage. Deleted blobs must be recoverable for 14 days. What should be enabled?

Question 2

You are deploying a containerized application to Azure Container Instances. The application requires a custom domain name and SSL/TLS termination. You need to configure these features. Which resource should you create alongside the container group?

Question 3

A developer needs to run a Kusto query against application request data to identify 95th percentile latency by operation. Where should the query be run? The architecture review board prefers a managed AWS-native control.

Question 4

You are developing a web app that authenticates users via Microsoft Entra ID. The app needs to read the user's profile and send emails on their behalf. You want to minimize user consent prompts. Which OAuth 2.0 grant type should you use?

Question 5

You are developing an Azure Function that processes messages from an Azure Service Bus queue. The function uses a Service Bus queue trigger and runs on a Consumption Plan. The queue receives a high volume of messages in bursts. You need to ensure that the function scales out to handle the load but does not exceed 10 concurrent instances. Which configuration should you apply?

Question 6

You are monitoring an Azure App Service using Application Insights. You notice that the server response time is high for certain requests. You need to drill down to see which external dependencies (like databases or APIs) are causing the delay. Which Application Insights feature should you use?

Practice this exam

Start a free AZ-204 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this AZ-204 question test?

Application Insights adaptive sampling

What is the correct answer to this question?

The correct answer is: Enable adaptive sampling in the Application Insights SDK and set a target events-per-second limit — Adaptive sampling is built into the Application Insights SDK (ASP.NET, Node.js, Java). It dynamically adjusts the sampling percentage to keep the ingested data rate near a configurable target while preserving statistical representation across all operation types. Because sampling happens in the SDK before data is transmitted, both network bandwidth and ingestion costs decrease proportionally. Ingestion sampling (portal-side) discards data after it has already been transmitted — so it does not reduce network cost.

What should I do if I get this AZ-204 question wrong?

Review application Insights adaptive sampling, then practise related AZ-204 questions on the same topic to reinforce the concept.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Discussion

Loading comments…

Sign in to join the discussion.

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.