DVA-C02 Exam QuestionsBrowse all questions from this exam

DVA-C02 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?

Show Answer
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

5 comments
Sign in to comment
siheom
Jul 16, 2024

SHOULD BE A

AlagongOption: A
Jul 16, 2024

VOTE A

blow96
Jul 11, 2024

A is correct

rdiazOption: B
Jul 12, 2024

Minimal impact

tomchandler077
Jul 18, 2024

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.