ExamQuestions.com

Register
Login
AWS Certified Solutions Architect Professional Exam Questions

Amazon

AWS Certified Solutions Architect Professional

458 / 465

Question 458:

You are developing a REST API in Amazon API Gateway. The API integrates with a Lambda Function. You found that when clients hit the API using an unsupported method, the API Gateway has returned a Missing Authentication Token (403) response. As the response does not provide much information, you want to customize the response. For example, you want to change the error code to 404 and add some custom HTTP headers. How would you implement this?

Answer options:

A.In the AWS API Gateway console, choose Gateway Responses under the API and select the 403 response. Add custom headers and modify the response status code to 404.
B.In the API method`s integration response, add the custom headers and modify the status code to 404.
C.In the AWS API Gateway console, select the Missing Authentication Token 403 response. Forward it to an HTTP 404 Not Found response. Select the 404 response and add custom headers accordingly.
D.Select the API method and click the integration response. Forward the 403 response to a 404 Not Found response. In the meantime, add the custom headers in the forwarded response.