Design Resilient Architectures

An instrumented API uses AWS X-Ray's default sampling rule, but rare checkout failures seldom appear in traces. The team must capture every checkout request during a short investigation without increasing tracing for other API paths; which change should it make?

Show the answer

Correct answerC. Add a higher-priority checkout sampling rule with a 100% fixed rate.

AWhy not this: A default-rule change would increase tracing for other paths as well as checkout.

BWhy not this: Detailed metrics provide aggregate measurements, not complete per-request traces.

CWhy this is right: A matching higher-priority rule targets checkout requests and selects all of them for tracing.

DWhy not this: Longer log retention preserves existing logs but does not change which requests are traced.

A higher-priority sampling rule matching the checkout path with a 100% fixed rate selects every matching request for tracing. Changing the default rule would also increase tracing for unrelated API paths.