Question: 1/50
A team uses AWS CodePipeline and wants every pull request to run unit tests and create a review environment automatically. The team also needs approvals before merging to main. Which solution best meets these requirements with the least custom code?
Use CodePipeline with a source action from the main branch only and require manual approval before the build stage
Use AWS CodeBuild webhooks for pull request events, run tests in CodeBuild, and deploy a temporary environment with AWS CloudFormation; enforce approvals using pull request approvals in the repository
Use AWS Step Functions to poll the repository for new branches and trigger CodeBuild; require approvals using Step Functions callbacks
Use Amazon EventBridge to detect new CodeCommit branches and trigger CodeDeploy to a shared staging environment; require approvals in CodeDeploy