AWS Certified Developer – Associate — Question 288
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
Utilizing an AWS Lambda function alias to point to specific published versions allows for instantaneous traffic shifting and rapid rollbacks with virtually no operational overhead. While storing deployment packages in Amazon S3 or configuring AWS CodePipeline can facilitate rollbacks, these methods require significantly more manual intervention or complex pipeline setups. AWS OpsWorks is not natively designed for managing Lambda deployments and would introduce unnecessary complexity.