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

A developer updates an AWS Lambda function that an Amazon API Gateway API uses. The API is the backend for a web application.

The developer needs to test the updated Lambda function before deploying the Lambda function to production. The testing must not affect any production users of the web application.

Which solution will meet these requirements in the MOST operationally efficient way?

Answer options

Correct answer: C

Explanation

Creating a new API Gateway stage and using stage variables to route to the updated Lambda function is the most operationally efficient method to isolate testing without disrupting production traffic. Option A (canary) would still route a portion of real production traffic to the untested code. Option B disrupts production access by making the API private, while Option D introduces unnecessary administrative overhead by copying the entire infrastructure.