Monitoring and Logging

Which API Gateway REST API stage setting enables collection of AWS X-Ray traces?

Show the answer

Correct answerB. Active tracing

AWhy not this: Access logging records request information in a configured log destination, not X-Ray traces.

BWhy this is right: Active tracing enables API Gateway to send trace data to AWS X-Ray.

CWhy not this: Execution logging records request processing details in CloudWatch Logs, not distributed traces.

DWhy not this: Detailed metrics provide additional API performance measurements, not X-Ray traces.

Active tracing enables AWS X-Ray tracing for an API Gateway REST API stage. Execution logging records API execution details in CloudWatch Logs but does not enable distributed tracing.