Multiple development teams need to publish an API using API Gateway before the backend is ready so dependent teams can continue work. The API should return mocked responses and HTTP status codes without an integrated backend. Which solution satisfies this requirement?
Choose an answer
Tap an option to check your answer.
Correct answer: Create API Gateway resources with integration type MOCK, configure the method integration request and integration response to map responses to HTTP status codes, create a stage, and deploy the API..
Why this is the answer
The MOCK integration type in API Gateway is specifically designed for scenarios where you need to simulate API responses without a backend. This allows dependent teams to proceed with development using predefined responses and status codes. You configure the integration request and response to define the mock data and HTTP status codes. Using a Lambda function (AWSPROXY) or an EC2-based application (AWS) would introduce unnecessary compute resources and complexity for a simple mocking requirement. While these could technically return mocked responses, they are overkill and not the most efficient solution. HTTPPROXY is for integrating with existing HTTP endpoints and doesn't directly support built-in mocking with mapping templates in the way described for a Lambda layer.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed