Lesson 8 of 8 · Agile & DevOps for DBAs

Agile and DevOps Together

A database automation project from start to finish, with Scrum managing the delivery and DevOps building the automation, plus the terms to know.

Beginner 6 sections 6 min read

An example project

Agile and DevOps work best together: Scrum manages the project, deciding what gets built in each sprint, while DevOps practices build, test, and deliver the work. This lesson follows a DBA team through a real kind of project to show how the two fit.

Kofi's DBA team supports dozens of application teams. Every new database takes about two weeks: a ticket, a server request, a manual Oracle install, hand-run scripts for users and settings, then monitoring set up by someone else. The team decides to fix this with a project:

How Scrum and DevOps fit together

SCRUM MANAGES THE DELIVERY Backlog storiesand bugs Sprint 1Sprint 2Sprint 3Sprint 4 Terraform modulefor DB servers Ansible role toinstall Oracle Pipeline andLiquibase baseline Monitoring andself-service form code from every sprint flows through the same pipeline DEVOPS BUILDS AND RUNS THE AUTOMATION Commit to Git Automated testsDeploy to testApproveDeploy to prod monitoring and incidents become new backlog items

The two lanes answer different questions. Scrum decides what the team works on and when, and checks every two weeks that it's still the right thing. DevOps decides how the work is built and delivered: as code, tested and released through one automated pipeline. Neither replaces the other.

The Scrum side: managing the delivery

Roles
The DBA team lead acts as Product Owner, speaking for the application teams who'll use the service. A team member who knows Scrum well acts as Scrum Master. Kofi and three other DBAs are the developers.
The backlog
The epic "Self-service database provisioning" is split into stories, such as: As an application team, I want a database server created from a standard template, so that every environment is the same. Each has acceptance criteria and a story point estimate.
Sprint planning
Each sprint has a goal that delivers something usable. Sprint 1's goal: "Create a standard database server in OCI with one command." Even before the project is finished, that's already useful to the team.
Daily Scrum
Fifteen minutes each morning: Kofi mentions the Terraform module is waiting on network access from the cloud team. The Scrum Master follows up with them that day.
Sprint review
At the end of Sprint 2, the team demos building and installing a database in 40 minutes. An application lead asks for PostgreSQL too, which the Product Owner adds to the backlog for later.
Retrospective
The team notices that reviewing each other's Ansible code takes too long. They agree to keep pull requests small and review them the same day.

The DevOps side: building the automation

Everything as code, in Git
The Terraform module, Ansible role, Liquibase changelog for standard users and settings, and the pipeline definition all live in one Git repository. Each story is built on a branch named after its Jira key, such as DBA-212-terraform-db-server.
Peer review
Every change goes through a pull request, reviewed by another DBA before it's merged, which spreads knowledge and catches mistakes early.
Automated testing
The pipeline checks the code's style, runs Terraform's plan, builds a throwaway test database, applies the Ansible role and Liquibase changes to it, and runs checks, such as "backups are scheduled" and "no default passwords remain".
Delivery
When tests pass, the pipeline deploys to the test environment automatically, and to production after an approval, the same way every time.
Monitoring and feedback
Every new database is registered in monitoring automatically. When an alert reveals a missing setting, it becomes a bug on the backlog, fixed in the code, and every future database gets the fix.

After four sprints, provisioning a database takes under an hour instead of two weeks, and every database is built the same way. The team keeps improving it sprint by sprint, adding PostgreSQL support next, as the review requested.

Agile and DevOps terms

A quick reference to the terms you'll hear most. The glossary has more.

Agile terms

Backlog
The ordered list of work still to do. The product backlog covers everything; the sprint backlog covers the current sprint.
Sprint (iteration)
A fixed period, usually two weeks, in which the team delivers a working increment.
Increment
The finished, usable result of a sprint.
Epic, user story, task
Work items from large to small. A story is a piece of value one sprint can finish.
Acceptance criteria
The conditions that show a specific story is done.
Definition of done
The quality checklist every story must meet before it counts as done.
Story points and velocity
Relative estimates of effort, and the average points a team completes per sprint.
Timebox
A fixed maximum length for an event or piece of work.
WIP limit
The maximum number of items allowed in one stage of a Kanban board at once.
Burndown chart
A chart of work remaining in a sprint, which should fall to zero by the end.
Blocker (impediment)
Anything stopping work from moving forward, raised at the Daily Scrum.
MVP (minimum viable product)
The smallest version of something that's useful enough to release and learn from.

DevOps terms

Pipeline
An automated series of steps that builds, tests, and deploys a change.
CI, CD
Continuous integration: test every change as it's committed. Continuous delivery: keep every change ready to release; continuous deployment: release it automatically.
Infrastructure as code (IaC)
Defining servers, networks, and databases in version-controlled files.
Configuration drift
When environments that should be identical slowly differ because of manual changes.
Immutable infrastructure
Replacing servers with new ones built from code, instead of changing them in place.
Pull request (merge request)
A proposed change in Git, reviewed before it's merged.
Shift left
Moving testing and security checks earlier in the process, where problems are cheaper to fix.
DORA metrics
Deployment frequency, lead time for changes, change failure rate, and time to restore service.
MTTR (mean time to restore)
The average time to recover from a failure.
Toil
Manual, repetitive work that automation should remove.
SLI, SLO, SLA, error budget
How reliability is measured, targeted, promised, and managed.
Blameless postmortem
A review of an incident that focuses on fixing the system, not blaming people.
Observability
Being able to understand what a system is doing from its metrics, logs, and traces.

Key takeaways

  • Scrum manages what gets built and when; DevOps handles how it's built, tested, delivered, and run.
  • In a database automation project, Scrum breaks the goal into sprints that each deliver something useful, with reviews and retrospectives to adjust.
  • DevOps keeps all the work as code in Git, reviews it, tests it automatically, and delivers it through one pipeline.
  • Monitoring and incidents feed new stories back into the backlog, closing the loop between the two.
  • Together they deliver value early, safely, and repeatably, which is the heart of the Database DevOps Engineer role.