AWS Certified Developer – Associate — Question 354
A company is automating a process and is moving the process from on premises to AWS. The company is using an AWS CodePipeline pipeline.
Before publishing the code, the company wants to create and implement test suites when the pipeline is running. The pipeline should publish the code only after the pipeline passes all the checks.
Which solution will implement this functionality with the LEAST operational overhead?
Answer options
- A. Create a custom test action for CodePipeline. Host the job worker on the on-premises server.
- B. Use AWS CodeBuild and include the test checks. When the test checks clear, use AWS CodeDeploy to deploy and publish the code.
- C. Create a custom test action for CodePipeline. Host the job worker on an Amazon EC2 instance to run the testing request.
- D. Write test cases. Test the test cases locally before pushing the code changes to the version control.
Correct answer: B
Explanation
AWS CodeBuild natively integrates with AWS CodePipeline to run test suites as a fully managed service, which minimizes operational overhead compared to managing custom job workers. Creating custom actions and hosting job workers on-premises or on Amazon EC2 instances introduces unnecessary administrative burden. Relying on local testing does not automate the validation process within the centralized CI/CD pipeline.