Microsoft Certified: DevOps Engineer ExpertDesign and implement pipelinesEasy

A DevOps team is managing release pipelines in Azure DevOps. They have identified several common tasks, such as 'Azure Key Vault Secret Download' and 'Azure App Service Slot Swap', that are frequently reused across multiple release pipelines. The team wants to standardize these tasks and ensure that any updates to their logic are automatically reflected across all pipelines. Which feature should the team use to achieve this?

  1. AYAML Templates
  2. BPowerShell Scripts in a shared repository
  3. CCustom Azure DevOps Extensions
  4. DTask Groups
Show answer & explanation

Correct answer: D. Task Groups

Task Groups in Azure DevOps allow you to encapsulate a sequence of tasks into a single reusable unit. When a Task Group is updated, all release pipelines using that Task Group automatically get the updated logic, ensuring standardization and consistency.

Why the other options are wrong

  • A. YAML templates are for reusing pipeline structures in YAML pipelines, but Task Groups are specifically designed for grouping tasks in classic release pipelines and offer automatic updates.
  • B. PowerShell scripts require manual updating in each pipeline or a separate mechanism to ensure all pipelines use the latest version, lacking automatic propagation.
  • C. Custom extensions are for adding new task types, not for grouping existing tasks for reuse.

Task Groups (Azure DevOps)

A feature in Azure DevOps that allows you to encapsulate a sequence of tasks into a single reusable unit, simplifying pipeline management and ensuring consistency.

  • Reusable across multiple build and release pipelines.
  • Updates to a Task Group are automatically reflected in all pipelines using it.
  • Reduces duplication and promotes standardization of pipeline steps.

Memory trick: Tasks grouped, changes ripple through all pipelines.

More Design and implement pipelines questions