nerdexam
Microsoft

AZ-400 · Question #422

You have a GitHub repository that contains multiple versions of an Azure Pipelines template. You plan to deploy multiple pipelines that will use a template stored in the repository. You need to ensure

The correct answer is D. the branch. If you want to use a particular, fixed version of the template, be sure to pin to a ref. The refs are either branches (refs/heads/<name>) or tags (refs/tags/<name>). If you want to pin a specific commit, first create a tag pointing to that commit, then pin to that tag. https://le

Submitted by hassan_iq· Mar 6, 2026Design and implement build and release pipelines

Question

You have a GitHub repository that contains multiple versions of an Azure Pipelines template. You plan to deploy multiple pipelines that will use a template stored in the repository. You need to ensure that you use a fixed version of the template. What should you use to reference which version of the template repository to use?

Options

  • Athe serial
  • Bthe SHA-based hashes
  • Cthe runner
  • Dthe branch

How the community answered

(58 responses)
  • A
    2% (1)
  • B
    5% (3)
  • C
    9% (5)
  • D
    84% (49)

Explanation

If you want to use a particular, fixed version of the template, be sure to pin to a ref. The refs are either branches (refs/heads/<name>) or tags (refs/tags/<name>). If you want to pin a specific commit, first create a tag pointing to that commit, then pin to that tag. https://learn.microsoft.com/en-us/azure/devops/pipelines/process/templates?view=azure- devops#use-other-repositories

Topics

#Azure Pipelines templates#template versioning#branch reference#repository reference

Community Discussion

No community discussion yet for this question.

Full AZ-400 Practice