Amazon
DVA-C02 · Question #296
A developer is testing a RESTful application that is deployed by using Amazon API Gateway and AWS Lambda. When the developer tests the user login by using credentials that are not valid, the developer
The correct answer is A. HTTP 401. https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
Submitted by kev92· Mar 5, 2026Development with AWS Services
Question
A developer is testing a RESTful application that is deployed by using Amazon API Gateway and AWS Lambda. When the developer tests the user login by using credentials that are not valid, the developer receives an HTTP 405: METHOD_NOT_ALLOWED error. The developer has verified that the test is sending the correct request for the resource. Which HTTP error should the application return in response to the request?
Options
- AHTTP 401
- BHTTP 404
- CHTTP 503
- DHTTP 505
How the community answered
(54 responses)- A93% (50)
- B4% (2)
- C2% (1)
- D2% (1)
Explanation
https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
Community Discussion
No community discussion yet for this question.