Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Create reusable pipeline elements, including YAML templates, task groups, variables, and variable groups

A worked example

Single answer

A team maintains several Classic release pipelines that must remain Classic. Each pipeline runs the same deployment task sequence. The team needs to maintain that sequence centrally and have saved corrections reach its consumers without editing each pipeline. Updates will be saved to the reusable component version that the pipelines already reference.

Which reusable element should the team create?

Choose one answer
Why

A task group packages the repeated deployment tasks into one reusable component. Saving corrections to the group version already used by the pipelines lets those consumers receive the changes without individual pipeline edits.

  • Not correct: A project variable group. The source describes variable groups as a way to share configuration values across pipelines in a project. Sharing values does not encapsulate the deployment tasks that require centralized maintenance.
  • Not correct: A release stage variable. The source describes stage variables as values available within an individual stage. Such a variable does not package or centrally maintain a sequence of deployment tasks.
  • Not correct: A YAML step template. A YAML step template reuses steps in YAML pipelines, while these release pipelines must remain Classic. A task group is the reusable task-sequence component described by the source for this Classic pipeline requirement.
  • Correct: A Classic task group. The source describes task groups as reusable collections of tasks whose central modifications propagate to consuming pipelines. Saving changes to the version already referenced satisfies the update requirement.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free