DevOps and cloud engineer interview questions

A DevOps or cloud engineer interview usually covers Docker images and containers, Kubernetes deployments and safe rollouts, AWS compute and high availability, Git workflows and incident response. Interviewers want calm, structured thinking under pressure and a habit of testing failover instead of assuming it works. Prepare one outage story told in STAR form.

· 10 questions · Questions from the MiraiHire question bank; tips written by the MiraiHire team.

Technical questions

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

    Foundational

    What the interviewer is looking for: An image is the read-only template; a container is a running instance of it. Mention layers and why images are reusable.

  2. How do you keep Docker images small and secure?

    Applied

    What the interviewer is looking for: Talk about multi-stage builds, minimal base images, not running as root, no secrets in layers, and scanning for vulnerabilities.

  3. What problem does a Kubernetes Deployment solve compared with running a single pod?

    Applied

    What the interviewer is looking for: Explain desired state: replicas, self-healing when a pod dies, and rolling updates with rollback.

  4. How would you roll out a risky change to a Kubernetes service with minimal downtime?

    Advanced

    What the interviewer is looking for: Mention readiness probes, canary or blue-green releases, watching metrics, and a quick, tested rollback plan.

  5. What is the difference between EC2, Lambda and a managed container service on AWS?

    Applied

    What the interviewer is looking for: Compare control, scaling, cost model and run-time limits, then give a workload that fits each one.

  6. How would you design an AWS setup that survives the loss of one availability zone?

    Advanced

    What the interviewer is looking for: Spread instances across zones behind a load balancer, use a multi-AZ database, and test failover instead of assuming it works.

  7. What is the difference between git merge and git rebase?

    Foundational

    What the interviewer is looking for: Merge keeps history with a merge commit; rebase rewrites it into a straight line. Say when you avoid rebasing shared branches.

Situational questions

  1. A production issue affects customers and the cause is unclear. Walk me through your first hour.

    Advanced

    What the interviewer is looking for: Show calm order: assess impact, communicate, stop the bleeding (rollback or workaround), then investigate and write down what you learn.

  2. A deadline is at risk because of a problem you found late. What do you do?

    Applied

    What the interviewer is looking for: Raise it early with facts and options (cut scope, add help, move the date), rather than hoping to catch up silently.

  3. You are asked to deliver in half the planned time. How do you decide what to cut?

    Advanced

    What the interviewer is looking for: Separate must-haves from nice-to-haves with the stakeholder, protect quality and safety, and state the trade-offs clearly.

Practise these questions

MiraiHire gives you interview practice sets from this question bank, by text or voice, with feedback. Free to start.

Start practising free