AZ-400 · Question #559
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might h
The correct answer is A. Yes. Option A (Yes) is correct because the YAML definition includes the necessary configuration to satisfy all stated requirements: parallel test stages using dependsOn pointing to the build stage (causing them to run simultaneously after build completes), and the Publish_Test_Results
Question
Options
- AYes
- BNo
How the community answered
(31 responses)- A84% (26)
- B16% (5)
Explanation
Option A (Yes) is correct because the YAML definition includes the necessary configuration to satisfy all stated requirements: parallel test stages using dependsOn pointing to the build stage (causing them to run simultaneously after build completes), and the Publish_Test_Results stage configured with dependsOn referencing both test stages plus condition: always() to ensure it always runs regardless of test outcomes.
There are no distractors here since this is a Yes/No question, but "No" would be incorrect because the YAML structure properly implements all four requirements - parallel execution, always-run publishing, post-build test execution, and post-test publishing - without any configuration gaps or contradictions.
Memory Tip: Remember the three key YAML ingredients for this pattern: (1) use dependsOn: [BuildStage] on both test stages to make them run in parallel after the build, (2) use dependsOn: [TestStage1, TestStage2] on the publish stage to wait for all tests, and (3) add condition: always() to the publish stage to ensure it runs even if tests fail - think "Depend, Wait, Always."
Topics
Community Discussion
No community discussion yet for this question.