Resilient Cloud Solutions

An Amazon ECS service behind an Application Load Balancer needs automated integration tests against replacement tasks before any production traffic reaches them. Which deployment configuration BEST supports testing through the load balancer and blocking production cutover if tests fail?

Show the answer

Correct answerB. CodeDeploy blue/green deployment with a test listener and lifecycle hook

AWhy not this: A grace period delays health-based reactions; it does not provide test routing or integration-test approval.

BWhy this is right: The test listener reaches replacement tasks, and a validation lifecycle hook can prevent production cutover when tests fail.

CWhy not this: A production-listener alarm evaluates production behavior rather than validating replacement tasks before production traffic arrives.

DWhy not this: A circuit breaker detects deployment failures but does not provide isolated load balancer routing for preproduction integration tests.

A CodeDeploy test listener routes test traffic to replacement tasks, and a lifecycle hook can run validation before production cutover. A deployment circuit breaker detects startup and health failures but does not provide this preproduction integration-test workflow.