DAILYJOBS Fresher IT · India

All jobs / Guides / DevOps & cloud interview questions

Interview questions · Updated 10 November 2026

DevOps and Cloud Interview Questions for Freshers (with Answers)

Entry-level DevOps and cloud interviews test fundamentals: can you find your way around a Linux box, use Git properly, explain what a container is and describe a deployment pipeline. Hands-on answers ("here is how I did it in my project") beat definitions.

Linux and Git

How do file permissions work in Linux?

Each file has read (4), write (2) and execute (1) permissions for the owner, the group and others. chmod 754 gives the owner rwx, the group r-x and others r--. chown changes the owner.

How do you check what is using CPU, memory, disk and a port?

top or htop for CPU and memory per process, free -h for memory, df -h for disk space and du -sh for a directory’s size, and ss -tulpn (or netstat) to see which process is listening on a port.

How do you search logs?

grep to find lines matching a pattern (grep -i error app.log), tail -f to follow a log live, and less to page through a large file. Pipes combine them: tail -n 1000 app.log | grep ERROR.

What is the difference between git merge and git rebase?

Merge joins two branches with a merge commit and preserves history as it happened. Rebase replays your commits on top of another branch, giving a linear history but rewriting commit IDs, so you do not rebase commits others have already pulled.

What is the difference between git fetch and git pull?

fetch downloads new commits from the remote without changing your working branch. pull is fetch followed by a merge (or rebase) into your current branch.

Containers and Kubernetes

What is the difference between a container and a virtual machine?

A VM virtualises hardware and runs a full guest operating system, so it is heavy and slow to start. A container shares the host’s kernel and isolates only the process and its dependencies, so it is small and starts in seconds.

What is the difference between a Docker image and a container?

An image is a read-only template built from a Dockerfile. A container is a running instance of an image. One image can run as many containers.

What is the difference between CMD and ENTRYPOINT in a Dockerfile?

ENTRYPOINT sets the executable the container always runs. CMD supplies default arguments, or the default command when there is no ENTRYPOINT, and is replaced by whatever you pass to docker run.

What is Kubernetes, and what are a Pod, a Deployment and a Service?

Kubernetes runs and manages containers across a cluster of machines. A Pod is the smallest unit, one or more containers sharing a network address. A Deployment keeps a set number of identical Pods running and handles rolling updates. A Service gives those Pods one stable address and load-balances between them.

CI/CD and cloud

What is CI/CD?

Continuous integration means every push is automatically built and tested, so problems surface early. Continuous delivery means every passing build is ready to release; continuous deployment releases it automatically.

Describe a typical pipeline.

A push triggers the pipeline: check out the code, install dependencies, run linters and tests, build an artifact or Docker image, push it to a registry, deploy to a staging environment, run checks, then deploy to production, often after an approval.

What is infrastructure as code?

Defining servers, networks and other infrastructure in version-controlled files (Terraform, CloudFormation) instead of clicking in a console, so environments are repeatable, reviewable and easy to recreate.

What are EC2, S3 and IAM?

EC2 provides virtual servers. S3 is object storage for files of any size. IAM controls who can do what: users, roles and the policies attached to them.

What is the difference between a security group and a network ACL in AWS?

A security group is a stateful firewall on an instance: if a request is allowed in, the reply is allowed out automatically. A network ACL is a stateless firewall on a subnet with separate inbound and outbound rules, including explicit deny rules.

What is the difference between horizontal and vertical scaling?

Vertical scaling gives one machine more CPU or memory. Horizontal scaling adds more machines behind a load balancer. Horizontal scaling has no single-machine limit and tolerates failures, but the application must be designed for it.

What is a load balancer?

A component that spreads incoming requests across several servers and stops sending traffic to ones that fail health checks, improving both capacity and availability.

A project that gets you shortlisted

  • Take any small web app and write a Dockerfile for it.
  • Add a GitHub Actions pipeline that tests, builds the image and pushes it to a registry.
  • Deploy it to a cloud free tier, with the infrastructure defined in Terraform.
  • Add basic monitoring or at least health checks and logs you can show.
  • Write a README with an architecture diagram. Being able to walk through it end to end is worth more than a certificate.

Never miss a fresher job

New openings every day. Get them the moment they're posted.