Testing and Deployment

Within one CodePipeline stage, unit tests and security tests must run concurrently, and deployment must wait for both to succeed. How should the developer configure action runOrder values?

Show the answer

Correct answerA. Unit tests: 1; security tests: 1; deployment: 2

AWhy this is right: The tests share a runOrder, and deployment waits at the next runOrder until both succeed.

BWhy not this: The deployment runs before either test because it has the lowest runOrder.

CWhy not this: Different runOrder values make the tests sequential rather than concurrent.

DWhy not this: All actions can start concurrently, so deployment does not wait for the tests.

Actions with the same runOrder can run concurrently within a stage. A higher runOrder waits for lower-order actions to succeed; assigning successive values to the tests would run them sequentially.