Microsoft DevOps Engineer Expert AZ-400 Practice Question

You are creating an Azure Pipelines YAML file for a mono-repository that contains dozens of feature branches. Your goals are:

  1. A continuous integration (CI) build must trigger automatically for commits pushed directly to the main branch and any release/* branches.
  2. Commits pushed to feature branches must not start a CI build unless the branch is the source of a pull request (PR) that targets main or a release/* branch.
  3. If a developer's commit message contains the text "[skip ci]" or "[ci skip]", the build must be skipped.

Which YAML configuration satisfies all the requirements?

  • trigger:
      branches:
        include:
        - *
    
    pr: none
    
  • trigger: none
    
    pr:
      branches:
        include:
        - main
        - release/*
    
  • trigger:
      branches:
        include:
        - main
        - release/*
        - feature/*
    
    pr:
      branches:
        include:
        - main
        - release/*
    
  • trigger:
      branches:
        include:
        - main
        - release/*
    
    pr:
      branches:
        include:
        - main
        - release/*
    
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