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
- A. a task group
- B. a JSON template
- C. a YAML template
- D. a PowerShell task
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.