nerdexam
Microsoft

AZ-400 · Question #562

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might h

The correct answer is B. No. Explanation Option B (No) is correct because the solution presented fails to properly meet both requirements simultaneously - it either incorrectly configures the path filter (missing the /webapp folder trigger), incorrectly sets up the PR trigger, or uses an incompatible combina

Submitted by ravi_2018· Mar 6, 2026Design and implement build and release pipelines

Question

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You use an Azure Pipelines pipeline to build and release web apps. You need to configure the pipeline to meet the following requirements: - Only run when there is a change in the /webapp folder. - Only run when a pr is created. Solution: You configure the pipeline definition by using the following elements. Does this meet the goal?

Exhibits

AZ-400 question #562 exhibit 1
AZ-400 question #562 exhibit 2

Options

  • AYes
  • BNo

How the community answered

(45 responses)
  • A
    20% (9)
  • B
    80% (36)

Explanation

Explanation

Option B (No) is correct because the solution presented fails to properly meet both requirements simultaneously - it either incorrectly configures the path filter (missing the /webapp folder trigger), incorrectly sets up the PR trigger, or uses an incompatible combination of trigger types that doesn't restrict pipeline execution as specified.

To meet both goals, the pipeline YAML must include a pr trigger (not a trigger for CI) combined with a paths filter pointing to the /webapp folder, structured like:

pr:
  branches:
    include:
      - '*'
  paths:
    include:
      - /webapp

Option A (Yes) is incorrect because the proposed solution is incomplete or misconfigured - for example, using a trigger block instead of pr, or omitting the paths section entirely, meaning not both conditions are enforced.

Memory Tip: Remember the key pairing - pr: controls when (pull request only) and paths: include: controls where (specific folder). If either piece is wrong or missing in the solution shown, the answer is always No.

Topics

#Azure Pipelines#YAML Pipelines#PR Triggers#Path Filtering

Community Discussion

No community discussion yet for this question.

Full AZ-400 Practice