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

A developer is working on a project that requires regular updates to a web application’s backend code. The code is stored in AWS CodeCommit. Company policy states that all code must have complete unit testing and that the test results must be available for access.

The developer needs to implement a solution that will take each change to the code repository, build the code, and run unit tests. The solution also must provide a detailed report of the test results.

Which solution will meet these requirements?

Answer options

Correct answer: C

Explanation

AWS CodeBuild is a fully managed build service that compiles source code, runs unit tests, and natively provides detailed test reporting directly within the console. AWS CodeDeploy is designed for deployment rather than building and testing, while Amazon CodeWhisperer is an AI code companion and not a build tool. AWS Lambda functions are not suited for compiling applications and storing test reports in Lambda layers, which are meant for sharing common code or libraries.