Troubleshooting and Optimization
What is the purpose of sampling requests when collecting distributed traces with AWS X-Ray?
Show the answer
Correct answerA. To control the volume of requests recorded as traces
AWhy this is right: Sampling selects a subset of requests to reduce tracing overhead and data volume.
BWhy not this: Health checks assess availability or readiness, not trace collection volume.
CWhy not this: Metric publication produces measurements; sampling selects requests for tracing.
DWhy not this: Log organization is separate from deciding which requests produce traces.
Sampling controls how many requests are traced, balancing observability with collection overhead and cost. Health checks assess endpoint availability rather than selecting requests for tracing.