AWS Certified Developer – Associate (DVA-C02) — Question 33

A developer is creating a mobile app that calls a backend service by using an Amazon API Gateway REST API. For integration testing during the development phase, the developer wants to simulate different backend responses without invoking the backend service.
Which solution will meet these requirements with the LEAST operational overhead?

Answer options

Correct answer: D

Explanation

The correct answer is D because using a request mapping template allows for easy configuration of mock responses directly within the API Gateway, minimizing operational complexity. Options A and B introduce unnecessary complexity by requiring additional services like AWS Lambda or EC2, while option C does not provide the same level of flexibility or ease of setup as option D.