AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 136

A company has an application that includes AWS Lambda functions. The Lambda functions run Python code that is stored in an AWS CodeCommit repository. The company has recently experienced failures in the production environment because of an error in the Python code. An engineer has written unit tests for the Lambda functions to help avoid releasing any future defects into the production environment.

The company's DevOps team needs to implement a solution to integrate the unit tests into an existing AWS CodePipeline pipeline. The solution must produce reports about the unit tests for the company to view.

Which solution will meet these requirements?

Answer options

Correct answer: B

Explanation

Option B is correct as it outlines creating a new AWS CodeBuild project and configuring a test stage in the AWS CodePipeline to run unit tests, producing reports in JUNITXML format, which can be uploaded to a CodeBuild report group. The other options either involve incorrect report formats or unnecessary services that do not align with the requirement of generating unit test reports.