exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 9 question 22 discussion

Actual exam question from Microsoft's AZ-400
Question #: 22
Topic #: 9
[All AZ-400 Questions]

HOTSPOT
-

You have an Azure subscription that contains Azure DevOps build pipelines.

You need to implement pipeline caching by using the cache task.

How should you complete the YAML definition? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer:

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Dankho
Highly Voted 3 months, 4 weeks ago
How many things do I have to learn for this dang exam?
upvoted 6 times
...
60ties
Most Recent 9 months, 2 weeks ago
Correct. see syntax: https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/cache-v2?view=azure-pipelines#syntax
upvoted 2 times
...
Asryi
1 year, 3 months ago
Given answer is correct https://learn.microsoft.com/en-us/azure/devops/pipelines/release/caching?view=azure-devops
upvoted 4 times
...
Alandt
1 year, 3 months ago
variables: yarn_cache_folder: $(Pipeline.Workspace)/.yarn steps: - task: Cache@2 inputs: key: 'yarn | "$(Agent.OS)" | yarn.lock' path: $(yarn_cache_folder) displayName: Cache yarn packages - script: yarn --frozen-lockfile
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago