AWS Certified Developer – Associate — Question 362

Deploy the image to the production Amazon Elastic Container Service (Amazon ECS) cluster by using AWS CodeDeploy.

Recently, the CodeDeploy deployments began failing in Stage 4. The deployments are unable to perform rollbacks. The developer must minimize the number of failures that reach production without slowing down the pipeline.

Which solution will meet these requirements?

Answer options

Correct answer: B

Explanation

Adding automated tests early in the pipeline, such as testing the CodeCommit trigger in Stage 1, helps catch defects before they reach later deployment stages without introducing manual bottlenecks. Introducing manual approvals or manual deployments (Options A and C) would slow down the pipeline, violating the requirement to maintain speed. Modifying Stage 3 to use Amazon ECS and CodeDeploy (Option D) does not address the root cause of the deployment failures or improve early detection.