Microsoft DevOps Engineer Expert AZ-400 Practice Question

You are defining an Azure Pipelines YAML stage that contains three jobs:

  • UnitTests
  • ApiTests
  • PublishArtifacts The two test jobs must run concurrently to shorten execution time. The PublishArtifacts job must start only after both tests have finished successfully, and you do not want to serialize the test jobs or move them to a different stage. Which YAML configuration should you add to the PublishArtifacts job to meet these requirements?
  • Add the line dependsOn: [UnitTests, ApiTests] to the PublishArtifacts job and leave the two test jobs without dependencies.

  • Set strategy: parallel with maxParallel: 2 at the stage level to control job concurrency and ordering.

  • Add the line condition: succeeded() to the PublishArtifacts job and omit the dependsOn property.

  • Move PublishArtifacts to its own stage and set a stage-level dependsOn for the test stage.

Microsoft DevOps Engineer Expert AZ-400
Design and implement build and release pipelines
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot