A developer is using AWS CodeDeploy to manage deployments for a containerized application running on Amazon ECS (Fargate) behind an Application Load Balancer (ALB). The application requires zero downtime during updates. The developer needs to implement a deployment strategy where a new version is validated with exactly of production traffic for 15 minutes before shifting the remaining of traffic. Additionally, a database migration script must be executed automatically after the new task set is created but before it receives any production traffic. The deployment must automatically roll back immediately if the load balancer target group's HTTP 5xx errors spike during the validation window.
Which TWO actions should the developer take to meet these requirements?
- Use the CodeDeployDefault.ECSCanary10Percent15Minutes deployment configuration.Cevap
- Define an AWS Lambda function under the AfterInstall hook in the AppSpec file to execute the database migration script.Cevap
- CUse the CodeDeployDefault.ECSLinear10PercentEvery15Minutes deployment configuration.
- DDefine an AWS Lambda function under the ApplicationStart hook in the AppSpec file to execute the database migration script.
- EConfigure a CloudWatch Alarm monitoring the HTTPCode_Target_5XX_Count metric with a 15-minute period, and link it to the CodeDeploy deployment group's alarm configuration.