SkillSprout
Chapter 2

Deployment Strategies

Release safely and roll back fast: CodeDeploy on EC2, ECS and EKS rollouts, Lambda alias traffic shifting, Elastic Beanstalk policies and DNS or load-balancer based blue/green.

1CodeDeploy for EC2 and On-Premises
Advanced
7 min
2ECS and EKS Deployments
Advanced
6 min
3Lambda Aliases and Serverless Deployments
Advanced
5 min
4Elastic Beanstalk, DNS Traffic Shifting and Rollbacks
Advanced
6 min
5Troubleshooting Failed Deployments and Application Storage Patterns
Advanced
7 min

Chapter quiz

Deployment Strategies · 10 questions

  1. 1.A CodePipeline execution fails in the Deploy stage with a generic message. The deployment targets Auto Scaling group instances through CodeDeploy. What is the best first step to find the root cause?

  2. 2.A web fleet stores user uploads on the root EBS volume of each instance. After switching to immutable deployments, users report missing files after every release. Which change fixes the design?

  3. 3.A CloudFormation update fails and the stack enters UPDATE_ROLLBACK_FAILED because a security group rule was deleted manually. The team wants to restore the stack to a stable state. What should they do?

  4. 4.ECS tasks in private subnets repeatedly stop with CannotPullContainerError for images in ECR. There is no NAT gateway. Which solution is the most appropriate?

  5. 5.An application needs a POSIX-compliant shared file system mounted by dozens of EC2 instances across three Availability Zones, with automatic capacity growth and no provisioning. Which storage fits?

  6. 6.A production EC2 fleet behind an ALB is deployed with CodeDeploy. The company needs the ability to roll back within seconds without reducing capacity, and to validate the new version before users reach it. Which strategy BEST fits?

  7. 7.An ECS Fargate service is updated using rolling deployments. Occasionally a new task definition references a bad image and the service keeps launching failing tasks. What should be enabled to automatically stop and revert the deployment?

  8. 8.A Lambda function behind an API must be released gradually: 10% of invocations for 10 minutes, then the rest, with automatic rollback if the error alarm fires. The team uses AWS SAM. Which configuration achieves this?

  9. 9.A team runs blue/green on Elastic Beanstalk by swapping environment URLs. After a swap, users report missing data because the new environment has an empty database. What is the root cause?

  10. 10.A company shifts traffic between two application stacks using Route 53 weighted records with a 300 second TTL. After setting the weight of the faulty stack to 0, some users still reach it for several minutes. Which change gives the MOST immediate control for future releases?

0 of 10 answered