🔥 40% Off Crucial Exams Memberships — This Week Only

3 days, 13 hours remaining!

Microsoft DevOps Engineer Expert AZ-400 Practice Question

You are defining a multi-stage Azure Pipelines YAML file. The production stage contains two deployment jobs named Deploy-Database and Deploy-WebApp. The WebApp deployment must not begin until the database deployment completes successfully, but both jobs must remain in the same stage so they share the same environment approval. Which YAML approach will reliably enforce the required execution order?

  • Set timeoutInMinutes: 0 on Deploy-WebApp and use a script task to poll the database deployment status before continuing.

  • Define Deploy-Database as a deployment job and Deploy-WebApp as a regular job because deployment jobs automatically run first.

  • Merge the database and web app tasks into one job, counting on task order within that job to control sequencing.

  • Configure the Deploy-WebApp job with dependsOn: Deploy-Database and leave the default succeeded() condition in place.

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