A developer needs to update a Lambda function that processes user-uploaded photos and test the update by splitting user traffic between the current function and the new version. Which combination of steps accomplishes this? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: Publish an immutable version of the current Lambda. Modify the function code as needed and publish a new version of the Lambda., Create an alias that points to the original published version and configure the alias as a weighted alias that also includes the new published version to split traffic..
Why this is the answer
To implement traffic splitting for a Lambda function, you first need distinct versions. Publishing an immutable version of the current Lambda function creates a snapshot of its code and configuration. Then, modifying the function code and publishing it as a new version provides the second distinct version required for traffic splitting. Once you have two versions, an alias can be created. This alias is configured as a weighted alias, allowing you to specify the percentage of traffic directed to each published version. This enables controlled, gradual rollout of the new function. Incorrect options: AWS CodeBuild is a build service, not directly used for traffic shifting in Lambda. Function URLs are for invoking a single function version or alias, not for managing traffic splitting between multiple versions. An alias points to Lambda versions, not directly to function URLs for traffic splitting.
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