Amazon Web Services AWS Certified DevOps Engineer - Professional DOP-C02 Question # 74 Topic 8 Discussion
DOP-C02 Exam Topic 8 Question 74 Discussion:
Question #: 74
Topic #: 8
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.)
A.
Update CodeBuild build commands to run tests then deploy, set OnFailure to ABORT.
B.
Update CodeBuild commands to run tests then deploy, add --rollback true to cdk deploy.
C.
Update CodeBuild commands to run tests then deploy, add --require-approval any-change flag.
D.
Create tests with AWS CDK assertions module, using template.hasResourceProperties assertions.
E.
Create tests that use cdk diff and fail if any resource changes are detected.
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit