AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 232
A DevOps engineer is setting up an Amazon Elastic Container Service (Amazon ECS) blue/green deployment for an application by using AWS CodeDeploy and AWS CloudFormation. During the deployment window, the application must be highly available and CodeDeploy must shift 10% of traffic to a new version of the application every minute until all traffic is shifted.
Which configuration should the DevOps engineer add in the CloudFormation template to meet these requirements?
Answer options
- A. Add an AppSpec file with the CodeDeployDefault.ECSLinearl OPercentEveryl Minutes deployment configuration.
- B. Add the AWS::CodeDeployBlueGreen transform and the AWS::CodeDeploy::BlueGreen hook parameter with the CodeDeployDefault.ECSLinear10PercentEvery1Minutes deployment configuration.
- C. Add an AppSpec file with the ECSCanary10Percent5Minutes deployment configuration.
- D. Add the AWS::CodeDeployBlueGreen transform and the AWS::CodeDepioy::BlueGreen hook parameter with the ECSCanary10Percent5Minutes deployment configuration.
Correct answer: B
Explanation
The correct answer is B because it specifies the necessary AWS transforms and parameters that support the blue/green deployment with the required traffic shifting configuration. Option A lacks the transform and uses the wrong deployment configuration, while Options C and D do not meet the specified traffic shifting rate of 10% per minute.