Exam DVA-C02 All QuestionsBrowse all questions from this exam
Question 382

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?

    Correct Answer: B

    To ensure a minimal impact on users while allowing the developer to roll back to a previous version of an AWS Lambda function in case of errors, using an alias to gradually shift traffic can be very effective. This can be achieved by deploying the new version of the code and updating the alias to direct 10% of users to the new version, while keeping 90% of users on the current stable version. If too many errors are encountered, the developer can send 100% of the traffic back to the previous stable version. This strategy, known as a canary deployment, helps in detecting issues on a small scale and ensures that the majority of users are not affected by potential problems in the new deployment. Therefore, option B is the best choice.

Discussion
AlagongOption: A

VOTE A

siheom

SHOULD BE A

tomchandler077

Option B is the best choice for achieving the objective with minimal impact on users. It uses a canary deployment strategy, which allows for testing the new version on a smaller scale before a full rollout. This method provides a balance between risk management and operational simplicity, ensuring that any potential negative impacts of the new deployment are contained and easily reversible.

rdiazOption: B

Minimal impact

blow96

A is correct