Practice free →
HomeAWS DevOps Procloudcomputingdopsdlc › An architect must run unit tests, integration te…

An architect must run unit tests, integration tests, and security scans automatically when a pull request opens — failing the PR if any stage fails. Which DOP-C02 pattern fits?

ADisabling tests when they fail
BCodeBuild triggered by CodePipeline source-action or by webhook on PR open, with the build result gating the merge
CSkipping tests for 'urgent' PRs
DManual quarterly testing
Answer & Solution
Correct answer: B. CodeBuild triggered by CodePipeline source-action or by webhook on PR open, with the build result gating the merge
CodeBuild + webhook-on-PR is the standard pattern (per DOP-C02 §1.2). The other options defeat the point of CI gates.
Solve this in the app — AWS DevOps Pro practice & 24k+ MCQs →
Related questions