Chapter 17: Interview Questions and Job Readiness
Friends, today is interview prep. The interviewer says: explain CI/CD to a project manager. Do not recite tool flags — tell a small incident story from the lab. Dense Q&A (Power BI interview style). Do not fear.
मित्रांनो, आज interview तयारी. Interviewer म्हणतो: CI/CD project manager ला explain करा. Tools ची flags पाठ करू नका — lab मधला छोटा incident story सांगा. Dense Q&A. घाबरू नका.
दोस्तों, आज interview तैयारी. Interviewer कहता है: CI/CD project manager को explain करो. Tools की flags रटो मत — lab वाली छोटी incident story सुनाओ. Dense Q&A. घबराओ मत.
What you will learn in this chapter
- Core Q&A across Git, Docker, CI/CD and IaC
- Kubernetes and Linux ops vocabulary answers
- Scenario debugging questions
- What juniors do in the first 90 days
- Portfolio habits without PDFs or secrets
These questions mirror what junior DevOps / cloud support / SRE-adjacent interviews often probe. Answer in clean professional English. Do not memorise word-for-word — understand, then retell with a an Instagram-style badge API lab example.
Concepts in this chapter
- 17.1DevOps culture and process
- 17.2Git and GitHub
- 17.3Linux ops refresh
- 17.4Bash and automation
- 17.5Docker
- 17.6CI/CD, Actions, Jenkins
- 17.7Ansible and Terraform
- 17.8Monitoring, logging, Kubernetes
- 17.9Scenario questions
- 17.10How to practise answers (not memorise)
- 17.11Portfolio checklist (job readiness)
- 17.12Phrases that help (and hurt)
- 17.13Pointing to deeper courses
- 17.14Lab / Practice — mock interview
Practice Tasks
Suppose we are on the DevOps team at Swiggy, the quick commerce company, working from Bengaluru. Rahul Nair leads the team, and we look after the delivery partner app. Costs are counted in INR. In the tasks below we do real DevOps jobs on this project using what this lesson teaches. Swiggy is a real company, but this project, the people, servers, IP addresses and numbers are made up for practice.
0 / 12
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:5000. 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 Name the practice
Why: IaC is the base of repeatable cloud setups.
What to do: Swiggy describes its servers, networks and databases in text files kept in Git and creates them with a tool. What is this called (three-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 Name the practice
Why: Knowing the names helps you in interviews and design talks.
What to do: At Swiggy 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.
Medium How many pods?
Why: Quick capacity maths comes up in every on-call.
What to do: One pod of Swiggy's delivery-partner handles 400 requests per second. Peak traffic is 3000 requests per second. How many replicas are needed at minimum?
- 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 Delivery or deployment?
Why: The two words mean different levels of automation.
What to do: At Swiggy 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.
Medium Name the release strategy
Why: Choosing the right strategy decides how risky a release is.
What to do: Swiggy runs two identical production environments. The new version goes to the idle one, then the router switches all traffic at once. What is this strategy called (two colours joined by a dash)?
- 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 Name the approach
Why: GitOps tools like Argo CD are now common in K8s teams.
What to do: At Swiggy 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 Name the metric
Why: DORA metrics show how healthy the delivery process is.
What to do: Which four-letter metric measures the average time to restore service after an incident?
- 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 Error budget in minutes
Why: An SLO turns into a concrete downtime budget the team can spend.
What to do: The SLO is 99.9% availability over a 30-day month. How many minutes of downtime are allowed? (30 days = 43200 minutes)
- 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/swiggy-delivery-partner:${{ 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.swiggy.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: 31 revision, interview and comparison cards for this chapter · मराठी cards