In Project1, ensure that every new pipeline executes three specific tasks during pipeline runs. What should you create to enforce this?
Choose an answer
Tap an option to check your answer.
Correct answer: a task group.
Why this is the answer
A task group is the correct choice because it allows you to encapsulate a sequence of tasks into a single reusable unit. When you define a task group, you can then add it to multiple pipelines, ensuring that the encapsulated tasks (in this case, the three specific tasks) are executed consistently every time the task group is invoked. This enforces the requirement across all new pipelines. A JSON template is not a standard Azure DevOps pipeline construct for defining reusable task sequences. While JSON is used for some pipeline configurations, it doesn't directly create a reusable task block like a task group. A YAML template can define reusable pipeline components, including tasks, but a task group is specifically designed for grouping tasks within a job or stage for reusability and parameterization, making it a more direct and often simpler solution for this specific requirement. A PowerShell task executes a single PowerShell script and does not group multiple tasks for reuse.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed