Exam AI-200 Topic 1 Question 81 Discussion

Actual exam question for Microsoft's AI-200 exam
Question #: 81
Topic #: 1
Drag and Drop Question
You are configuring sampling for a distributed application that sends traces to Azure Monitor.
The solution must
- Preserve upstream sampling decisions across distributed traces.
- Capture all spans during local testing.
- Sample 10 percent of traces in production.
You need to apply the appropriate sampling configuration for each requirement.
What should you do? To answer, move the appropriate configurations to the correct requirements. You may use each configuration once, more than once, or not at all. You may need to move the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.

Suggested Answer:


Explanation:
Box 1: ParentBasedSampler
ParentBasedSampler is the correct setup to use because it inspects incoming trace context and honors the sampling decision made by an upstream parent span.
Conserves Decisions: If an upstream service marks a trace as sampled or dropped, the ParentBasedSampler delegates the exact same decision to downstream child services.
Prevents Broken Traces: It avoids gaps in end-to-end telemetry by ensuring entire transaction chains are kept or discarded together.
Box 2: AlwaysOnSampler
AlwaysOnSampler is the correct setup to use because it samples every single span (100% trace capture rate) without dropping any telemetry, making it ideal for local development, debugging, and testing.
AlwaysOnSampler: Samples and records 100% of all traces and spans regardless of volume or upstream decisions.
Box 3: TraceIdRatioBasedSampler(0.1)
To capture exactly 10 percent of traces in production using OpenTelemetry and Azure Monitor, you should use TraceIdRatioBasedSampler(0.1).
Fixed-Rate Sampling: Azure Monitor and standard OpenTelemetry configurations achieve a fixed percentage rate by evaluating the randomly generated 128-bit Trace ID.
Ratio Representation: A sampling ratio between 0 and 1 represents the percentage. Passing a parameter of 0.1 mathematically translates to capturing exactly 10% of your production traffic.
Reference:
https://medium.com/@varun_0K/sampling-strategies-in-distributed-tracing-a-comprehensive-guide-6e80092068c3
https://learn.microsoft.com/en-us/azure/azure-monitor/app/application-insights-faq

by Blair at Aug 26, 2026, 07:58 PM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10