Requests through API Gateway → Lambda → DynamoDB are intermittently slow, and the team needs to see which hop adds latency. What tool provides this distributed trace?
A.CloudWatch Logs Insights
Logs Insights queries text logs — no distributed timing topology.
B.AWS X-Ray tracing enabled on API Gateway and Lambda
Correct. X-Ray traces a request's path with per-hop latency.
C.VPC Flow Logs
Flow Logs record network IP traffic, not application calls.
D.CloudTrail event history
CloudTrail audits API control-plane activity, not request latency.
Why this answer
X-Ray instruments requests end-to-end as segments and subsegments across API Gateway, Lambda, and downstream calls — showing per-service latency and errors in a service map. Logs show events; X-Ray shows timing topology.
Correct answer: B · Last reviewed 2026-10-26
Official AWS references
Practice this interactively
Answer without seeing the solution first in the Debugging & Optimization practice session.
Practice Debugging & Optimization