Home › AWS Developer Associate › cloudcomputing › awsdevdeployment › A team wants to deploy a Lambda update with the …
A team wants to deploy a Lambda update with the option to roll back automatically if a CloudWatch alarm fires within the deployment window. Which deployment configuration enables this?
AAll-at-once deployment with no alarm wiring
BA CodeDeploy deployment group with rollback enabled on alarm, combined with a linear or canary traffic-shifting config
CDisabling CloudWatch alarms to avoid false rollbacks
DManually clicking 'publish version' in the console and praying
Answer & Solution
Correct answer: B. A CodeDeploy deployment group with rollback enabled on alarm, combined with a linear or canary traffic-shifting config
CodeDeploy attaches CloudWatch alarms to a deployment group and rolls back automatically when they fire mid-traffic shift. The other options remove safety nets.
Related questions
Which strategy lets a serverless API safely deploy a new Lambda alias while keeping old clWhich 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 exisWhich 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