Designing and Implementing Microsoft DevOps Solutions — Question 45

You have a project in Azure DevOps named Project1.

You need to ensure that all new pipelines in Project1 execute three specific tasks during pipeline execution.

What should you create?

Answer options

Correct answer: C

Explanation

Creating a YAML template allows you to define a standardized set of tasks that can be reused across multiple pipelines, ensuring consistency in execution. A task group is more suitable for grouping existing tasks but does not provide the flexibility of a YAML template for new pipelines. JSON templates are not typically used for defining pipeline tasks, and a PowerShell task is for executing scripts rather than structuring the pipeline itself.