A company publishes new AWS Lambda function versions regularly and uses aliases for production. They want to roll out a new version to a fixed percentage of production traffic initially (traffic shifting) to improve releases. Which configuration achieves this behavior?
Choose an answer
Tap an option to check your answer.
Correct answer: Use alias routing with a weighted alias to route a specific percentage of traffic to the new version..
Why this is the answer
Alias routing with a weighted alias is the correct solution because it directly supports traffic shifting for Lambda functions. You can configure an alias to point to two different Lambda function versions, assigning a specific percentage of invocations to each. This allows you to gradually shift traffic to a new version, enabling canary deployments or A/B testing. Canary and linear deployment types are features of AWS CodeDeploy, which can be used to deploy Lambda functions, but the question specifically asks about Lambda's native capabilities for traffic shifting with aliases. Environment variables are for configuration within a function and cannot control traffic routing between different versions.
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