Junior DevOps Engineer Interview Questions & Answers
40 questions for Junior DevOps Engineer interviews — 22 easy, 16 medium, 2 hard.
About the Junior DevOps Engineer role
A junior DevOps engineer supports the build and release process: maintaining CI pipelines, writing shell scripts, managing Linux servers, building Docker images and helping with deployments to test and production environments. They work under senior engineers, handle routine tickets such as access requests and pipeline failures, and learn cloud and Kubernetes on the job. Freshers with strong Linux, Git and scripting basics plus a few hands-on projects are hired into this role.
What is the difference between a container and a virtual machine?
Show answer
Which Docker commands do you use to debug a running container?
Show answer
How do you create a release tag and push it?
Show answer
Write a script that alerts when any disk partition is above 80 percent used.
Show answer
What is Git and how is it different from GitHub?
Show answer
A container exits immediately after it starts. How do you debug it?
Show answer
What are the typical stages of a CI/CD pipeline?
Show answer
Write a bash script that checks whether a service is running and restarts it if not.
Show answer
What is the difference between sudo and su?
Show answer
What is the difference between continuous integration, continuous delivery and continuous deployment?
Show answer
What is the difference between a process and a thread in Linux?
Show answer
What is the difference between kill, kill -15 and kill -9?
Show answer
What is the difference between git fetch and git pull?
Show answer
Write a GitHub Actions workflow that runs tests on every pull request.
Show answer
What is the difference between a Docker image and a container?
Show answer
What is Docker Compose?
Show answer
Explain Docker network types.
Show answer
Explain the Linux boot process briefly.
Show answer
How do you find files larger than 100 MB and older than 7 days under /var/log?
Show answer
Why do you want to build a career in DevOps?
Show answer
Tell me about a time you automated a repetitive manual task.
Show answer
How do you view the commit history in a compact graph form?
Show answer
How do you limit CPU and memory for a container?
Show answer
What are the S3 storage classes and lifecycle policies?
Show answer
What is the difference between git revert and git reset?
Show answer
What is the difference between COPY and ADD in a Dockerfile?
Show answer
What are zombie and orphan processes?
Show answer
Your app fails to start with 'address already in use' on port 8080. What do you do?
Show answer
How do you use git bisect to find the commit that introduced a bug?
Show answer
How do you use stored credentials inside a Jenkins pipeline?
Show answer
The build works on your laptop but fails on the CI server. How do you debug it?
Show answer
How do you prioritise when several teams ask you for infrastructure work at the same time?
Show answer
What is the difference between volumes and bind mounts?
Show answer
Write a production-ready Dockerfile for a Node.js application.
Show answer
What is an artefact repository and why is it used?
Show answer
How do you handle the stress of on-call duty?
Show answer
An EC2 instance in a private subnet cannot download packages from the internet. Why?
Show answer
How do you create a new branch, push it and set the upstream?
Show answer
Write a Docker Compose file for a web app with a PostgreSQL database.
Show answer
Frequently asked questions
What does a Junior DevOps Engineer do?
A junior DevOps engineer supports the build and release process: maintaining CI pipelines, writing shell scripts, managing Linux servers, building Docker images and helping with deployments to test and production environments. They work under senior engineers, handle routine tickets such as access requests and pipeline failures, and learn cloud and Kubernetes on the job. Freshers with strong Linux, Git and scripting basics plus a few hands-on projects are hired into this role.
Which skills are tested in a Junior DevOps Engineer interview?
Expect questions on Linux administration, Bash scripting, Git workflows, Jenkins pipelines, Dockerfiles. Most rounds also ask you to explain a project and solve one practical problem live.
How do I prepare for a Junior DevOps Engineer interview?
Revise Linux and Shell Scripting, Git and Version Control, CI/CD Pipelines, Docker and Containers first using the topic sheets, practise the questions on this page aloud, then do one full mock interview to practise timing.