Module 1 · Beginner · DevOps foundations

What is DevOps? A beginner roadmap

What DevOps is: the problem it solves, the DevOps lifecycle, key practices and tools, DevOps engineer skills, and a learning roadmap.

By theprogrammers team · · 6 min read

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:

StageWhat happensExample tools
PlanDecide what to buildJira, GitHub Issues
CodeWrite code and review itGit, GitHub, GitLab
BuildTurn code into something runnablenpm, Maven, Docker
TestCheck it automaticallypytest, Jest, Selenium
ReleaseApprove and package a versionGitHub Actions, Jenkins
DeployPut it on serversKubernetes, cloud platforms
OperateKeep it running, manage serversTerraform, Ansible
MonitorWatch health and user impactPrometheus, 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:

MetricQuestionStrong teams
Deployment frequencyHow often do we release?Many times a day
Lead time for changesHow long from commit to production?Under a day
Change failure rateWhat share of releases cause problems?Low
Time to restore serviceHow 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.

StepLearnWhy
1Linux and the command lineAlmost every server runs Linux
2A scripting language: Bash, then PythonTo automate tasks
3Git and branching workflowsEverything starts with version control
4Networking basics: IP, DNS, HTTP, ports, SSHTo understand how requests reach servers; see what happens when you type a URL
5YAMLThe language of pipelines and configuration
6CI/CD with GitHub ActionsAutomate testing and deployment
7DockerPackage apps consistently
8One cloud provider: AWS, Azure or Google CloudWhere most apps run
9Infrastructure as code with TerraformCreate cloud resources from files
10KubernetesRun containers at scale
11Monitoring with Prometheus and GrafanaSee 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

  1. 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.

  1. 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).

  1. 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

  1. Start with the essential skill: Linux commands for DevOps beginners.
  2. Then learn how teams use Git together in the Git branching workflow for teams.