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.
Ask: error ==> "cause" for "access an endpoint of the API".
To help debug issues related to request execution or "client access" to your API, you can enable Amazon CloudWatch Logs to log API calls.
There are two types of API logging in CloudWatch: execution logging and access logging.
X-Ray is "not needed" here. Reason: we don't need "end-to-end" or "travel-though" (Ref: https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-xray.html )
Error code 400 means bad request.
https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-logging.html
The logged data includes errors or execution traces (such as request or response parameter values or payloads).
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.
DrCloud
Highly Voted 2 years, 5 months agotony554556
2 years, 3 months agoSoMaL69
Most Recent 2 years, 5 months agoSBoksh
2 years, 5 months agomichaldavid
2 years, 5 months agok1kavi1
2 years, 5 months ago