Exam Preparation Quiz

Question 46 of 75

Complete The Pipeline Caching YAML Definition

You work for MDFT Pro, a well-known training agency. The academy has an Azure project that contains Azure DevOps build pipelines. You need to implement caching for Yarn packages in the pipelines using the cache task.

How should you complete the YAML definition?

steps:
- task: Cache@2
  inputs:
    ________________ '"yarn" | "$(Agent.OS)" | yarn.lock'
    path: $(YARN_CACHE_FOLDER)
  displayName: Cache Yarn packages
- script: yarn --frozen-lockfile

Choose the correct answer from the options below.

Explanations for each answer:

Learn more about configuring the pipeline cache task:
Pipeline Cache Task
Next Question