Home › AWS Developer Associate › cloudcomputing › awsdevdeployment › 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.
Related questions
Which AWS service lets developers store and version build artefacts and intermediate filesA Lambda function is deployed as a container image stored in ECR. Which change triggers LaWhich Elastic Beanstalk deployment policy shifts traffic to new instances WHILE keeping thWhich CloudFormation feature lets a developer reference an existing resource (e.g. an exisA team wants to deploy a Lambda update with the option to roll back automatically if a CloWhich AWS service automates Docker image builds and publishes them to a private container Which combination provides end-to-end CI/CD for an application stored in CodeCommit, builtWhich CodeDeploy deployment strategy for a Lambda alias shifts traffic from version V1 to