AWS Certified Developer – Associate (DVA-C02) — Question 2
A developer is deploying an AWS Lambda function The developer wants the ability to return to older versions of the function quickly and seamlessly.
How can the developer achieve this goal with the LEAST operational overhead?
Answer options
- A. Use AWS OpsWorks to perform blue/green deployments.
- B. Use a function alias with different versions.
- C. Maintain deployment packages for older versions in Amazon S3.
- D. Use AWS CodePipeline for deployments and rollbacks.
Correct answer: B
Explanation
The correct answer is B because using a function alias allows the developer to seamlessly switch between different versions of the Lambda function with minimal effort. Options A, C, and D involve more complex processes or additional management overhead that do not provide the same level of simplicity and efficiency for version control.