🔥 3-day streak
Microsoft DevOps Engineer Expert63 / 138
Question 63 of 138
Your team's Azure DevOps YAML pipeline restores npm dependencies on every run, adding roughly 4 minutes per build. You want to speed up subsequent runs by reusing the previously downloaded packages across pipeline runs, while ensuring the cache is automatically invalidated whenever the dependency lock file changes. Which approach should you implement?
Reviewed for accuracy · Report an issueNext question