Ultimate access to all questions.
A company has developed an application that utilizes AWS Lambda functions to execute Python code, which is managed within an AWS CodeCommit repository. Recently, the production environment has encountered issues due to errors in the Python code. To mitigate such issues, unit tests have been created for the Lambda functions. The DevOps team is tasked with integrating these unit tests into the existing AWS CodePipeline pipeline and ensuring that detailed test reports are generated for review. What solution should the DevOps team implement to successfully integrate the unit tests and produce the required test reports?
Explanation:
The correct answer is B. This solution involves creating a new AWS CodeBuild project and configuring it within an existing AWS CodePipeline pipeline. The key aspects are: creating a CodeBuild report group, updating the buildspec.yml file in the CodeCommit repository to define unit test actions with an output format of JUNITXML, and ensuring that test reports are uploaded to the CodeBuild report group. This approach ensures that the unit tests are executed as part of the pipeline and that comprehensive reports are available for review.