Lesson 5 of 8 · Agile & DevOps for DBAs

What Is DevOps

What DevOps is, life before it, why it matters for DBAs, how it ties into the cloud, automation, and CI/CD, DevSecOps, and how it differs from Agile.

Beginner 8 sections 7 min read

What DevOps is

DevOps is a way of building and running IT systems in which development and operations work as one team, with shared goals, automated pipelines, and fast feedback, so changes reach users quickly and safely. It takes Agile's small, frequent steps beyond development, all the way into production.

DevOps isn't a formal framework with fixed roles and meetings, like Scrum. It's a culture and a set of practices, supported by tools. A common summary is CALMS:

Culture
Shared ownership of the whole system, from code to production. "You build it, you run it" replaces throwing work over the wall.
Automation
Anything done repeatedly, such as building, testing, deploying, and provisioning, is automated, so it's fast, consistent, and repeatable.
Lean
Small batches of work, less waiting, and less waste.
Measurement
Decisions are based on data, such as deployment frequency, failure rates, and recovery times.
Sharing
Knowledge, tools, and lessons from incidents are shared openly across teams.

You met the basics in Introduction to DevOps: the lifecycle, CI/CD, and how DevOps is measured. This lesson goes further into why it matters, how it connects to the cloud and automation, and what it means for a DBA.

Life before DevOps

Agile sped up development, but operations often stayed the same. Developers finished features every two weeks, then handed them to a separate operations team, which released them in a big, scheduled change window. The two teams had opposite goals: developers were measured on delivering change, operations on keeping systems stable, and the safest way to stay stable was to resist change.

DBAs were usually on the operations side of that wall. A typical database change looked like this:

  1. A developer writes a schema change and emails a script to the DBA team, or attaches it to a ticket.
  2. The ticket waits in a queue, sometimes for days, then goes to a weekly change advisory board.
  3. A DBA runs the script by hand in test, then in production during a weekend window, often adjusting it as they go.
  4. Environments drift apart, because each was changed by hand, so a script that worked in test fails in production.
  5. When something breaks, each side blames the other, and the fix starts the whole process again.

The result was slow releases, risky weekends, unhappy teams, and databases that became the bottleneck for every project. DevOps grew out of this frustration around 2009, when talks such as "10+ Deploys Per Day: Dev and Ops Cooperation at Flickr" and the first DevOpsDays conference, organized by Patrick Debois, showed a better way.

What DevOps changes

Before DevOpsWith DevOps
Separate Dev and Ops teams with opposite goalsShared goals: fast and reliable delivery
Manual, hand-run changesAutomated pipelines that run the same way every time
Large, infrequent releasesSmall, frequent releases, each easy to test and undo
Environments built and changed by handEnvironments built from code, identical every time
Problems discovered by usersMonitoring and fast feedback that catch problems first
Blame after incidentsBlameless reviews focused on fixing the system

Research from the DORA program, published in the yearly State of DevOps reports, has shown that teams working this way deploy far more often and have fewer failures and faster recovery. Speed and stability turn out to go together.

Why DevOps matters today, and for DBAs

DevOps is now the normal way of working in most IT organizations, and cloud platforms are built around it. For DBAs, it changes the job in several ways:

Database changes must keep pace
If applications deploy several times a day, database changes can't wait for a weekly change board. They need to go through the same pipeline, with the same testing and approvals, automatically.
Databases are built from code
New database servers, users, and settings are created by tools such as Terraform and Ansible, not by hand. DBAs write and review that code.
The database is no longer special
It's managed with the same version control, reviews, and automation as everything else, rather than as a fragile system only DBAs touch.
DBAs become enablers
Instead of doing every change themselves, DBAs build safe, automated paths that let developers make routine changes on their own, and focus their expertise on design, performance, and reliability.
It's where the jobs are
Roles such as database engineer, DBRE, and database DevOps engineer all expect DevOps skills, as you saw in Where the DBA Role Is Going.

How DevOps ties into cloud, automation, and CI/CD

DevOps, the cloud, automation, and CI/CD reinforce each other. Each makes the others more powerful:

DevOps shared ownership CloudAutomationCI/CDMonitoring infrastructure on demand, by APIinfrastructure as code, scriptspipelines that test and releasefeedback from production
Cloud
Everything in the cloud, from a server to a database to a network, can be created and changed through an API. That's what makes full automation possible: no waiting for hardware or tickets.
Automation
Infrastructure as code (IaC) tools such as Terraform describe servers and databases in files; configuration tools such as Ansible set them up the same way every time. Both are covered later in this path.
CI/CD
Continuous integration builds and tests every change as soon as it's committed; continuous delivery keeps every change ready to release through an automated pipeline. For databases, the pipeline applies schema changes with tools such as Liquibase or Flyway, tested first in lower environments.
Monitoring
Metrics, logs, and alerts show how each change behaves in production, and feed the next round of improvements.

DevSecOps

As DevOps sped up delivery, security often became the new wall: a separate team reviewing changes at the end, slowing everything down, or missing problems entirely. DevSecOps adds security into DevOps, so it's built in from the start rather than checked at the end. This is often called shifting left: moving security checks earlier in the pipeline.

For databases, DevSecOps means things like scanning code for passwords before it's committed, checking Terraform for unencrypted databases or public endpoints, testing that new users get only the privileges they need, and masking sensitive data automatically when test copies are made. Security becomes everyone's job, with the pipeline enforcing the rules.

Agile and DevOps: how they differ

Agile and DevOps are often mentioned together, and they share values such as small steps, collaboration, and feedback. But they cover different parts of the journey:

BusinessDevelopmentOperations AGILE plan and build the right thing, in small steps DEVOPS deliver and run it, quickly and reliably
AgileDevOps
Main questionAre we building the right thing, and how do we plan and manage the work?How do we deliver and run it quickly, safely, and reliably?
BridgesThe business and the development teamDevelopment and operations
FocusPlanning, prioritizing, and managing delivery in short cyclesAutomation, pipelines, infrastructure, monitoring, and reliability
Typical practicesSprints, backlogs, stand-ups, reviews, retrospectivesCI/CD, infrastructure as code, automated testing, monitoring, blameless postmortems
Typical toolsJira, GitHub Projects, Azure BoardsGit, GitHub Actions, Jenkins, Terraform, Ansible, Liquibase, Grafana
MeasuresVelocity, cycle time, value deliveredDeployment frequency, lead time for changes, change failure rate, time to restore

In short: Agile manages what gets built and when; DevOps handles how it gets built, delivered, and run. Most teams use both together, as the last lesson of this module shows with a database automation project.

Key takeaways

  • DevOps is a culture and set of practices, summed up as CALMS, in which development and operations share ownership of delivering and running systems.
  • Before DevOps, Dev and Ops had opposite goals, changes were manual and slow, and databases were often the bottleneck.
  • DevOps brings small, automated, frequent releases, environments built from code, fast feedback, and blameless learning.
  • The cloud makes everything automatable; IaC, CI/CD, and monitoring are how DevOps uses that.
  • DevSecOps builds security into the pipeline from the start, shifting checks left.
  • Agile plans and manages the work; DevOps delivers and runs it. Teams use both.