BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeDesigning and Implementing Microsoft DevOps Solutions (AZ-400)Retention strategy
Lesson231 words

Retention strategy

Design and implement a retention strategy

Retention balances four pressures: cost, compliance, traceability, and the ability to roll back.

What retention governs

AssetConsideration
Run records and logsAudit trail — who deployed what, when
Test resultsTrend analysis and flaky-test detection
Pipeline artifactsRollback capability and storage cost
Package feed versionsReproducible builds of older releases

The rollback constraint

The binding rule: retain artifacts at least as long as you might need to roll back to them. A retention policy that deletes the previous release's artifact while it is still the rollback target converts a two-minute redeploy into a rebuild from source — assuming the source still builds identically, which is exactly what you cannot assume in an incident.

Runs to keep

Policies commonly retain runs that are still meaningful — the latest run per branch, and runs that produced a currently deployed release. Deleting the run that produced production removes the audit link between what is running and how it was built.

Feeds

Package feed retention is a separate policy from pipeline retention. Deleting old package versions breaks reproducible builds of older releases, so the retention window there should reflect how far back you might need to rebuild — often longer than for artifacts.

Primary sources

  • https://learn.microsoft.com/en-us/azure/devops/pipelines/policies/retention
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.