Troubleshooting and Optimization

A complete AWS X-Ray trace shows a 2-second application segment containing a single 100-ms downstream HTTP subsegment and no other subsegments. Where should the developer investigate the remaining elapsed time first?

Show the answer

Correct answerA. Within application work outside the HTTP subsegment

AWhy this is right: Approximately 1.9 seconds lies outside the instrumented downstream call and needs investigation.

BWhy not this: Network time recorded within the HTTP subsegment is already included in its 100-ms duration.

CWhy not this: Retries recorded within the subsegment would be included in its measured duration.

DWhy not this: Processing represented by the downstream call is contained within its 100-ms subsegment.

The downstream subsegment accounts for only 100 ms of the enclosing 2-second segment. Investigate application work or waits outside that subsegment; downstream processing and network time captured by the HTTP subsegment cannot explain the remaining 1.9 seconds.