
Answer-first summary for fast verification
Answer: Activate CloudWatch Logs for execution and access logging, specifying a log group ARN for the API stage.
The correct answer is D. By enabling execution logging and access logging in Amazon CloudWatch Logs, developers can capture detailed information about API requests and responses. This includes the headers, payload, and other critical details that are needed to troubleshoot HTTP 400 errors, which typically indicate client-side issues. Other options like AWS X-Ray (Option C) focus more on performance monitoring, while AWS CloudTrail (Option B) logs API-level events without as much detail on request validity. Option A involves setting up a Kinesis Data Firehose stream, which is not the most straightforward method for logging detailed API call data.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
How can a developer diagnose HTTP 400 errors encountered by clients when accessing an Amazon API Gateway endpoint?
A
Set up a Kinesis Data Firehose to stream API logs to CloudWatch Logs.
B
Utilize AWS CloudTrail Insights to log API stage events.
C
Implement AWS X-Ray and configure a CloudWatch Logs group for the API stage.
D
Activate CloudWatch Logs for execution and access logging, specifying a log group ARN for the API stage.