DOP-C02 Exam QuestionsBrowse all questions from this exam

DOP-C02 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?

Show Answer
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

9 comments
Sign in to comment
PrasannaBalaji
Dec 29, 2023

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.

thanhnv142Option: B
Feb 12, 2024

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.

JonalbOption: B
Mar 1, 2024

B is correct

c3518fcOption: B
Apr 25, 2024

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.

csG13Option: B
Dec 29, 2023

it's definitely B

a54b16fOption: B
Jan 12, 2024

order of 2 would create sequence order

DanShoneOption: B
Mar 16, 2024

B is correct

dkpOption: B
Apr 14, 2024

B is correct

GomerOption: C
Jul 5, 2024

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