DevOps Internship Interview Questions for Freshers (with Answers)
By K. Boopathikumar, CEO & Founder · 16 November 2026 · 8 min read
DevOps is about shipping software quickly and safely. Intern interviews test Linux and Git basics, how a CI/CD pipeline works, containers, and how you would find out what went wrong in production.
Git and Linux
- git merge vs git rebase? Merge joins branches and keeps history as it happened, with a merge commit. Rebase replays your commits on top of another branch for a straight history; never rebase shared branches.
- How do you undo a pushed commit safely? Use git revert, which adds a new commit that undoes it, instead of rewriting shared history.
- How do you find what is using port 8080 on Linux? Use ss -tulpn or lsof -i :8080.
- How do you check why a service failed? systemctl status for the service, then journalctl -u servicename for its logs.
CI/CD and containers
- What is CI/CD? Continuous integration builds and tests every change automatically; continuous delivery or deployment releases tested changes to environments automatically.
- What stages does a typical pipeline have? Checkout, install, lint, test, build an artifact or image, scan it, deploy to staging, then production with approval or automatic checks.
- Container vs virtual machine? Containers share the host kernel and start in seconds; VMs include a full operating system and are heavier but more isolated.
- What makes a good Dockerfile? A small base image, dependencies installed before copying code (for caching), a non-root user, and multi-stage builds to keep the final image small.
- Blue-green vs canary deployment? Blue-green switches all traffic to a new copy at once, with instant rollback. Canary sends a small share of traffic first and grows it if metrics stay healthy.
Infrastructure and monitoring
- What is infrastructure as code? Defining servers, networks and services in files (Terraform, Ansible) so changes are reviewed, versioned and repeatable.
- Terraform vs Ansible? Terraform creates and manages infrastructure declaratively; Ansible configures servers and installs software. Teams often use both.
- Metrics, logs and traces: what is the difference? Metrics are numbers over time (CPU, error rate), logs are event records, and traces follow one request through many services.
- What are the four golden signals? Latency, traffic, errors and saturation: the key measures of a service's health.
How to answer well in the interview
- Explain a pipeline you built step by step, including what happens when tests fail.
- Show comfort on the Linux command line; it is used in every DevOps interview.
- Mention secrets management; never hard-code passwords in pipelines.
- For troubleshooting questions, start with 'what changed recently'.
Next steps
- Study the free DevOps learning path and take its module quizzes for a free certificate.
- Follow the DevOps skill track from basic to advanced.
- Do real, reviewed work in a DevOps internship and keep every project in your own GitHub.