🔥 40% Off Crucial Exams Memberships — This Week Only

3 days, 13 hours remaining!

Microsoft DevOps Engineer Expert AZ-400 Practice Question

Your Azure DevOps project contains a single-stage YAML pipeline that is triggered by every push to the main branch. During periods of high activity, developers often push several commits within a few minutes, leading to multiple runs being queued and unnecessary consumption of Microsoft-hosted agents. You must ensure that no more than one run of this pipeline executes at any time and that any in-progress or queued run is automatically cancelled when a newer commit is detected, thereby reducing agent usage charges and queue length.

Which YAML modification should you implement to meet this requirement?

  • Enable batching by adding batch: true to the continuous-integration trigger.

  • Add a root-level concurrency block that specifies a shared group name and sets cancelInProgress to true.

  • Configure the pool section with demands that set minimumParallelJobs to 1.

  • Define a retention policy with minimumRuns: 1 and days: 0 to keep only the latest successful run.

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