AWS Certified Developer – Associate (DVA-C02) — Question 147

A team of developers is using an AWS CodePipeline pipeline as a continuous integration and continuous delivery (CI/CD) mechanism for a web application. A developer has written unit tests to programmatically test the functionality of the application code. The unit tests produce a test report that shows the results of each individual check. The developer now wants to run these tests automatically during the CI/CD process.

Which solution will meet this requirement with the LEAST operational effort?

Answer options

Correct answer: C

Explanation

Option C is the best solution because it integrates the unit tests directly into the pipeline before the deployment stage, ensuring that any issues are caught early in the process. This minimizes operational effort by automating the testing without requiring additional setups for developers as seen in Option A. Options B and D place the tests after deployment, which is less efficient, and Option D introduces unnecessary complexity by using Jenkins instead of CodeBuild.