New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft AZ-400 Exam - Topic 2 Question 43 Discussion

Actual exam question for Microsoft's AZ-400 exam
Question #: 43
Topic #: 2
[All AZ-400 Questions]

You have a project in Azure DevOps.

You create the following YAML template named Template1.yml.

steps:

- script: npm install

- script: yarn install

- script: npm run compile

You create the following pipeline named File1.yml.

parameters:

usersteps:

- task: MyTask@1

- script: echo Done

You need to ensure that Template1.yaml runs before File1.yml.

How should you update File1.yml?

Show Suggested Answer Hide Answer
Suggested Answer: C

Azure Pipelines offers two kinds of templates: includes and extends. Included templates behave like #include in C++: it's as if you paste the template's code right into the outer file, which references it. To continue the C++ metaphor, extends templates are more like inheritance: the template provides the outer structure of the pipeline and a set of places where the template consumer can make targeted alterations.

Example:

extends:

template: template.yml@templates

parameters:

usersteps:

- script: echo This is my first step

- script: echo This is my second step


https://docs.microsoft.com/en-us/azure/devops/pipelines/security/templates

Contribute your Thoughts:

0/2000 characters
Dottie
4 months ago
Surprised there's a typo in the options!
upvoted 0 times
...
Lashawna
4 months ago
Totally agree with A!
upvoted 0 times
...
Tori
4 months ago
Wait, isn't it "extends" instead of "template"?
upvoted 0 times
...
Linwood
5 months ago
I think B is the way to go!
upvoted 0 times
...
Roselle
5 months ago
Option A looks correct to me.
upvoted 0 times
...
Kyoko
5 months ago
I thought `extends` was the right way to go, but I might be mixing it up with another question. Could it be option D instead?
upvoted 0 times
...
Julieta
5 months ago
I feel like the template should be referenced directly in the `parameters`, but I can't recall if it should be `extends` or just `template`.
upvoted 0 times
...
Dahlia
5 months ago
I remember practicing a similar question where we had to include a template, and I think it was about using `parameters` correctly. Maybe option B?
upvoted 0 times
...
Allene
5 months ago
I think we need to use the `extends` keyword to include the template, but I'm not entirely sure if it's option A or C.
upvoted 0 times
...
Nichelle
5 months ago
Hmm, this seems straightforward. I think the key is to focus on the details in the question - it mentions the letter is signed and doesn't adversely reflect on any individual employee, so that rules out a few options.
upvoted 0 times
...
Carmelina
5 months ago
I think the answer is B. Matching ID field seems like the most logical choice to filter a report chart on a page layout.
upvoted 0 times
...
Gayla
5 months ago
I'm a bit unsure about the Unchecked Return Values option. I'll need to research that one a bit more to understand how it might apply here.
upvoted 0 times
...

Save Cancel