DevOps is a way of building and running software where the people who write the code (development) and the people who keep it running (operations) work as one team, and automate everything they can, so changes reach users quickly, safely and often. It's a culture and a set of practices first, and a set of tools second.
This guide explains the problem DevOps solves, the DevOps lifecycle, the practices and tools involved, what a DevOps engineer actually does, and a clear roadmap for learning it from scratch.
The problem DevOps solves
Picture a company before DevOps. Developers spend three months building features. On release day, they hand a bundle of code to a separate operations team, who have never seen it, to install on the servers. It fails, because the servers are set up differently from the developers' laptops. Developers say "it works on my machine"; operations say "your code is broken". The release is delayed, fixes are rushed in at midnight, and everyone is afraid of the next one.
The root causes:
- Big, rare releases: three months of changes at once, so when something breaks, it's hard to know which change caused it.
- Manual steps: someone follows a long document by hand, and one missed step breaks production.
- Separate teams with different goals: developers are rewarded for shipping changes, operations for stability, which pulls them in opposite directions.
DevOps fixes this with small, frequent changes, automated end to end, owned by one team from writing the code to running it.
The DevOps lifecycle
DevOps is often drawn as an infinity loop, because the steps repeat continuously:
| Stage | What happens | Example tools |
|---|---|---|
| Plan | Decide what to build | Jira, GitHub Issues |
| Code | Write code and review it | Git, GitHub, GitLab |
| Build | Turn code into something runnable | npm, Maven, Docker |
| Test | Check it automatically | pytest, Jest, Selenium |
| Release | Approve and package a version | GitHub Actions, Jenkins |
| Deploy | Put it on servers | Kubernetes, cloud platforms |
| Operate | Keep it running, manage servers | Terraform, Ansible |
| Monitor | Watch health and user impact | Prometheus, Grafana |
What you learn in monitoring feeds back into planning, and the loop starts again, ideally many times a day.
The core practices
- Version control for everything. Code, but also server configuration, pipelines and documentation live in Git. See the Git branching workflow for teams.
- Continuous integration (CI). Every change is merged often and automatically built and tested.
- Continuous delivery and deployment (CD). Every change that passes the tests can be, or is, released automatically. The GitHub Actions CI/CD tutorial builds a pipeline step by step.
- Infrastructure as code. Servers, networks and databases are described in files and created by tools, not by clicking in a console, so they can be reviewed, repeated and rebuilt.
- Containers. Docker packages an app with everything it needs, ending "it works on my machine".
- Monitoring and observability. Metrics, logs and alerts tell you about a problem before users do.
- Blameless culture. When something breaks, the team asks "how did our process allow this?" rather than "whose fault is it?", and fixes the process.
How do you know DevOps is working?
Four widely used measurements, called the DORA metrics after the research group that defined them:
| Metric | Question | Strong teams |
|---|---|---|
| Deployment frequency | How often do we release? | Many times a day |
| Lead time for changes | How long from commit to production? | Under a day |
| Change failure rate | What share of releases cause problems? | Low |
| Time to restore service | How fast do we recover from a failure? | Under an hour |
The research behind them found that speed and stability go together: teams that deploy most often also tend to fail least, because small changes are easier to test, review and undo.
What does a DevOps engineer do?
"DevOps" is a way of working, but many companies also hire DevOps engineers (sometimes called platform engineers or site reliability engineers, SREs). Day to day, they:
- build and maintain CI/CD pipelines,
- manage cloud infrastructure with code,
- containerise applications and run them on platforms like Kubernetes,
- set up monitoring, logging and alerts, and respond to incidents,
- automate repetitive work with scripts,
- help developers ship safely on their own.
The DevOps roadmap
Learn in this order. Each step builds on the one before.
| Step | Learn | Why |
|---|---|---|
| 1 | Linux and the command line | Almost every server runs Linux |
| 2 | A scripting language: Bash, then Python | To automate tasks |
| 3 | Git and branching workflows | Everything starts with version control |
| 4 | Networking basics: IP, DNS, HTTP, ports, SSH | To understand how requests reach servers; see what happens when you type a URL |
| 5 | YAML | The language of pipelines and configuration |
| 6 | CI/CD with GitHub Actions | Automate testing and deployment |
| 7 | Docker | Package apps consistently |
| 8 | One cloud provider: AWS, Azure or Google Cloud | Where most apps run |
| 9 | Infrastructure as code with Terraform | Create cloud resources from files |
| 10 | Kubernetes | Run containers at scale |
| 11 | Monitoring with Prometheus and Grafana | See what's happening in production |
With 1 to 2 hours a day, steps 1 to 7 take roughly 3 to 4 months. Learn by doing: the best portfolio project is a small web app of your own, with tests, a CI/CD pipeline, a Docker image, deployment to the cloud, and a dashboard, all described in a public GitHub repository.
Common misunderstandings
- "DevOps is a tool." Jenkins or Kubernetes don't make a team DevOps; small changes, automation and shared ownership do.
- "DevOps means developers do operations alone." It means shared responsibility, supported by good platforms.
- "You need Kubernetes on day one." A simple app on one server with a good CI/CD pipeline is already a big step.
- "DevOps is only for big companies." Small teams benefit most, because they can't afford manual work.
Practice
- A team releases every three months, and each release takes a weekend and breaks something. Name three DevOps changes to suggest.
Show the answer
For example: release smaller changes more often; add automated tests that run in CI on every change; automate the deployment with a pipeline instead of a manual checklist; and use a deployment strategy that allows quick rollback.
- Which DORA metric measures how quickly you fix production after a failure?
Show the answer
Time to restore service (also called mean time to recovery, MTTR).
- Put these in learning order: Kubernetes, Linux, Docker, Git.
Show the answer
Linux, Git, Docker, Kubernetes. Each depends on the one before: Docker runs on Linux concepts, and Kubernetes runs Docker-style containers.
Interview questions
What is DevOps?
A culture and set of practices that unify software development and operations, using automation (CI/CD, infrastructure as code, monitoring) and shared ownership to deliver small changes quickly and reliably.
What is the difference between continuous delivery and continuous deployment?
In continuous delivery, every change that passes the pipeline is ready to release, but a person approves the release. In continuous deployment, every passing change goes to production automatically.
What are the DORA metrics?
Deployment frequency, lead time for changes, change failure rate and time to restore service. They measure software delivery speed and stability.
What is infrastructure as code?
Defining servers, networks and other infrastructure in version-controlled files that tools such as Terraform apply automatically, making environments reproducible, reviewable and easy to rebuild.
What to learn next
- Start with the essential skill: Linux commands for DevOps beginners.
- Then learn how teams use Git together in the Git branching workflow for teams.