Topic: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 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?

A.
Modify the build stage. Add a test action that has a runOrder value of 1. Use AWS CodeDeploy as the action provider to run unit tests.
B.
Modify the build stage. Add a test action that has a runOrder value of 2. Use AWS CodeBuild as the action provider to run unit tests.
C.
Modify the deploy stage. Add a test action that has a runOrder value of 1. Use AWS CodeDeploy as the action provider to run unit tests.
D.
Modify the deploy stage. Add a test action that has a runOrder value of 2. Use AWS CodeBuild as the action provider to run unit tests.

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 192

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.

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 192

B is correct

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 192

B is correct

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 192

B is correct

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 192

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.

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 192

order of 2 would create sequence order

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 192

it's definitely B

Re: AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 192

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.