StudyToCert

All certifications / Developer Associate / Lessons

AWS Certified Developer – Associate DVA-C02 · Domain 3: Deployment

Lambda versions and aliases; weighted aliases; CodeDeploy canary, linear and all-at-once traffic shifting with alarm rollback

▶ Watch the overview video

Last reviewed October 6, 2026 · Leer en español

Explain it simpler

When you update a Lambda function, you can save a frozen copy of that exact code, called a version. Versions never change, so you always know what is running. An alias is a nickname, like 'prod', that points at one version. Your apps call the nickname, and to release new code you just move the nickname to a new version; to undo, you move it back. An alias can also split calls between two versions, for example 90 percent old and 10 percent new. AWS CodeDeploy can do that splitting for you step by step, watching alarms, and moving everything back on its own if something goes wrong. It is like a restaurant trying a new recipe on a few tables before changing the whole menu.

It is 9:40 on a Tuesday at Fernwood Pay, and Aisha has just shipped a new version of the payment-authorization function. By 9:43 the support queue lights up: a small share of card payments are failing with a parsing error. Last quarter, a similar release meant editing the API Gateway integration under pressure, redeploying it and hoping the old code was still around. This time the release went out as a gradual traffic shift with an alarm on the function's errors. Aisha watches the console as the alarm turns red. Before she can even open the integration settings, the traffic has already moved back. What made that automatic rollback possible?

Deploying new Lambda code safely depends on three abilities: pointing callers at a known, unchanging piece of code, shifting traffic gradually so a bad release affects only a few requests, and rolling back quickly without touching every caller. Lambda versions and aliases provide the building blocks, and AWS CodeDeploy automates the traffic shifting and rollback. The Developer Associate exam tests each piece and how they fit together, often through SAM templates.

Free account

Keep reading for free

Create a free StudyToCert account to read the rest of this lesson: 7 more sections, 8 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.

Sign up free Log in

Study Developer Associate for free
A week-by-week plan with every lesson, quizzes, checkpoint tests, a practice exam and hands-on labs.
Open the Developer Associate study plan