A team needs an API Gateway REST API to return a predefined JSON response while an external dependency is unavailable. Which configuration meets this need without a backend?
Show the answer
Correct answerA. A MOCK integration with an integration response template
AWhy this is right: A MOCK integration can return predefined status codes and response bodies without a backend.
BWhy not this: An HTTP proxy forwards requests to a backend; a method response model does not supply a mock response.
CWhy not this: An AWS service integration calls an AWS service; request validation does not create response bodies.
DWhy not this: A Lambda proxy requires a function backend; a saved test event does not generate API responses.
An API Gateway MOCK integration returns configured responses without calling a backend, and an integration response template can supply the JSON body. An HTTP proxy integration still requires a reachable HTTP backend; a response model does not generate its response.