hiexam
microsoft · AZ-400 · Q826 · code_completion · azure, devops, pipeline_caching

HOTSPOT - You have an Azure subscription that contains Azure DevOps build pipelines. You need to implement pipeline c…

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. //IMG//
variables:
  YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn
steps:
- task: Cache@2
  inputs:
    {{slot1}}: "yarn" | "${{Agent.OS}}" | yarn.lock
    {{slot2}}: $(YARN_CACHE_FOLDER)

displayName: Cache Yarn packages
- script: yarn --frozen-lockfile
Correct slot values

Answer hidden

Unlock AZ-400

First 5 questions of every exam are free. Unlock the rest.

Includes
  • · All — questions
  • · Verified answers + AI explanations
  • · Spaced-repetition mistake notebook
  • · Phone, tablet, laptop sync

One-time payment. Doesn't auto-renew. · Already paid? Sign in