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

A developer wants the ability to roll back to a previous version of an AWS Lambda function in the event of errors caused by a new deployment.

How can the developer achieve this with MINIMAL impact on users?

Answer options

Correct answer: B

Explanation

Using AWS Lambda routing configurations on an alias allows for canary deployments, where only a small percentage of traffic (such as 10%) is exposed to the new version. This minimizes user impact because if errors are detected, the developer can instantly shift 100% of the traffic back to the stable version. Other options either expose all users to the new code immediately or introduce redundant and overly complex alias configurations.