Q12 — AWS DVA-C02 Ch.1

Question 12 of 100 | ← Chapter 1

A company has an AWS Lambda function that processes incoming requests from an Amazon API Gateway API. The API invokes the Lambda function using a Lambda alias. A developer updated the Lambda function code to handle more detailed information related to incoming requests. The developer wants to deploy the new Lambda function for testing by other developers without impacting customers using the API. Which solution meets these requirements with the lowest operational overhead?

Correct Answer: A. Create a new version of the Lambda function. Create a new stage in API Gateway and integrate it with the new Lambda version. Use the new API Gateway stage to test the Lambda function.

Explanation

Option A creates a new Lambda version and a new API Gateway stage integrated with that version, enabling isolated testing without affecting production traffic. It incurs minimal operational overhead—only requiring a new deployment stage and integration update. Option B introduces weighted routing, which adds complexity in monitoring and risk of unintended production impact. Option C adds an extra Lambda layer, increasing architecture complexity and management overhead. Option D duplicates the entire API Gateway API, raising operational costs and maintenance burden. Thus, Option A is optimal.