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

A company is using Amazon API Gateway to develop an API for its application on AWS. A developer needs to test and generate API responses. Other teams are required to test the API immediately.

What should the developer do to meet these requirements?

Answer options

Correct answer: A

Explanation

A mock integration in Amazon API Gateway allows developers to return simulated API responses directly from the gateway without calling a backend service. This enables dependent teams to start testing their integrations immediately with predefined status codes and payloads. Other options, such as using gateway responses or Lambda authorizers, do not provide the capability to mock standard API endpoint responses.