Question 404 of 928
Design and implement build and release pipelineshardMultiple ChoiceObjective-mapped

YAML Trigger with Path Filter

This AZ-400 practice question tests your understanding of design and implement build and release pipelines. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. A key principle to apply: path filter. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

Exhibit

Refer to the exhibit.
```yaml
trigger:
  branches:
    include:
    - main
    - release/*
  paths:
    include:
    - src/app/*
```

You have a pipeline with the above YAML trigger configuration. A developer pushes changes to a file in 'src/app/config.json' on a branch named 'release/v1'. Which statement is true about the build trigger?

Exhibit

Refer to the exhibit.
```yaml
trigger:
  branches:
    include:
    - main
    - release/*
  paths:
    include:
    - src/app/*
```

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

The build will be triggered.

The stem indicates a YAML trigger configuration is provided, though not displayed here. Based on the options, the trigger includes a path filter that matches 'src/app/**' or similar. The push to 'src/app/config.json' matches that include pattern, so the build triggers. No branch filter is specified, so the trigger applies to all branches including 'release/v1'. Therefore, option B is correct.

Key principle: Path filter

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • The build will be triggered but only if no other builds are running.

    Why it's wrong here

    No such condition exists.

  • The build will be triggered.

    Why this is correct

    Both branch and path conditions are satisfied.

    Related concept

    Path filter

  • The build will not be triggered because the path filter is too restrictive.

    Why it's wrong here

    The path is included.

  • The build will not be triggered because the branch is not 'main'.

    Why it's wrong here

    'release/*' is included.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Candidates often think that path filters implicitly restrict branches, but without an explicit branch filter, the trigger applies to all branches. Also, the missing exhibit may cause confusion about the actual path filter.

Detailed technical explanation

How to think about this question

In Azure Pipelines YAML triggers, path filters use glob patterns and are evaluated against the file paths in the push. The pattern 'src/app/*' matches any file directly under 'src/app/', including 'config.json'. If no branch filters are specified, the trigger applies to all branches, which is a common source of confusion; branch filters must be explicitly set to restrict triggers to specific branches like 'main'.

KKey Concepts to Remember

  • Path filter
  • Branch filter

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Path filter

Real-world example

How this comes up in practice

A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Path filter Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.

Visual reference

Client DHCP Server 1 Discover (broadcast) 2 Offer (IP: 192.168.1.10) 3 Request (I accept) 4 Acknowledge (lease confirmed) DORA — the four-step DHCP lease process

What to study next

Got this wrong? Here's your next step.

Review path filter, then practise related AZ-400 questions on the same topic to reinforce the concept.

Related practice questions

Related AZ-400 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free AZ-400 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this AZ-400 question test?

Design and implement build and release pipelines — This question tests Design and implement build and release pipelines — Path filter.

What is the correct answer to this question?

The correct answer is: The build will be triggered. — The stem indicates a YAML trigger configuration is provided, though not displayed here. Based on the options, the trigger includes a path filter that matches 'src/app/**' or similar. The push to 'src/app/config.json' matches that include pattern, so the build triggers. No branch filter is specified, so the trigger applies to all branches including 'release/v1'. Therefore, option B is correct.

What should I do if I get this AZ-400 question wrong?

Review path filter, then practise related AZ-400 questions on the same topic to reinforce the concept.

What is the key concept behind this question?

Path filter

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Keep practising

More AZ-400 practice questions

Last reviewed: Jul 4, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This AZ-400 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-400 exam.