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

A company is developing a serverless multi-tier application on AWS. The company will build the serverless logic tier by using Amazon API Gateway and AWS Lambda.
While the company builds the logic tier, a developer who works on the frontend of the application must develop integration tests. The tests must cover both positive and negative scenarios, depending on success and error HTTP status codes.

Which solution will meet these requirements with the LEAST effort?

Answer options

Correct answer: A

Explanation

Option A is correct because setting up a mock integration in API Gateway allows for easy simulation of both success and error responses with minimal effort. The other options involve unnecessary complexity, such as creating multiple resources or additional Lambda functions, which require more development and maintenance effort.