nerdexam
Microsoft

AZ-400 · Question #558

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 B. No. Option B (No) is correct because the solution as presented does not fully satisfy all the stated requirements - most likely because the YAML definition shown either lacks the proper dependsOn configuration, missing condition: always() for the Publish_Test_Results stage, or doesn'

Submitted by daniela_cl· Mar 6, 2026Design and implement build and release pipelines

Question

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 have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it As a result these questions will not appear in the review screen. You need to use an Azure Pipelines pipeline to build and test an app and test the database of the app. The solution must meet the following requirements. - The test stages must be run in parallel. - The Publish_Test_Results stage must always be run. - The test stages must be run after successful completion of the build stage. - The Publish_Test_Results stage must be run after completion of all the test stages. Solution: You include the following elements in the YAML definition of the pipeline. Does this meet the goal?

Exhibits

AZ-400 question #558 exhibit 1
AZ-400 question #558 exhibit 2

Options

  • AYes
  • BNo

How the community answered

(38 responses)
  • A
    21% (8)
  • B
    79% (30)

Explanation

Option B (No) is correct because the solution as presented does not fully satisfy all the stated requirements - most likely because the YAML definition shown either lacks the proper dependsOn configuration, missing condition: always() for the Publish_Test_Results stage, or doesn't correctly configure parallel execution using independent dependsOn references to the build stage for both test stages.

To meet the goals, each test stage must explicitly declare dependsOn: Build_Stage (so they run in parallel after the build), and Publish_Test_Results must declare dependsOn on both test stages with condition: always() to ensure it runs regardless of test stage outcomes.

Why Option A is wrong: "Yes" would only be correct if the YAML included all four elements correctly: parallel test stages both depending on the build stage, and Publish_Test_Results depending on all test stages with an always() condition - which the proposed solution fails to fully implement.

Memory Tip: Remember the acronym PPAD - Parallel tests, Post-build dependency, Always-run publish, DependsOn chaining. If any of these four elements is missing or misconfigured in the YAML, the answer is No.

Topics

#Azure Pipelines#YAML Pipelines#Stage Dependencies#Parallel Execution#Pipeline Conditions

Community Discussion

No community discussion yet for this question.

Full AZ-400 Practice