An ECS service uses CodeDeploy blue/green deployments behind an Application Load Balancer. Automated integration tests must exercise the replacement task set through the load balancer and block production traffic shifting if they fail; which changes meet these requirements? (Choose two.)
Choose 2 answers
Show the answer
Correct answersA. Add a test listener to the deployment group's load balancer configuration.B. Use an AfterAllowTestTraffic hook to run tests and report their status to CodeDeploy.
AWhy this is right: A test listener provides a load balancer route to the replacement task set before production traffic shifts.
BWhy this is right: This lifecycle hook validates the replacement through test traffic and reports whether deployment may continue.
CWhy not this: ECS blue/green deployments are managed through ECS and CodeDeploy integration, not agents inside application containers.
DWhy not this: Forwarding production traffic to both target groups exposes the replacement task set before validation succeeds.
A test listener routes test requests to the replacement task set without shifting production traffic. An AfterAllowTestTraffic hook runs validation and reports success or failure to CodeDeploy; forwarding production traffic to both target groups would expose the unvalidated replacement.