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

A company is developing an ecommerce application that uses Amazon API Gateway APIs. The application uses AWS Lambda as a backend. The company needs to test the code in a dedicated, monitored test environment before the company releases the code to the production environment.

Which solution will meet these requirements?

Answer options

Correct answer: C

Explanation

Option C is correct because it allows the use of multiple stages in API Gateway and distinct Lambda functions for each environment, which effectively isolates testing environments. Option A incorrectly suggests using a single stage and requires multiple Lambda functions to be selected through query parameters, complicating the implementation. Option B fails to create separate functions for each environment, which can lead to issues with environment-specific code. Option D also uses a single stage and query parameters, which is not ideal for maintaining clear separation of environments.