
Answer-first summary for fast verification
Answer: Employ a request mapping template in API Gateway to define mock integration responses.
The correct answer is D. Using a request mapping template to define mock integration responses in API Gateway allows the developer to simulate different backend responses without invoking the actual backend service. This approach provides the least operational overhead compared to deploying additional resources like Lambda functions or EC2 instances and offers flexibility in defining varied responses for testing purposes.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
During the development of a mobile app that interfaces with a backend service via Amazon API Gateway REST API, a developer seeks a method to simulate backend responses for integration testing without actual service invocation. What is the most operationally efficient approach?
A
Implement an AWS Lambda function with API Gateway proxy integration to generate static HTTP responses.
B
Deploy an Amazon EC2 instance configured as a backend REST API through an AWS CloudFormation template.
C
Modify the API Gateway stage settings to dynamically choose response types from incoming requests.
D
Employ a request mapping template in API Gateway to define mock integration responses.
No comments yet.