Practice free →
HomeAWS Developer Associatecloudcomputingawsdevdeployment › Which strategy lets a serverless API safely depl…

Which strategy lets a serverless API safely deploy a new Lambda alias while keeping old clients on the prior version for a grace period?

ADisable IAM so the new version always wins
BEmail all users telling them to log out and back in
CUse Lambda versions + aliases with weighted routing — shift traffic gradually from old version to new version via the alias
DReplace every Lambda invocation with a Glacier retrieval
Answer & Solution
Correct answer: C. Use Lambda versions + aliases with weighted routing — shift traffic gradually from old version to new version via the alias
Lambda aliases support weighted routing — splitting traffic between two versions for canary or linear deployments. The other options either lose data or have nothing to do with versioning.
Solve this in the app — AWS Developer Associate practice & 24k+ MCQs →
Related questions