How to Roll Back an AWS Lambda Function with Minimal User Impact?
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?
Community Votes
80% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
This question tests knowledge of Lambda alias traffic shifting to achieve canary deployments, where the key is minimizing user impact by limiting exposure to a new version rather than exposing all users at once.
To roll back an AWS Lambda function with minimal impact on users, use Lambda aliases with weighted traffic routing (canary deployment). This allows a small percentage of traffic to test the new version before full rollout.
Many candidates choose Option A because it describes a valid rollback mechanism using aliases and versions, but it fails the 'minimal impact' requirement since 100% of users are immediately routed to the new version before any errors are detected.
Community Discussion (10 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
The correct answer is Option B because it leverages AWS Lambda alias traffic shifting to implement a canary deployment strategy. By directing only 10% of traffic to the newly deployed version, the developer can monitor for errors while limiting the blast radius. If issues are found, the alias can be instantly reconfigured to send 100% of traffic back to the previous version, impacting only the small subset of users who were routed to the new version.
Why Option A is incorrect: While Option A describes a functional rollback using aliases and versions, it updates the alias to point 100% of traffic to the new version immediately. This means all users are exposed to potential errors until the developer notices and reverts the alias, which violates the "minimal impact" requirement.
Why Option C is incorrect: Option C suggests deploying directly to $LATEST and switching the ARN in the application. This is operationally slow, requires application changes, and does not use Lambda's built-in versioning and aliasing features for safe deployments.
Why Option D is incorrect: Option D is overly complex and unnecessary. Creating multiple aliases and a "router" alias adds administrative overhead without providing additional benefit over the simpler approach in Option B. Lambda aliases natively support weighted traffic routing without needing a separate router alias.
Community consensus strongly supports Option B, with commenters noting that Option A exposes 100% of users to risk, while Option B's canary approach limits impact to only 10% of traffic.
Official Reference
Exam Strategy
When an AWS exam question emphasizes 'minimal impact' or 'least disruption,' look for answers involving gradual rollouts, canary deployments, or traffic shifting. Avoid options that expose all users to a change simultaneously, even if the rollback mechanism itself is valid.
Related Analysis
Practice All DVA-C02 Questions
Access 100 questions with complete answers and detailed explanations.
View Full DVA-C02 Practice Test →