An application running on Amazon ECS (Fargate) is configured to use AWS CodeDeploy for blue/green deployments. The application resides behind an Application Load Balancer (ALB). The developer needs to configure the deployment pipeline to meet the following requirements:
* The deployment must begin by routing exactly of production traffic to the new task set (replacement task set), and then route the remaining of traffic after exactly minutes if the deployment remains stable.
* Before any production traffic is routed to the new task set, an automated test suite must run via an AWS Lambda function to validate the deployment's health.
* The deployment must automatically roll back if a specified Amazon CloudWatch alarm is triggered during the -minute baking period.
Which TWO configurations must the developer implement to satisfy these requirements?
- Set the deployment configuration in the CodeDeploy deployment group to CodeDeployDefault.ECSCanary10Min10Percent.Cevap
- In the AppSpec file, define the validation Lambda function under the BeforeAllowTraffic lifecycle hook.Cevap
- CSet the deployment configuration in the CodeDeploy deployment group to CodeDeployDefault.ECSLinear10PercentEvery10Minutes.
- DIn the AppSpec file, configure the validation Lambda function to run under the ValidateService lifecycle hook.
- EIn the AppSpec file, configure the validation Lambda function to run under the AfterAllowTraffic lifecycle hook.