A developer is configuring a deployment pipeline for a containerized application running on Amazon ECS (Fargate). The ECS service has a desired task count of . The deployment must comply with the following operational constraints:
- At least tasks must remain healthy and actively serve traffic at all times during the deployment to prevent service degradation.
- Due to strict account resource quotas in the target AWS Region, no more than tasks for this service can run concurrently at any point during the deployment.
- The system must automatically roll back to the previous stable version if the new container version fails to launch or fails to pass its container health checks.
Which deployment strategy and configuration should the developer implement to satisfy these requirements?
- An ECS rolling update with the minimum healthy percent set to %, the maximum percent set to %, and the ECS deployment circuit breaker enabled with rollback.Answer
- BAn ECS rolling update with the minimum healthy percent set to %, the maximum percent set to %, and the ECS deployment circuit breaker enabled with rollback.
- CAn AWS CodeDeploy blue/green deployment using the CodeDeployDefault.ECSAllAtOnce configuration, with automated rollbacks configured via CloudWatch alarms.
- DAn AWS CodeDeploy blue/green deployment using a custom canary configuration (ECSCanary10Percent5Minutes) to limit task provisioning, with automated rollbacks configured via CloudWatch alarms.