Operating, Monitoring, and Securing ML and AI Solutions

An application calls an inference endpoint and a database during each request. Aggregate metrics show intermittent latency spikes; which approach BEST identifies the downstream call responsible for each slow request?

Show the answer

Correct answerB. Instrument downstream calls with AWS X-Ray tracing

AWhy not this: Average CPU utilization can indicate resource pressure but cannot attribute an individual request's delay to a downstream call.

BWhy this is right: Distributed traces expose timing for instrumented downstream calls within individual requests.

CWhy not this: Cost Explorer analyzes spending and usage rather than request-level downstream latency.

DWhy not this: CloudTrail records supported API activity for auditing, not an application's end-to-end call timing.

AWS X-Ray traces show timing across instrumented downstream calls, helping isolate the component delaying a request. CloudWatch CPU averages can reveal resource pressure but do not establish which downstream call delayed an individual request.