Microsoft Certified: DevOps Engineer ExpertDesign and implement source controlEasy

A development team is using Azure DevOps for their source control and build pipelines. They have multiple build pipelines that share common steps, such as compiling code, running unit tests, and publishing artifacts. They want to ensure consistency and reusability of these common steps across all pipelines. Which Azure DevOps feature should they use to achieve this?

  1. ADeployment Groups
  2. BTask Groups
  3. CService Connections
  4. DVariable 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 promotes consistency and reusability across multiple build or release pipelines.

Why the other options are wrong

  • A. Deployment Groups are used for agent-less deployments to target machines, not for sharing build steps.
  • C. Service Connections define connections to external services, not reusable task sequences.
  • D. Variable Groups store reusable sets of variables, not sequences of tasks.

Azure DevOps Task Groups

A feature in Azure DevOps that allows encapsulating a sequence of tasks into a single reusable unit, promoting consistency and reusability across pipelines.

  • Encapsulates multiple tasks
  • Reusable across build and release pipelines
  • Promotes consistency and reduces duplication

Memory trick: Think of a task group as a pre-packaged lunchbox for your pipelines, always the same healthy meal.

More Design and implement source control questions