Q49 — AWS DVA-C02 Ch.2
Question 49 of 100 | ← Chapter 2
A developer is deploying an AWS Lambda function. The developer wants to quickly and seamlessly revert to a previous version of the function. How can the developer achieve this goal with the lowest operational overhead?
- A. Use AWS OpsWorks to perform blue/green deployments.
- B. Use function aliases with different versions. ✓
- C. Retain previous versions of the deployment package in Amazon S3.
- D. Use AWS CodePipeline for deployment and rollback.
Correct Answer: B. Use function aliases with different versions.
Explanation
Option B—using function aliases with different versions—is the optimal choice. Lambda function aliases allow associating an alias with a specific version of the function, enabling developers to reference that version via the alias. This facilitates seamless switching between versions without disrupting application availability. Aliases also support weighting for strategies like canary deployments. Option A (AWS OpsWorks) is typically used for EC2-based deployments, not Lambda. Option C (storing packages in S3) requires manual version management and storage handling. Option D (CodePipeline) supports deployment and rollback but introduces more complexity than native Lambda versioning and aliases. 【Lantern Certification provided by: swufelp1999】