A company has a critical web application running on Amazon ECS with AWS Fargate. A SysOps Administrator needs to configure a deployment strategy for a new release that ensures zero downtime, provides the ability to run verification tests on the new version before routing production traffic to it, and supports rapid rollback to the previous version in the event of an application error. Which two actions should the SysOps Administrator perform to implement a deployment strategy that meets these requirements? (Select TWO.)
- Configure the Amazon ECS service to use the AWS CodeDeploy deployment controller.Answer
- Create an AWS CodeDeploy deployment group with a blue/green deployment type, specifying a test listener on the Application Load Balancer to verify the new version.Answer
- CConfigure the Amazon ECS service to use the rolling update deployment controller with a minimum healthy percent of 100% to handle rollback automatically.
- DSet up a CloudFormation stack update using an in-place deployment strategy with rollback triggers configured to monitor the ECS tasks.
- ECreate a Systems Manager Patch Group to automate the rollout of the new container image to the Fargate tasks during a maintenance window.
Answer
To meet the requirements, the SysOps Administrator should configure the Amazon ECS service to use the AWS CodeDeploy deployment controller and create an AWS CodeDeploy deployment group with a blue/green deployment type, specifying a test listener on the Application Load Balancer to verify the new version.
Configuring the ECS service deployment controller to use CodeDeploy enables blue/green deployment capabilities. The CodeDeploy deployment group manages the transition of traffic from the old task set (blue) to the new task set (green). By configuring a test listener on the Application Load Balancer, the administrator can route test traffic to the green deployment to verify the application's health before redirecting production traffic, ensuring zero downtime and providing a fast path to rollback if issues are detected.
Step-by-Step Solution
Key Concept
Implementing Blue/Green deployments on Amazon ECS using AWS CodeDeploy for zero-downtime releases, validation testing, and rapid rollbacks.