nerdexam
Microsoft

AZ-400 · Question #563

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. Option B (No) is correct because the solution presented does not properly meet both stated requirements simultaneously - typically, the pipeline definition shown either lacks the correct path filter (/webapp), is missing the proper PR trigger configuration, or uses an incorrect s

Submitted by miguelv· 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?

Options

  • AYes
  • BNo

How the community answered

(36 responses)
  • A
    44% (16)
  • B
    56% (20)

Explanation

Option B (No) is correct because the solution presented does not properly meet both stated requirements simultaneously - typically, the pipeline definition shown either lacks the correct path filter (/webapp), is missing the proper PR trigger configuration, or uses an incorrect syntax that doesn't satisfy both conditions together in Azure Pipelines YAML.

To meet the goals, you need a pr trigger that specifies both a paths filter targeting /webapp and the branch conditions, structured correctly in YAML like:

pr:
  paths:
    include:
      - webapp

Without both elements correctly configured together, the pipeline will not behave as required.

Why Option A (Yes) is wrong: The solution as presented is incomplete or incorrectly structured, meaning it would not reliably trigger only on PRs with changes in the /webapp folder - accepting it as correct would lead to misconfigured pipelines.

Memory Tip: Remember the "P-P Rule" - for PR-triggered pipelines with path filters, you need PR trigger + Path filter both correctly defined in the same block. If either is missing or misplaced in the YAML hierarchy, the trigger won't work as intended. Always verify that paths is nested under the pr: key, not under a separate trigger: key.

Topics

#Azure Pipelines#YAML Pipelines#Pull Request Triggers#Path Filters

Community Discussion

No community discussion yet for this question.

Full AZ-400 Practice