The DevOps Engineer's Handbook¶
From absolute beginner to production-grade engineer โ a mentorship program, not a tool tour¶
Who this is for: you, starting from zero, aiming to think and operate like a DevOps/SRE engineer with 2.5โ3 years of real production experience.
The promise: by the end you will not just know Terraform, Docker, and Kubernetes โ you will understand why each exists, what it replaced, where it runs, who owns it, and how it hands off to the next system. You will be able to draw the whole production stack on a whiteboard and reason about failure at every hop.
0. How to read this handbook¶
This is a book, not a pile of notes. Read it in order the first time โ each module deliberately builds the mental model the next one assumes. After the first pass, use it as a reference: the Glossary and Interview Bank are designed for pre-interview review.
๐บ๏ธ Naye ho? Ek plan lo. Bina schedule ke log beech me chhod dete hain. Follow the Study Plan (12-week ya 6-week track) aur apni Progress tick karte jao โ visible progress hi motivation hai. Repo front-door: README. Job tak pahunchne ke liye: 18 โ Job-Ready.
Three learning modes, use whichever fits your moment:
| Mode | What you do | Which files |
|---|---|---|
| ๐ง Understand | Read the full module, do the lab | 01โ13 module chapters |
| โก Recall | Skim summaries, memory hooks, quiz | Each module's Summary + Memory shortcuts |
| ๐ฏ Interview | Rapid-fire Q&A, war stories | 14-interview-bank + Glossary error-reflex table |
| ๐ Remember for life | Recall gates, flashcards, spaced review | Every chapter's โฉ๏ธ Recall gate + 17-flashcards |
A note on language. Explanations are in plain English. Where a Hindi/Hinglish one-liner makes a concept stick faster, it is included in a ๐ฎ๐ณ Hinglish intuition callout. This is deliberate โ intuition in your first language wires the memory faster; the English is what you'll say in an interview.
0.1 How to remember this for life โ the spaced-review system¶
Padhna aur yaad rakhna do alag cheezein hain. Yeh handbook is tarah bana hai ki ek baar theek se padho, phir zindagi bhar yaad rahe โ par uske liye teen aadatein chahiye (yeh retention science se aayi hain, marketing se nahi):
1. Har learning chapter ke shuru me โฉ๏ธ Recall gate. 3 sawaal โ pichhle modules se. Neeche kuch padho usse pehle, memory se jawab do. Yeh active recall hai: dobara nikaalna (retrieve), dobara padhna nahi. Memory retrieve karne se pakki hoti hai, re-read karne se nahi.
2. Har quiz aur recall gate ka jawab <details markdown="1"> me chhupa hai. Pehle khud socho, phir kholo. Agar galat nikla โ wahi cheez sabse achhe se yaad rahegi. Isko desirable difficulty kehte hain: thodi takleef = pakki yaad.
3. Spaced review โ badhte gap pe dobara milo:
| Kab | Kya karo | Time |
|---|---|---|
| Day 0 | Chapter padho + lab karo | 45โ90 min |
| Day 1 | Sirf us chapter ka Recall gate + quiz, memory se | 5 min |
| Day 3 | Us module ke flashcards chalao | 5 min |
| Day 7 | Agle chapter ka Recall gate (jo isi ko dobara test karta hai) | built-in |
| Day 30 | Blank page pe 2 loops + 8 bridges + 5 threads banao (see 09) | 10 min |
๐ฎ๐ณ Hinglish intuition: Memory ek gym hai. Ek baar bhaari weight uthana (padhna) muscle nahi banata โ baar-baar, badhte gap pe uthana banata hai. Recall gates + flashcards = tumhare reps. Bina reps ke, chapter 3 hafte me bhool jaoge.
Flashcard deck โ 17-flashcards.md: har module ke sabse zaroori QโA, Hinglish me. Anki me import karke roz 5 min chalao โ yehi ek aadat sabse zyada lifetime retention deti hai.
1. The mental model everything hangs on: Two Loops¶
Before any tool, hold this picture. Every DevOps system on earth is two feedback loops that share one Git repository.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ GIT (source of truth) โ
โโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโฌโโโโโโโโโโโโ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโ โโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ OUTER LOOP โ "build the โ โ INNER LOOP โ "ship the app" โ
โ house" (INFRASTRUCTURE) โ โ (APPLICATION / DELIVERY) โ
โ โ โ โ
โ Terraform โ Cloud (VPC, EC2, โ โ Code โ CI (test+build) โ โ
โ RDS, ECR) โ Ansible โ โ image โ registry โ manifest โ
โ (configure hosts, kubeadm) โ โ update โ GitOps โ Kubernetes โ
โ โ โ โ Service โ Ingress โ Users โ
โ RUNS RARELY (setup / change) โ โ RUNS EVERY PUSH (many/day) โ
โ "Pets" โ built with care โ โ "Cattle" โ disposable pods โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
- The outer loop builds and configures the place things run. It runs when infrastructure changes โ rarely, carefully. Terraform + Ansible live here.
- The inner loop ships the application into that place. It runs on every
git pushโ often, automatically. CI/CD + GitOps + Kubernetes live here. - Git is the seam between them. Both loops read desired state from Git and reconcile reality toward it. Hold onto the word reconcile โ it is the single most important idea in this book (see 09-connected-system).
๐ฎ๐ณ Hinglish intuition: Outer loop = ghar aur kitchen taiyaar karo (ek baar). Inner loop = dish banao aur serve karo (baar-baar, har order pe).

Figure: the Two Loops mental model. Outer = build the place things run (Terraform + Ansible, "Pets"); inner = ship the app into it (CI โ Argo โ Kubernetes, "Cattle"); Git is the shared brain both loops reconcile toward.
Full-resolution versions of these diagrams live in the repo root: devops_two_loops_mental_model.png, two_loops_infra_vs_app.png, full_production_flow_end_to_end.png, kubernetes_controller_chain.png.
2. The end-to-end connection chain¶
Two sentences you should be able to expand into a 20-minute whiteboard talk by the end of this book:
Setup (outer loop):
Terraform โ Cloud โ Compute โ Config Mgmt (Ansible) โ Container runtime โ Kubernetes cluster.Delivery (inner loop):
Git push โ CI/CD โ Docker image โ Registry โ Manifest update โ GitOps (Argo) โ Kubernetes โ Service โ Ingress โ Load Balancer โ DNS โ Users.
Every module tells you exactly which arrow it owns and what it hands to the next box. Those handoffs are the 8 Bridges โ the joints of the whole system.
3. The curriculum¶
Part 0 โ Pre-flight (naye ho? yahin se shuru karo)¶
The ground floor the rest of the book assumes. Skip only if you're already comfortable with the terminal, Git, YAML, HTTP, and a cloud account. | # | Module | Core question it answers | |---|--------|--------------------------| | 00a | Pre-flight: the ground floor | What is a terminal, YAML, Git, an HTTP request, a CIDR block โ the plumbing every later chapter assumes? | | 00b | Setup runbook | How do I install the whole toolchain (WSL, Docker, Terraform, kubectl, AWS CLI) and create a safe AWS account? | | 21 | Linux: the ground everything runs on | Navigate/read/edit files, debug a slow-or-down server, mine logs with pipes โ the hands-on command toolkit every DevOps role assumes. |
Part I โ Foundations & the core toolchain (absolute beginner โ intermediate)¶
| # | Module | Core production question it answers |
|---|---|---|
| 01 | M0 โ Foundations & Mental Model | What is DevOps actually solving, and how do I reason about a system I've never seen? |
| 02 | M1 โ Terraform & Infrastructure as Code | How do I create cloud infrastructure repeatably, without clicking in a console? |
| 03 | M2 โ Ansible & Configuration Management | The server exists โ how do I configure what's inside it, identically every time? |
| 04 | M3 โ Docker & Containers | How do I package an app so it runs the same on my laptop and in production? |
| 05 | M4 โ Kubernetes Core | How do I run many containers reliably, self-healing, across many machines? |
| 06 | M5 โ Sizing, Capacity & Cost | How big should the machines be, and how do I not set money on fire? |
| 07 | M6 โ CI/CD Pipelines | How does a git push become a tested, built, pushed image with zero manual steps? |
| 08 | M7 โ GitOps & Argo CD | How does the cluster pull the right version from Git and heal itself when it drifts? |
Part II โ Systems thinking (the glue)¶
| # | Module | Core production question it answers |
|---|---|---|
| 09 | The Connected System | How do all 7 tools actually hand off to each other, end to end? |
| 26 | Kubernetes Objects โ How They All Connect | Objects feel disconnected? One idea, one master map, 5 buckets โ read once and the whole picture clicks. |
| 27 | 10-Day Learning Plan (understand) | Sab pata hai par jodd nahi paaye? Ek restaurant analogy se poora DevOps connect โ first-pass mental map. |
| 29 | 10-Day Confidence Sprint (drill) | Concepts clear ho gaye? Ab padhna band โ revise ยท do ยท prove. Har concept apne VANTA + Billfree projects pe karke confidence banao. |
| 19 | Follow One Commit (hands-on CI/CD) | Trace a single git push through CI โ scan โ registry โ GitOps โ rolling update โ observe. |
Part III โ Operate like a senior (intermediate โ production)¶
| # | Module | Core production question it answers |
|---|---|---|
| 10 | M8 โ Observability & SRE | It's 2 a.m. and something is slow โ how do I see inside a running system? |
| 11 | M9 โ Advanced Kubernetes Internals | Probes, QoS, DNS, graceful shutdown, HPA, RBAC, Ingress โ what really happens inside? |
| 23 | Production Incident Playbook | It's on fire in prod โ what do I run, in what order, to fix it? 26 real issues (CrashLoop, 502, OOM, PVC Pending, state-lock, AccessDenied, DBโฆ) with symptom โ diagnose โ fix โ prevent. |
Part IV โ Prove it (capstone)¶
| # | Module | Core production question it answers |
|---|---|---|
| 12 | Capstone I โ URL Shortener | Can I build the whole stack end-to-end, from empty AWS account to live URL? |
| 13 | Capstone II โ MicroShop | Can I do it with real microservices, inter-service DNS, and matrix CI? |
Part V โ Interview, roadmap, reference¶
| # | Module | Purpose |
|---|---|---|
| 14 | Interview Bank | 40+ production-grade Q&A + 19 real lab war-stories |
| 20 | Confusions & Trade-offs (X-vs-Y) | The small distinctions interviewers probe: SG vs NACL, EBS/EFS/S3, RDS vs DynamoDB, RED vs USE, blue-green vs canary, merge vs rebase, AWSโAzure |
| 22 | Command Cheat-Sheets & Labs | The "terminal-open" muscle-memory reference: Git ยท Docker ยท kubectl ยท Ansible ยท Terraform ยท ArgoCD ยท Jenkins โ commands, mini-labs, and interview one-liners |
| 15 | Principal Track roadmap (M11โM18) | Incident response, progressive delivery, distributed systems, security, FinOps, platform engineering |
| 16 | Reference Appendix | Glossary (80+ terms), errorโcause reflex table, troubleshooting quick-ref, sizing quick-ref, command cheat-sheets |
| 17 | Flashcard deck | Every module's must-remember QโA in Hinglish โ Anki-importable, for daily spaced repetition (see ยง0.1) |
| 18 | Career / Job-Ready | Turn the handbook into a job: portfolio, resume bullets, interview scripts, 2-week sprint, salary ranges |
Part VI โ The Production Gauntlet (build โ break โ fix)¶
| # | Module | Core production question it answers |
|---|---|---|
| 24 | Build the Real System | Can I take one real service ("ShopFast") from empty repo to production on AWS+K8s โ with every small process (IaC, GitOps, TLS, secrets, HPA, PDB, NetworkPolicy, backups, alerts) done right? |
| 25 | Chaos Engineering โ break & fix | Would I rather find the failure on a game-day or at 2 a.m.? 12 chaos experiments โ diagnose โ fix like a senior SRE. |
4. The lesson template (what every module chapter contains)¶
Every Part IโIII module is written to the same skeleton, so you always know where to look:
- Core question + 60-second version โ the one-paragraph "why you're here."
- Why this exists / what it replaced โ the evolution. You never meet a tool without meeting the pain it was born to kill.
- Concepts, each covered as: What it is ยท Why it exists ยท Where it runs ยท Who owns it ยท Inputs & outputs ยท How it connects ยท Common failures ยท Troubleshooting ยท Interview insight ยท Best practice.
- ASCII diagrams โ architecture, flow, lifecycle.
- Real production example โ how it actually shows up on the job.
- Commands, explained โ never a command without why.
- Beginner mistakes vs Senior insights โ the gap this book is closing.
- Memory shortcuts โ the hooks that survive to interview day.
- โฉ๏ธ Recall gate (top, from earlier modules) โ Summary โ Self-check quiz (answers hidden in
<details markdown="1">โ memory se pehle) โ Hands-on lab (with a โ success looks like check) โ Interview questions โ Production challenge.
5. The 5 Golden Threads (read these five times)¶
These ideas recur in every module. Spot them everywhere and the toolchain collapses from "9 things to memorize" into "1 idea, 9 costumes." Full treatment in 09-connected-system.
| # | Thread | One-line | Shows up in |
|---|---|---|---|
| 1 | Reconciliation | A loop constantly drives current state toward desired state. | Terraform, Ansible, Kubernetes, Argo CD |
| 2 | State outside, compute disposable | Keep state (DB, tfstate) outside; then servers/pods are throwaway "cattle." | tfstate in S3, stateless pods, Spot instances |
| 3 | Preview before apply | Always dry-run before you change reality. | terraform plan, ansible --check, kubectl --dry-run, CI test gate |
| 4 | Push vs Pull | Who initiates the change โ the doer, or the target? | Ansible/CI = push; Argo CD = pull; Git = the middle |
| 5 | Idempotent | Running it again changes nothing new. SET, not +=. |
Every tool in this book |
6. Source & provenance¶
This handbook consolidates and de-duplicates ~20 prior working documents (field manuals, bootcamp notes, glossaries, capstone deep-dives, and lab gotchas). The originals are preserved unchanged in _source-archive/ for reference.
New to the terminal, Git, or the cloud? Start at 00a โ Pre-flight, then 00b โ Setup. Already comfortable with the basics? Jump straight to 01 โ M0: Foundations & Mental Model.