BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeDesigning and Implementing Microsoft DevOps Solutions (AZ-400)Optimising a pipeline
Lesson250 words

Optimising a pipeline

Optimize a pipeline for cost, time, performance, and reliability

Measure before optimising

The slowest stage is rarely where intuition points. Pipeline analytics show where duration actually goes; optimising anything else is effort spent for no feedback improvement.

The levers

LeverEffect
CachingSkip dependency restore when the cache key matches
ParallelismSplit independent work across jobs (parallel by default)
Path filtersDo not build at all for documentation-only commits
MatrixOne definition, many legs, throttled by maxParallel
Artifacts over rebuildBuild once, download downstream
Self-hosted agentsWarm caches persist between runs
Right-sized agentsBigger machines for genuinely CPU-bound work

Caching and the key

A cache is only as good as its key. Key on the lockfile hash, so a dependency change invalidates the cache and an unrelated source change does not. Keying too broadly serves stale dependencies; keying too narrowly never hits.

Cost follows the billing model

With concurrency billing (Microsoft-hosted parallel jobs), splitting work across more jobs costs nothing extra provided you have the slots — it converts wall-clock time into parallel capacity. With per-minute billing, the same split may cost more, because total machine-minutes rise even as wall-clock falls.

That is the trade-off to state explicitly: parallelism buys time, and whether it costs money depends entirely on which model you are on.

Primary sources

  • https://learn.microsoft.com/en-us/azure/devops/pipelines/release/caching
  • https://learn.microsoft.com/en-us/azure/devops/pipelines/licensing/concurrent-jobs
All Designing and Implementing Microsoft DevOps Solutions (AZ-400) Study Resources

Related Notes

  • Agent and runner infrastructure421 words
  • Agent and runner infrastructure — quick notes150 words
  • Alerting on pipeline events255 words
  • Alerting on pipeline events — quick notes94 words
  • Analyzing usage and application performance241 words
  • Analyzing usage and application performance — quick notes73 words
  • Appropriate access levels217 words
  • Appropriate access levels — quick notes85 words
  • Automating container scanning277 words
  • Automating container scanning — quick notes96 words
  • Automating documentation from Git history191 words
  • Automating documentation from Git history — quick notes55 words

Ready to study Designing and Implementing Microsoft DevOps Solutions (AZ-400)?

Practice tests, flashcards, and all study notes — free, no sign-up.

Start Studying

Ready to study Designing and Implementing Microsoft DevOps Solutions (AZ-400)?

Practice tests, flashcards, and all study notes — free, no sign-up needed.

Start Studying — Free
Designing and Implementing Microsoft DevOps Solutions (AZ-400) ResourcesExplore All HivesBlogHome

© 2026 BrainyBee. Free AI-powered exam prep.