A financial services company is designing a deployment pipeline for a high-volume payment processing application. The application runs as an Amazon ECS service on AWS Fargate behind an Application Load Balancer (ALB) and connects to an Amazon Aurora PostgreSQL Serverless v2 database cluster. The deployment process must meet the following requirements:
1. The update must be rolled out with zero downtime.
2. Initial deployment validation must route exactly of live traffic to the new version, with the remaining routed only after the new version remains stable for minutes.
3. If the HTTP 5xx error rate exceeds during the validation period, the deployment must immediately and automatically roll back.
4. Database schema updates must be applied and verified before any client traffic is routed to the new tasks, without impacting the currently running tasks.
Which two actions should a Solutions Architect take to satisfy these requirements? (Select two.)
- Configure an AWS CodeDeploy deployment group for the ECS service using the ECSCanary10Percent15Minutes traffic-shifting configuration, and configure the deployment group to monitor a CloudWatch alarm for the ALB HTTP 5xx metric to trigger automatic rollback.Cevap
- Design the database schema updates using the expand-and-contract pattern, and execute the migration scripts via a dedicated AWS CodeBuild step in the CI/CD pipeline prior to starting the ECS CodeDeploy deployment.Cevap
- CConfigure the ECS service to use the ECS rolling update deployment type with minimumHealthyPercent set to and maximumPercent set to , and configure a CloudWatch alarm on the ALB HTTP 5xx metric to trigger an automatic rollback of the service update.
- DConfigure an AWS CodeDeploy deployment group for the ECS service using the ECSLinear10PercentEvery15Minutes traffic-shifting configuration, and include the database schema migration script in the ECS task definition's container entrypoint script.
- EConfigure an AWS CodeDeploy deployment group for the ECS service using the ECSAllAtOnce traffic-shifting configuration, and execute the database schema migrations via a Lambda function triggered by the AfterAllowTraffic lifecycle hook.