DOP-C02 SDLC automation

Which are REQUIRED to perform an ECS blue/green deployment with CodeDeploy? (Choose TWO)

Choose two.

Show answer and explanation

Answer: A and B

In a CodeDeploy ECS blue/green deployment, the listener serves the production target group and traffic is shifted to the test (green) target group, so an Application or Network Load Balancer with two target groups is mandatory. The AppSpec must also name the TaskDefinition to deploy plus the ContainerName and ContainerPort that identify where the target groups register tasks.

Why the other options are wrong

  • C. Auto Scaling groups and their lifecycle hooks belong to EC2 and on-premises deployments; ECS blue/green never touches an ASG.
  • D. Route 53 weighted records play no role: traffic shifting happens between load balancer target groups, not DNS.
  • E. The deployment circuit breaker is part of ECS's own rolling-update mechanism, not a CodeDeploy blue/green requirement.

Keep going. 100 DOP-C02 questions, answers explained after each one.

Practise SDLC automation

Reviewed November 2026. Spotted a problem with this question? Report it from the practice tool.