Q81 — AWS DVA-C02 Ch.1

Question 81 of 100 | ← Chapter 1

A company has an AWS Lambda function that processes incoming requests from an Amazon API Gateway API. The API uses a Lambda alias to invoke the Lambda function. Developers updated the Lambda function code to handle more detailed information related to incoming requests. Developers want to deploy the new Lambda function for testing without impacting customers using the API. Which solution meets these requirements with the least operational overhead?

Correct Answer: A. Create a new version of the Lambda function. Create a new stage in API Gateway integrated with the new Lambda version. Test the Lambda function using the new API Gateway stage.

Explanation

Option A describes creating a new Lambda version and a new API Gateway stage integrated with that version, enabling testing without affecting production traffic. This approach requires minimal changes and avoids operational complexity. Option B introduces weighted aliases, which enable gradual rollout but adds configuration complexity. Option C adds an extra Lambda layer for routing, increasing latency and maintenance overhead. Option D creates redundant infrastructure (a new API), increasing cost and management burden. Thus, A delivers the lowest operational overhead.