AWS Certified DevOps Engineer – Professional — Question 40

A company is using AWS to deploy an application. The development team must automate the deployments. The team has created an AWS CodePipeline pipeline to deploy the application to Amazon EC2 instances using AWS CodeDeploy after it has been built using AWS CodeBuild.
The team wants to add automated testing to the pipeline to confirm that the application is healthy before deploying the code to the EC2 instances. The team also requires a manual approval action before the application is deployed, even if the tests are successful. The testing and approval must be accomplished at the lowest costs, using the simplest management solution.
Which solution will meet these requirements?

Answer options

Correct answer: B

Explanation

Option B is correct as it effectively integrates a test action using CodeBuild after the build stage, allowing for automated testing before a manual approval step. This approach meets the requirements for cost-effectiveness and simplicity. Options A and D complicate the process by introducing unnecessary components like SNS and Jenkins, while Option C involves creating a new pipeline, which is not required and adds complexity.