Microsoft DevOps Engineer Expert AZ-400 Practice Question

You maintain several Azure Pipelines that run nightly integration tests against six different database versions. The tests are defined in a single YAML job that uses a matrix strategy, so six parallel Microsoft-hosted agents start each time the pipeline runs. Management wants to keep the test coverage unchanged but limit the number of simultaneously billed Microsoft-hosted jobs to two in order to lower costs. Which YAML change should you implement to meet the requirement?

  • Add the setting "maxParallel: 2" under the job's matrix strategy.

  • Insert "dependsOn" references so each matrix job waits for the previous job to finish.

  • Change the pool definition from Microsoft-hosted to self-hosted agents.

  • Configure a condition that runs the job only when the variable Agent.JobServerParallelism equals 2.

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