AmazonAmazon
DOP-C02 · Question #440
DOP-C02 Question #440: Real Exam Question with Answer & Explanation
Sign in or unlock DOP-C02 to reveal the answer and full explanation for question #440. The question stem and answer options stay visible for context.
Submitted by eva_at· Mar 6, 2026SDLC Automation
Question
A company uses AWS CDK and CodePipeline with CodeBuild to deploy applications. The company wants to enforce unit tests before deployment; deployment proceeds only if tests pass. Which steps enforce this? (Select TWO.)
Options
- AUpdate CodeBuild build commands to run tests then deploy, set OnFailure to ABORT.
- BUpdate CodeBuild commands to run tests then deploy, add --rollback true to cdk deploy.
- CUpdate CodeBuild commands to run tests then deploy, add --require-approval any-change flag.
- DCreate tests with AWS CDK assertions module, using template.hasResourceProperties
- ECreate tests that use cdk diff and fail if any resource changes are detected.
Unlock DOP-C02 to see the answer
You've previewed enough free DOP-C02 questions. Unlock DOP-C02 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#CodeBuild#Unit testing#AWS CDK#CI/CD pipeline