Microsoft DevOps Engineer Expert AZ-400 Practice Question

You are standardizing continuous-integration pipelines across several repositories. A dedicated repository named BuildTemplates contains a file templates/build.yml that defines the company-wide build stage. In each service repository you need to import that template from the main branch of BuildTemplates without copying the file locally.

Which YAML fragment meets the requirement?

  • extends: template: templates/build.yml@templates

  • resources: repositories:

    • repository: templates type: git name: BuildTemplates ref: refs/heads/main

    stages:

    • template: templates/build.yml
  • resources: repositories:

    • repository: templates type: git name: BuildTemplates ref: refs/heads/main

    stages:

    • template: templates/build.yml@templates
  • resources: repositories:

    • repository: templates type: git name: BuildTemplates ref: refs/heads/main

    stages:

    • template: templates/build.yml@BuildTemplates
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