Exam DOP-C02 All QuestionsBrowse all questions from this exam
Question 192

A software team is using AWS CodePipeline to automate its Java application release pipeline. The pipeline consists of a source stage, then a build stage, and then a deploy stage. Each stage contains a single action that has a runOrder value of 1.

The team wants to integrate unit tests into the existing release pipeline. The team needs a solution that deploys only the code changes that pass all unit tests.

Which solution will meet these requirements?

    Correct Answer: B

    To integrate unit tests into the existing release pipeline and ensure that only the code changes that pass all unit tests are deployed, the test action needs to be added in the build stage after the build action is completed. This can be achieved by modifying the build stage and adding a test action with a runOrder value of 2, using AWS CodeBuild as the action provider. This configuration will ensure that the unit tests are executed only after the build stage is successful, verifying the build artifacts before proceeding to the deploy stage.

Discussion
c3518fcOption: B

By modifying the build stage, adding a test action with a runOrder value of 2, and using AWS CodeBuild as the action provider to run unit tests, the solution ensures that unit tests are executed as part of the build process and that only the code changes that pass all unit tests are deployed, meeting the requirements of the software team.

JonalbOption: B

B is correct

thanhnv142Option: B

B is correct: Runorder value of 2 ensure that we do unit tests after we build artifacts. A: The unit tests would run in parellel with the build step, which is incorrect. We can only test after we have done building C and D: The unit tests would not run before the deploy step.

PrasannaBalaji

Option B - The runOrder value of 2 ensures that the test action runs after the build action, allowing the unit tests to be executed only if the build is successful.

dkpOption: B

B is correct

DanShoneOption: B

B is correct

a54b16fOption: B

order of 2 would create sequence order

csG13Option: B

it's definitely B

GomerOption: C

C: (YES) aws:SecureTransport = data in transit (TLS/HTTPS) D: (NO) ...server-side-encryption-aws... = data at rest (in S3)