
Answer-first summary for fast verification
Answer: Place test integration pre-deployment in the pipeline with AWS CodeBuild, automating build failure on test failure and providing a console view of results.
The correct answer is C. This solution involves adding a new stage to the pipeline using AWS CodeBuild as the provider, before the stage that deploys code revisions to the test environment. This approach ensures that only tested code is deployed. By configuring the buildspec to fail the CodeBuild stage if any test does not pass, it automates the failure process, thus reducing operational effort. The test reports feature of CodeBuild allows integration of the reports with the CodeBuild console, making it easy to view and analyze test results. This is the most efficient and integrated approach to meet the requirement with the least operational effort.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
In an AWS CodePipeline CI/CD setup for a web application, which method integrates unit tests with the least operational effort?
A
Implement a Git pre-commit hook for test execution, requiring local installation by developers and pre-push review of test reports.
B
Integrate tests post-deployment in the pipeline using AWS CodeBuild, with build failure on test failure and console integration for results.
C
Place test integration pre-deployment in the pipeline with AWS CodeBuild, automating build failure on test failure and providing a console view of results.
D
Utilize Jenkins for test execution in a new pipeline stage, with a Jenkinsfile to control build failure on test failure and dashboard integration for reporting.
No comments yet.