Azure DevOps Engineer Question 28

KodeKloud
KodeKloudApr 9, 2026

Why It Matters

Skipping documentation‑only builds saves compute resources and accelerates feedback, directly impacting development velocity and cost efficiency.

Key Takeaways

  • Use `paths.exclude` in trigger to skip docs-only commits.
  • `variables` cannot control pipeline execution scope or triggering behavior.
  • Stages without path filters run on every repository change.
  • Manual triggers need human approval, lacking automatic path exclusions.
  • Excluding `.md` files cuts build time and resource waste.

Summary

The video explains how to configure an Azure DevOps pipeline so that it runs on every commit except when only documentation files, such as Markdown (*.md), are changed. The presenter walks through the AZ200 certification question, emphasizing the correct YAML syntax for path‑based exclusions.

The correct solution is to add a `paths.exclude` entry under the `trigger` section of the pipeline YAML. This tells Azure Pipelines to ignore commits that modify only the specified patterns. The alternatives—using variables, omitting filters on stages, or relying on manual triggers—are dismissed because variables do not affect trigger logic, stages without filters inherit the global trigger, and manual triggers require user interaction and cannot apply automatic path rules.

A key quote from the tutorial notes, “Azure Pipelines YAML supports `paths.exclude` filters in the trigger section to skip pipeline runs where only excluded paths, such as *.md, change,” underscores the practical benefit. The speaker also highlights that eliminating documentation‑only builds reduces unnecessary compute cycles and speeds up feedback for developers.

For teams adopting continuous integration, applying `paths.exclude` improves efficiency, lowers cloud costs, and keeps the build pipeline focused on code changes that truly impact the product. It also aligns with best practices for scaling DevOps workflows in large repositories.

Original Description

For the AZ-400 exam, the correct way to trigger a pipeline on every commit while skipping runs for documentation-only changes is to use path-based exclusions in your YAML trigger. Specifically, configuring paths: exclude: - '*.md' allows the pipeline to ignore commits where the only modifications are to Markdown files. Unlike Pipeline Variables or Pipeline Stages, which manage internal logic and execution flow, or Manual Triggers that bypass automation entirely, path filters are evaluated at the repository level to prevent unnecessary build noise. This standard Azure DevOps pattern ensures that computational resources are reserved for code-impacting changes rather than simple documentation updates.
#AZ400 #AzureDevOps #CICD #AzurePipelines #YAML #DevOps #Automation #TechTips #KodeKloud

Comments

Want to join the conversation?

Loading comments...