Microsoft Certified: DevOps Engineer ExpertDesign and implement source controlMedium

A development team is using Azure DevOps and has several build pipelines. They want to ensure that all pipelines consistently use the same set of approved tools and versions (e.g., specific Node.js version, .NET SDK). They also want to centralize the definition of common build steps to promote reusability and reduce duplication across pipelines. Which Azure DevOps feature should they primarily leverage?

  1. AVariable groups
  2. BTask groups
  3. CAgent pools
  4. DDeployment groups
Show answer & explanation

Correct answer: B. Task groups

Task groups allow you to encapsulate a sequence of tasks into a single reusable unit. This enables teams to define a common set of build steps, including tool installations and configurations, and reuse them across multiple pipelines, ensuring consistency and reducing maintenance.

Why the other options are wrong

  • A. Variable groups store common variables, not sequences of tasks or tool definitions.
  • C. Agent pools organize build agents but do not define the specific build steps or tool versions used within a pipeline.
  • D. Deployment groups manage target machines for deployments, not build process consistency.

Azure DevOps Task Groups

A feature in Azure DevOps that allows you to combine a sequence of tasks into a single reusable task, promoting consistency and reusability across pipelines.

  • Encapsulates multiple tasks into one.
  • Reduces duplication and simplifies pipeline maintenance.
  • Can include input parameters for flexibility.

Memory trick: Group common tasks together to make them reusable like LEGOs.

More Design and implement source control questions