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?
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
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
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.
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.
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
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.
Sign in to join the discussion.