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

A developer is updating the production version of an AWS Lambda function to fix a defect. The developer has tested the updated code in a test environment. The developer wants to slowly roll out the updates to a small subset of production users before rolling out the changes to all users. Only 10% of the users should be initially exposed to the new code in production.

Which solution will meet these requirements?

Answer options

Correct answer: D

Explanation

AWS Lambda supports canary deployments by allowing a single Lambda alias to point to two different versions of a function with specified traffic weights. Triggers and proxy integrations do not natively manage traffic shifting between Lambda versions. Creating a separate Lambda function instead of a new version of the same function prevents the use of Lambda's built-in weighted alias routing capability.