ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 521 - DVA-C01 discussion

Report
Export

A developer is debugging an AWS Lambda function behind an Amazon API Gateway. Whenever the API Gateway endpoint is called, HTTP status code 200 is returned even though AWS Lambda is recording a 4xx error. What change needs to be made to return a proper error code through the API Gateway?

A.
Enable CORS in the API Gateway method settings.
Answers
A.
Enable CORS in the API Gateway method settings.
B.
Use a Lambda proxy integration to return HTTP codes and headers.
Answers
B.
Use a Lambda proxy integration to return HTTP codes and headers.
C.
Enable API Gateway error pass-through.
Answers
C.
Enable API Gateway error pass-through.
D.
Return the value in the header X-Amzn-ErrorType.
Answers
D.
Return the value in the header X-Amzn-ErrorType.
Suggested answer: B
asked 16/09/2024
Mohammad Wahid
46 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first