
Answer-first summary for fast verification
Answer: Create a mock integration in API Gateway, setting method integration requests and responses with specific status codes.
The correct answer is A. Setting up a mock integration request in API Gateway allows developers to quickly generate and test API responses without backend integration. This helps in immediate testing by other teams as it provides a way to define static responses for different HTTP status codes directly within API Gateway.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How should a developer using Amazon API Gateway quickly test and generate API responses for immediate testing by other teams?
A
Create a mock integration in API Gateway, setting method integration requests and responses with specific status codes.
B
Implement request validators using the API's OpenAPI definition and integrate these into API Gateway for testing.
C
Configure API Gateway with hardcoded status codes and responses as gateway responses.
D
Establish a Lambda authorizer based on request parameters to manage API access, including necessary mapping templates.
No comments yet.