Chapter 1: What is DevOps?
Friends, today we build the foundation of DevOps. Not tools first — first the problem of developers versus operations. Operations means the people who keep servers healthy. Once you feel that pain, every tool in this course will make sense.
मित्रांनो, आज आपण DevOps ची foundation घेऊया. Tools नाही – पहिल्यांदा developers vs operations ची समस्या. Operations म्हणजे server-side कर्मचारी. ही वेदना कळली की course मधील प्रत्येक tool समजेल.
दोस्तों, आज हम DevOps की foundation लेंगे. पहले tools नहीं – पहले developers vs operations की समस्या. Operations यानी server-side कर्मचारी. यह दर्द समझ आया तो course का हर tool समझ में आएगा.
What you will learn in this chapter
- Why DevOps exists (dev vs ops wall)
- What operations means in plain English
- Instagram / Netflix / Infosys suppose stories
- The DevOps loop and starter tools
- CALMS, CI vs CD, roles beside AWS
Concepts in this chapter
- 1.1Why do we need DevOps?
- 1.2What does “operations” mean? (say it simply)
- 1.3What is the problem? Suppose we are…
- 1.4How DevOps answers that same fight
- 1.5CALMS — five ideas in plain English
- 1.6CI vs CD vs deploy vs release
- 1.7Tools beginners learn first
- 1.8Roles students see in job posts
- 1.9Common misconceptions
- 1.10A day in the life — junior DevOps (story)
- 1.11Where this course fits beside AWS
The chapter recap is at the end of the last concept page.
Practice Tasks
Suppose we are on the DevOps team at Zomato, the food delivery company, working from Gurugram. Aman Gupta leads the team, and we look after the order tracking app. Costs are counted in INR. In the tasks below we do real DevOps jobs on this project using what this lesson teaches. Zomato is a real company, but this project, the people, servers, IP addresses and numbers are made up for practice.
0 / 12
Easy Name the practice
Why: Knowing the names helps you in interviews and design talks.
What to do: At Zomato every developer merges small changes into main several times a day, and each merge is built and tested automatically. What is this practice called (two-letter short form)?
- Write down the facts or numbers the task gives you.
- Work it out step by step.
- Type only the final answer (one word or number) in the box.
- Click Check answer.
Easy List all files with details
Why: Hidden files (like .env) and file sizes or owners only show with the right options.
What to do: Show a long listing of every file, including hidden ones, in /var/www/zomato.
- Find the Linux command that does this job.
- Add the options (like -r or -h) the task needs.
- Add the file names, folders or users in the right order.
- Click Check answer.
Easy Which port does the user hit?
Why: Mixing host and container ports is the most common docker mistake.
What to do: A container was started with -p 8443:8000. Which port do you open in the browser on the host?
- Write down the facts or numbers the task gives you.
- Work it out step by step.
- Type only the final answer (one word or number) in the box.
- Click Check answer.
Easy Stage every change
Why: Before the first commit you usually want every new file included.
What to do: Stage every new and changed file in the current folder and below.
- Read the task and pick the tool it needs (git, docker, kubectl, terraform, ansible...).
- Write the tool name, then the sub-command (the action word).
- Add the flags the task needs, each followed by its value.
- Add names, files or paths at the end, then click Check answer.
Easy Stage one file
Why: Only staged changes go into the next commit.
What to do: Stage only the file Dockerfile for the next commit.
- Read the task and pick the tool it needs (git, docker, kubectl, terraform, ansible...).
- Write the tool name, then the sub-command (the action word).
- Add the flags the task needs, each followed by its value.
- Add names, files or paths at the end, then click Check answer.
Easy Clone a repository
Why: Cloning gives you the full project and its history on your machine.
What to do: Download the repository https://github.com/zomato/zomato-order-tracking.git to this machine.
- Read the task and pick the tool it needs (git, docker, kubectl, terraform, ansible...).
- Write the tool name, then the sub-command (the action word).
- Add the flags the task needs, each followed by its value.
- Add names, files or paths at the end, then click Check answer.
Easy Commit with a message
Why: A clear message tells the team why the change was made.
What to do: Commit the staged changes with the message "Add health check to order-tracking".
- Read the task and pick the tool it needs (git, docker, kubectl, terraform, ansible...).
- Write the tool name, then the sub-command (the action word).
- Add the flags the task needs, each followed by its value.
- Add names, files or paths at the end, then click Check answer.
Medium Delivery or deployment?
Why: The two words mean different levels of automation.
What to do: At Zomato every change that passes tests goes to production automatically, with no human approval. Is this continuous delivery or continuous deployment? Type one word.
- Write down the facts or numbers the task gives you.
- Work it out step by step.
- Type only the final answer (one word or number) in the box.
- Click Check answer.
Medium Run the build inside a Docker agent
Why: A Docker agent gives a clean, versioned toolchain for every build.
What to do: Declarative pipeline with agent docker { image 'maven:3.9-eclipse-temurin-21' } and stage Build running sh 'mvn -B verify'.
- Start with pipeline { and close it with } at the end.
- Add agent, then stages { } with one stage('Name') { steps { } } per step.
- Put the commands inside steps using sh '...'.
- Count your { and } so every block is closed, then click Check answer.
Hard Name the approach
Why: GitOps tools like Argo CD are now common in K8s teams.
What to do: At Zomato a tool inside the cluster keeps pulling manifests from a Git repo and makes the cluster match it. What is this approach called (one word)?
- Write down the facts or numbers the task gives you.
- Work it out step by step.
- Type only the final answer (one word or number) in the box.
- Click Check answer.
Hard Build and push an image from CI
Why: Every merge to main gives a fresh image in the registry.
What to do: Workflow on push to main. Job image on ubuntu-latest. Steps: actions/checkout@v4; docker/login-action@v3 with registry ghcr.io, username ${{ github.actor }}, password ${{ secrets.GITHUB_TOKEN }}; docker/build-push-action@v6 with push true and tags ghcr.io/zomato-order-tracking:${{ github.sha }}.
- Start from the top-level keys the task names.
- Indent child keys with 2 spaces (no tabs).
- Use "- " for list items and fill each value from the task.
- Check the colons and spacing, then click Check answer.
Hard Use Jenkins credentials safely
Why: withCredentials masks the password and removes it after the block.
What to do: Inside stage Push steps, use withCredentials with usernamePassword(credentialsId: 'reg-cred', usernameVariable: 'U', passwordVariable: 'P') and run sh 'echo $P | docker login -u $U --password-stdin registry.zomato.example.com'. Wrap it in a full declarative pipeline with agent any.
- Start with pipeline { and close it with } at the end.
- Add agent, then stages { } with one stage('Name') { steps { } } per step.
- Put the commands inside steps using sh '...'.
- Count your { and } so every block is closed, then click Check answer.
Ravi Sir's Cards: 25 revision, interview and comparison cards for this chapter · मराठी cards