exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 9 question 49 discussion

Actual exam question from Microsoft's AZ-400
Question #: 49
Topic #: 9
[All AZ-400 Questions]

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?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
MrAZ105
Highly Voted 6 months ago
Answer is B trigger: paths: include: - webapp/** pr: paths: include: - webapp/**
upvoted 5 times
exactly to triggers for change in webapp/** , is include
upvoted 1 times
...
...
wahabajasco
Most Recent 2 months, 3 weeks ago
Selected Answer: B
Answer is B. The trigger keyword in Azure Pipelines is used to specify which branches will trigger a build when changes are pushed. However, it does not support filtering by pull requests directly. Instead, you should use the pr trigger for pull requests and paths for path filters. i.e: pr: paths: include: - webapp/ https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/pr?view=azure-pipelines#pr-autocancel-branches-paths-drafts
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago