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
- A. Add a human review and approval stage between Stage 3 and Stage 4.
- B. Perform a more comprehensive test before Stage 2 by adding a test for the CodeCommit trigger in Stage 1.
- C. Replace Stage 4 with a manual deployment until the developer can add more quality tests to the automation.
- D. Modify Stage 3 so that it uses Amazon ECS and CodeDeploy.
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.