A request through an API Gateway REST API, Lambda, and DynamoDB is slow. Active tracing is enabled on the API stage and Lambda, and the DynamoDB client calls are instrumented.
Trace-write permissions and sampled traces are available. Identify time spent in processing and downstream calls for one request.
Which investigation method is most appropriate?
Inspect configured and instrumented X-Ray traces to separate processing time from downstream-call time.
Detailed explanation
API auditing is not the distributed trace connecting application processing segments.
API auditing is not the distributed trace connecting application processing segments.
A function-wide average does not separate an individual request's work and downstream calls.
A function-wide average does not separate an individual request's work and downstream calls.
A request's connected records reveal Lambda work and observed DynamoDB-call time.
A request's connected records reveal Lambda work and observed DynamoDB-call time.
Error counts do not expose processing intervals for individual requests.
Error counts do not expose processing intervals for individual requests.
Check official documentation
Compare the following points with the official documentation.
Review REST API support, Lambda Active/PassThrough modes, and DynamoDB-call subsegments.
Official references
What to confirm
Read interval timings with their instrumentation and sampling limits; do not infer complete internal database traces.
Key points
- AWS X-Ray
- Service map
- Trace
Notes
- Environment: AWS SOA-C03 exam guide and the linked AWS documentation
- Reviewed against the linked AWS documentation on 2026-10-04.
Foundation review
Confirm instrumentation and delivery
API Gateway X-Ray tracing supports REST APIs. Verify Lambda Active tracing, write permissions, and downstream SDK instrumentation. PassThrough propagation alone does not make Lambda send traces automatically.
Understand the observed scope
DynamoDB subsegments show the calling client's view, not DynamoDB's own internal segments. Drill into individual traces from the map. Sampling means some requests have no trace record.