DevOps Interview Questions Commonly Asked in Pune
42 DevOps interview questions on topics commonly tested in Pune: Linux, Git, CI/CD, Docker, Kubernetes, Terraform and monitoring, with answers by level.
DevOps interviews in Pune usually cover the same core topics as anywhere in India: Linux, Git, CI/CD pipelines, Docker, Kubernetes, one cloud platform, infrastructure as code and monitoring, followed by troubleshooting scenarios. This page lists 42 commonly asked questions on those topics with direct answers, grouped by experience level.
We do not claim these are any specific employer's questions. They are the topics that DevOps job descriptions and interview loops consistently test, written up so you can check your own gaps. For the full bank, see our 200+ DevOps interview questions guide. For how interview rounds are structured, read the companion post on DevOps interview rounds in Pune.
Key takeaways
- Expect questions across eight areas: Linux, networking basics, Git, CI/CD, containers, Kubernetes, cloud and IaC, and monitoring.
- Freshers are tested on fundamentals and simple commands. Mid-level candidates are asked to design and debug pipelines. Seniors are asked about trade-offs, security and incidents.
- Most interviewers follow a short answer with "how did you do that in your project?", so prepare one real project you can explain.
- Scenario questions (a failed deploy, a full disk, a pod that will not start) carry the most weight beyond fresher level.
- Pune candidates can interview in person or remotely; preparation is the same.
Topic map: what gets asked at each level
| Topic | Freshers | 2 to 5 years | Senior |
|---|---|---|---|
| Linux | Permissions, processes, logs | Performance, disk, systemd | Hardening, kernel tuning trade-offs |
| Git | Branch, merge, revert | Branching strategy, rebase | Monorepo vs polyrepo, policy |
| CI/CD | Stages of a pipeline | Write and debug a pipeline | Release strategy, governance |
| Containers | Image vs container | Multi-stage builds, image size | Supply chain security |
| Kubernetes | Pod, Deployment, Service | Probes, rollouts, debugging | Multi-cluster, cost, security |
| Cloud and IaC | IaaS vs PaaS, basic services | Terraform state, modules | Landing zones, drift, DR |
| Monitoring | Metrics vs logs | Prometheus, alerting rules | SLOs, incident process |
Freshers (questions 1 to 16)
1. What is DevOps?
A way of working where development and operations share responsibility for building, releasing and running software, supported by automation such as CI/CD and infrastructure as code. Our what is DevOps guide covers the background.
2. What is the difference between continuous integration, continuous delivery and continuous deployment?
CI merges and tests code often. Continuous delivery keeps every change releasable, with a manual approval before production. Continuous deployment releases every passing change to production automatically.
3. How do you check which process is using a port on Linux?
ss -tlnp lists listening TCP sockets with the owning process. lsof -i :8080 also works if installed.
4. How do you find what is filling a disk?
df -h shows which filesystem is full, then du -sh /path/* | sort -h narrows it to a directory. Old logs and container images are common causes.
5. What do file permissions 755 mean?
Owner can read, write and execute; group and others can read and execute.
6. What is the difference between git merge and git rebase?
Merge joins histories with a merge commit. Rebase replays your commits on top of another branch to give a linear history. Do not rebase commits that others have already pulled.
7. How do you undo a commit that is already pushed?
git revert <commit> creates a new commit that reverses it, which is safe on shared branches. git reset rewrites history and should stay on local branches.
8. What is the difference between a Docker image and a container?
An image is a read-only template. A container is a running instance of an image with its own writable layer.
9. What is a Dockerfile?
A text file of instructions (FROM, COPY, RUN, CMD and others) that Docker uses to build an image.
10. What is a Kubernetes pod?
The smallest deployable unit in Kubernetes: one or more containers that share a network namespace and storage volumes and are scheduled together.
11. What is the difference between a Deployment and a Service?
A Deployment manages replicas and rolling updates of pods. A Service gives those pods a stable name and IP and load balances across them.
12. What does Jenkins do in a pipeline?
Jenkins is an automation server that runs build, test and deploy steps when triggered, for example by a Git push. Pipelines are written in a Jenkinsfile.
13. What is infrastructure as code?
Defining servers, networks and other infrastructure in version-controlled files, then applying them with a tool such as Terraform or Ansible instead of manual changes.
14. What is the difference between monitoring and logging?
Monitoring tracks metrics over time and alerts on thresholds. Logging stores event records you search when investigating. Both are needed.
15. What is a load balancer?
A component that spreads incoming traffic across several servers and stops sending traffic to unhealthy ones.
16. What happens when you type a URL into a browser?
DNS resolves the name to an IP, the browser opens a TCP connection (and TLS for HTTPS), sends an HTTP request, and the server returns a response that the browser renders. Interviewers use this to test networking basics.
2 to 5 years (questions 17 to 32)
17. How would you design a CI/CD pipeline for a microservice?
On each pull request: build, unit tests, static analysis and image build. On merge to main: push a versioned image, deploy to staging, run integration tests, then deploy to production with approval or progressive rollout. Keep the pipeline as code.
18. How do you make Docker images smaller?
Use multi-stage builds so build tools stay out of the final image, start from a slim or distroless base, combine related RUN steps, and use a .dockerignore file.
19. What is the difference between liveness, readiness and startup probes?
A failing liveness probe makes the kubelet restart the container. A failing readiness probe removes the pod from Service endpoints without restarting it. A startup probe holds off the other probes until a slow app has started.
20. A pod is in CrashLoopBackOff. How do you debug it?
kubectl logs <pod> --previous for the last crash output, kubectl describe pod for exit code and events, then check config, secrets, memory limits and probes.
21. How do you roll back a bad Kubernetes deployment?
kubectl rollout undo deployment/<name> returns to the previous ReplicaSet. With GitOps, revert the commit in the config repository instead so Git stays the source of truth.
22. What is Terraform state and why does locking matter?
State maps your configuration to real resources. Keep it in a remote backend that supports locking, so two people cannot write state at the same time and corrupt it. HashiCorp says force-unlock should only be used to release your own lock when automatic unlocking failed.
23. How do you handle secrets in pipelines?
Keep them in a secret store such as HashiCorp Vault, AWS Secrets Manager or Azure Key Vault, inject them at runtime, mask them in logs, and prefer short-lived credentials such as OIDC federation over long-lived keys.
24. What is a Kubernetes Ingress?
An API object that routes external HTTP and HTTPS traffic to Services based on host and path rules. It needs an ingress controller running in the cluster.
25. What is the difference between Ansible and Terraform?
Terraform is mainly used to provision infrastructure and tracks it in state. Ansible is mainly used to configure servers and deploy applications over SSH without an agent. Many teams use both.
26. How do you write a Prometheus alert that does not fire on short spikes?
Add a for duration to the alerting rule so the condition must hold for a period, such as five minutes, before the alert fires.
27. What is blue-green deployment?
Two identical environments. You deploy to the idle one, test it, then switch traffic. Rollback is switching back.
28. What is a canary release?
Sending a small share of traffic to the new version, watching error rate and latency, then increasing the share or rolling back.
29. How do you speed up a slow pipeline?
Measure step durations first, then cache dependencies and Docker layers, run independent jobs in parallel, and only run expensive tests when relevant files change.
30. What branching strategy do you prefer and why?
Trunk-based development with short-lived feature branches suits teams that deploy often. Release branches help when several versions must be supported. Give the reason tied to your project.
31. What is GitOps?
Managing deployments by storing desired state in Git and letting a controller such as Argo CD or Flux reconcile the cluster to match it.
32. How do you secure a container image in the pipeline?
Scan for vulnerabilities, use minimal base images, run as non-root, sign images and only allow signed images to deploy.
Senior (questions 33 to 37)
33. How do you set SLOs for a service?
Choose indicators users feel, such as availability and latency, set targets with product owners, and use the error budget to balance release speed against reliability.
34. How would you design a multi-environment Terraform setup?
Reusable modules, separate state per environment and component, a remote backend with locking, and changes applied only through a pipeline that runs terraform plan for review first.
35. How do you reduce cloud costs without hurting reliability?
Rightsize from usage data, autoscale, use commitment discounts for steady load, shut down idle non-production resources and tag everything for ownership.
36. How do you run a blameless post-incident review?
Write a timeline, find contributing causes in process and systems rather than people, agree on actions with owners and dates, and track them to completion.
37. How do you decide between managed Kubernetes and self-managed clusters?
Managed services remove control plane work and are the default for most teams. Self-managed makes sense for strict on-premises or regulatory needs and when the team can run it.
Scenarios (questions 38 to 42)
38. Scenario: the site is down right after a deployment.
Confirm impact, roll back first if the deployment is the likely cause, then investigate with logs and metrics. Restore service before finding root cause.
39. Scenario: a server's disk is 100 percent full at night.
Free space safely (rotate or compress logs, prune unused images), find the growth source with du, then add log rotation and a disk usage alert.
40. Scenario: Terraform wants to destroy and recreate a production database.
Stop. Read the plan to find which attribute forces replacement. Fix the config or import state, and use prevent_destroy lifecycle rules on critical resources.
41. Scenario: builds pass locally but fail in CI.
Compare tool versions, environment variables and dependency caches. Build inside the same container image the CI uses to reproduce it.
42. Scenario: a secret was committed to Git.
Rotate it immediately, remove it from history if needed, and add secret scanning to pre-commit hooks and the pipeline.
How to prepare in Pune
Pick one cloud, build one project that covers a pipeline, a container, a Kubernetes deploy, Terraform and a monitoring dashboard, and practise explaining it aloud. If you prefer structured practice with mock interviews, our DevOps training in Pune runs in a classroom in Kharadi and live online. You can also use the short list in 20 most common DevOps interview questions for a last-day review.
FAQ
Are DevOps interview questions in Pune different from other cities?
The topics are the same as elsewhere: Linux, Git, CI/CD, containers, Kubernetes, cloud, IaC and monitoring. What changes is the role and the tools listed in the job description.
What do freshers get asked in DevOps interviews?
Linux commands, Git basics, the difference between CI and CD, Docker images and containers, Kubernetes pods and Services, and basic networking.
Which tools should I learn first for DevOps interviews?
Linux and Git first, then one CI tool such as Jenkins or GitHub Actions, Docker, Kubernetes, one cloud provider and Terraform.
How important are scenario questions?
Very important beyond fresher level. Interviewers want to hear the order of your checks and how you would prevent a repeat.
Should I memorise answers?
No. Learn the concept and connect each answer to something you built, because follow-up questions test real experience.
Can I prepare for DevOps interviews online from Pune?
Yes. Labs, cloud free tiers and live online classes work the same way as in-person study.
Official references
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Angry
0
Sad
0
Wow
0