You want the ability to quickly and seamlessly roll back an AWS Lambda function to previous code versions with minimal operational overhead. What is the simplest way to achieve this?
Choose an answer
Tap an option to check your answer.
Correct answer: Publish versions of the Lambda function and use a function alias that points to the desired version..
Why this is the answer
Publishing versions of a Lambda function and using an alias is the simplest and most direct way to manage rollbacks. When you publish a new version, Lambda creates an immutable snapshot of your code and configuration. An alias can then point to a specific version. To roll back, you simply update the alias to point to a previous, known-good version. This process is nearly instantaneous and has minimal operational overhead. Using AWS OpsWorks is overly complex for managing Lambda rollbacks; OpsWorks is primarily for managing application stacks on EC2 instances. Keeping deployment packages in S3 and redeploying is a manual process that lacks the speed and automation of aliases. AWS CodePipeline can manage deployments and rollbacks but introduces more overhead and complexity than simply using Lambda versions and aliases for this specific requirement.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed