Question 160
During a resilience and compliance assessment at a public services agency, the DevOps team discovers that a deployment failure is declared only after all new instances are already serving production traffic. The affected workload supports citizen identity and digital service access; service disruption can affect statutory service commitments. Which automation approach BEST satisfies this operational requirement?
Explanation
Correct Answer
Correct. Use AWS CodeDeploy blue/green deployment with monitored health checks and CloudWatch alarms to stop or roll back a defective EC2 or ECS release. The reported condition is that a deployment failure is declared only after all new instances are already serving production traffic. The design addresses the corresponding exposure: An unhealthy replacement fleet can receive full traffic without a controlled reversal path. Its effectiveness must be demonstrated by this result: Inject a failing health signal during a canary release and verify CodeDeploy halts or rolls back traffic to the last healthy version.
Incorrect Answers
Use a pipeline with delegated cross-account IAM roles and an artifact store whose encryption keys permit the destination account to retrieve approved artifacts. The configuration must instead establish codedeploy blue-green rollback controls.
Configure source integration and revision-specific event triggers so the pipeline deploys the exact approved commit and records its immutable revision identifier. The codedeploy blue-green rollback controls prerequisite remains unaddressed.
Use ECS with CodeDeploy deployment controller and two appropriately configured target groups to validate replacement tasks before shifting load balancer traffic. It changes a different feature than codedeploy blue-green rollback controls.