What is a "Definition of Done", and what should it include for DevOps?

BeginnerConceptAgile & planning
Answer

In one line: The Definition of Done is a shared checklist the team agrees on — every piece of work must meet it before it counts as finished, so "done" means the same thing to everyone.

Why it matters: without it, "done" can mean "I wrote the code" to one person and "it's tested and live" to another. Unfinished work then piles up as hidden risk.

A basic Definition of Done:

  • Code written and peer-reviewed through a pull request.
  • Unit tests written and passing.
  • Acceptance criteria met.
  • Documentation updated.

A DevOps-aware Definition of Done adds:

  1. CI pipeline passes — build, tests, linting.
  2. Security checks pass — no secrets in code, no critical vulnerabilities in dependencies or images.
  3. Infrastructure as code — any infra change is in Terraform/Helm, not done by hand.
  4. Deployed — at least to staging automatically (or to production, for teams doing continuous deployment).
  5. Observability — logs, metrics and alerts added for new features or services; dashboards updated.
  6. Runbook updated — if the change affects how the service is operated.
  7. Feature flag — new user-facing behaviour is behind a flag if it isn't ready for everyone.
  8. Rollback plan known — especially for database changes.

Difference from acceptance criteria:

  • Acceptance criteria are specific to one story ("the user receives a reset email").
  • Definition of Done applies to every story ("tests pass, deployed to staging, monitored").

Example: a team kept getting paged by new features with no alerts. They added "alerts and dashboard added for new endpoints" to their Definition of Done, and new features stopped arriving in production blind.

Tip for interviews: suggest adding "deployed and monitored" to the Definition of Done — it shows you think beyond writing code.

All DevOps Fundamentals questions

More on Agile & planning