A developer is troubleshooting an Amazon API Gateway API. Clients are receiving HTTP 400 response errors when the clients try to access an endpoint of the API.
How can the developer determine the cause of these errors?
A.
Create an Amazon Kinesis Data Firehose delivery stream to receive API call logs from API Gateway. Configure Amazon CloudWatch Logs as the delivery stream’s destination.
B.
Turn on AWS CloudTrail Insights and create a trail. Specify the Amazon Resource Name (ARN) of the trail for the stage of the API.
C.
Turn on AWS X-Ray for the API stage. Create an Amazon CloudWatch Logs log group. Specify the Amazon Resource Name (ARN) of the log group for the API stage.
D.
Turn on execution logging and access logging in Amazon CloudWatch Logs for the API stage. Create a CloudWatch Logs log group. Specify the Amazon Resource Name (ARN) of the log group for the API stage.
why not C,X-Ray is more focused on the internal workings and performance of the API rather than the validity or structure of incoming requests.according to the error 400,it should be the client side error like incorrect request syntax, invalid request message framing, or deceptive request routing
Changing answer to D:
CloudTrail records API-level events, but it may not capture the payloads, headers, or other details of the requests and responses that are essential for understanding the cause of HTTP 400 response errors.
Always the rule of thump is Cloud trail to trace the logging events of API's.
https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-insights-events-with-cloudtrail.html#:~:text=AWS%20CloudTrail%20Insights,write%20management%20APIs.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
walala97
Highly Voted 9 months, 3 weeks ago65703c1
Most Recent 5 months agoyingying920928
7 months, 1 week agoyingying920928
7 months, 2 weeks agoKarBiswa
7 months, 3 weeks agoKarBiswa
7 months, 1 week agoKarBiswa
7 months, 3 weeks agoKarBiswa
7 months, 3 weeks agodezoito
1 year agodilleman
1 year agoDigo30sp
1 year ago