
Answer-first summary for fast verification
Answer: MOCK with method integration for status codes and JSON.
The correct answer is B. By setting the integration type to MOCK and configuring the method's integration request and integration response, you can directly associate specific JSON responses with HTTP status codes. This setup allows the frontend team to receive the predefined responses they need without any backend processing. It is a common approach to use the MOCK integration type for creating API endpoints that return hardcoded responses, thus facilitating frontend development and integration testing.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
In a scenario where a developer is setting up an Amazon API Gateway for frontend team access, which integration type and configuration will allow the API to return predefined HTTP status codes and JSON responses without actual backend processing?
A
AWS_PROXY with Lambda functions for hardcoded JSON.
B
MOCK with method integration for status codes and JSON.
C
HTTP_PROXY to an external placeholder API.
D
MOCK for defining both HTTP status and JSON responses.