Skip to the page

30 questions · 8 rounds

DevOps engineer interview questions

Questions from real DevOps engineer rounds, grouped by the round that asks them. Open one for the follow-ups, what a strong answer covers and the traps. Then say your answer out loud: see the DevOps engineer mock interview.

Part 1 · 8 questions

Technical screen

  1. Requests, limits, QoS and eviction

    Kubernetes · Concept · Mid, Senior

    Explain requests and limits for CPU and memory in Kubernetes. What are the three QoS classes, and what's the difference between a pod being OOMKilled and a pod being evicted?

  2. Disk full on a MySQL server, but du finds only half

    Linux · Scenario · Mid, Senior

    At 1 am, MySQL on a VM stops accepting writes. df says the data disk is 100% full. You run du over the whole disk and it adds up to only about 260 GB of the 500. A teammate says they…

  3. GitOps with Argo CD or Flux

    CI/CD · Concept · Mid, Senior

    What is GitOps, and why do teams use a pull model with Argo CD or Flux instead of having CI run kubectl apply? How would you lay out the Git repositories for many services and three…

  4. CIDR blocks and subnet sizes

    Networking · Concept · Mid

    What does 10.20.0.0/16 mean? How many addresses are in a /24 and a /20, and how many can you actually use in an AWS subnet? Why do people say 'pick your VPC CIDR carefully'?

  5. Review this Dockerfile

    Containers · Write code · Mid, Senior

    A team wants to ship this Dockerfile for a Python API. Every build takes eight minutes even for a one-line change, and the image is 1.4 GB. What would you change, and why? (code)

  6. terraform plan wants to destroy the production database

    Infrastructure as code · Scenario · Mid, Senior

    A pull request refactors our Terraform into modules. The plan in CI shows the production RDS database will be destroyed and created again. The PR already has two approvals, and merging…

  7. EC2, ECS, EKS or Lambda for a small team

    Cloud and AWS · Trade-off · Senior, Lead

    A startup with four engineers is moving six services and a few cron jobs from one big EC2 server to something more reliable on AWS. Would you pick EC2 with Auto Scaling, ECS on Fargate…

  8. Review these Prometheus alert rules

    Observability and SRE · Write code · Senior

    These are the alerts for our checkout API. The team says they get paged at night for nothing, and last month they missed a real outage. What's wrong with them, and what would you write…

Part 2 · 13 questions

Tech stack deep dive

  1. Build a sliding-window rate limiter in Lua

    Redis in depth · Build it · Mid, Senior

    Write a Redis-based rate limiter for our OTP API: at most 5 OTP requests per phone number in any 10-minute window, across all API servers. Write the Lua script and the code that calls it…

  2. A consumer loop that loses emails

    Kafka · Write code · Mid, Senior

    This Python consumer sends order confirmation emails. After a pod restart, some customers never got their email, and the logs show no errors. Why? (code)

  3. A messaging problem you debugged

    Messaging patterns · Your experience · Mid, Senior, Lead

    Tell me about a real problem you hit with a queue, Kafka or Redis in production. What happened, how did you find the cause, and what did you change?

  4. Design a REST API for orders

    Microservices and APIs · Design · Mid

    Design the REST API for orders in our e-commerce backend: create an order, fetch one, list a user's orders, and cancel one. Tell me the URLs, methods, status codes, and how pagination and…

  5. Rate-limit the OTP endpoint at Nginx

    Nginx and API gateways · Build it · Mid, Senior

    Write the Nginx config to protect POST /auth/otp/send: at most 20 requests a minute per IP, and a JSON 429 when the limit is hit. Nginx is behind a load balancer. Then tell me what Nginx…

  6. Direct, topic and fanout exchanges

    RabbitMQ · Concept · Mid

    In RabbitMQ a producer never sends straight to a queue. Explain exchanges, bindings and routing keys. With a topic exchange and these bindings, which queues get a message published with…

  7. A new product doesn't show up in search

    Search and Elasticsearch · Scenario · Mid, Senior

    A seller added a product an hour ago. It's on the product page, but search can't find it, and other sellers say the same. Our pipeline is Postgres, then Debezium into Kafka, then an…

  8. Build an SQS worker that handles failures

    Cloud queues · Build it · Mid, Senior

    Write a worker in Python with boto3, or in Node with the AWS SDK v3, that reads 'generate invoice' jobs from SQS, runs them and handles failures properly. It runs in a container, not Lambda.

  9. Design API keys for partners

    OAuth and login providers · Design · Mid, Senior

    Design API keys for our partner API: how they're created, shown, stored, sent, checked, limited and rotated.

  10. Counter, gauge, histogram or summary

    Observability for developers · Concept · Mid, Senior

    Explain Prometheus's four metric types with one example each from an orders service. For request latency, which one would you use, and why not just record the average?

  11. Caching a GraphQL API

    GraphQL · Concept · Mid, Senior

    Our home screen comes from GraphQL, and every request is a POST to /graphql, so the CDN caches nothing. How can you cache a GraphQL API, and at which layers?

  12. A partner got the same webhook three times

    Real-time APIs · Scenario · Mid, Senior

    A partner complains that our order.delivered webhook reached them three times for the same order, and their system raised three invoices. They want us to 'send it only once'. What do you…

  13. The four kinds of gRPC call

    gRPC · Concept · Mid, Senior

    gRPC has unary calls and three kinds of streaming. Explain each one with a real example from a delivery app, and tell me what happens on the wire.

Part 3 · 1 question

Cloud architecture

  1. Back-of-the-envelope estimation for a photo app

    Reliability and scale · Design · Mid, Senior, Lead

    Before we design anything, estimate the scale for a photo-sharing app with 10 crore daily active users. How many uploads and feed reads a second, how much storage a year, and how much…

Part 4 · 1 question

Production incident

  1. API p99 latency jumps after a deploy

    Production incidents · Scenario · Mid, Senior

    We deployed the orders service at 4 pm. Since then, p99 latency on the order details API went from about 300 milliseconds to 4 seconds. p50 has barely moved, and the error rate is still…

Part 5 · 4 questions

Techno-managerial

  1. Tech debt or new features

    Techno-managerial · Trade-off · Senior, Lead

    Your team's build takes 25 minutes, flaky tests block merges, and a state library is two major versions behind. Product wants three new features this quarter and no slowdown. How do you…

  2. SLOs and an error budget for a payments API

    Monitoring & on-call · Design · Senior, Lead

    Our payments API has no SLOs. Your manager asks you to set them. Which SLIs and targets would you choose, and what happens when the error budget runs out?

  3. Unit, integration, contract and load tests for a service

    Testing a feature · Trade-off · Mid, Senior

    For a backend service with a REST API, a Postgres database and two services it calls, how would you split your testing between unit, integration, contract and load tests? Where does most…

  4. How you use AI tools day to day

    AI at work · Your experience · Mid, Senior

    How do you use AI tools in your work today? Give me a real example from the last month.

Part 6 · 1 question

Resume deep dive

  1. "Architected / built from scratch" — the whiteboard test

    Resume deep-dive · Your experience · Senior, Lead

    Draw the architecture of the system you 'architected'. Where does the data and state live? How does auth work? How is it built and deployed?

Part 7 · 1 question

Behavioural / HM

  1. Code-review and debugging rounds

    Leadership & behavioural · Write code · Senior

    "Here's a teammate's pull request in the stack you work in. Review it like a real PR." Or: "This app has bugs and four failing tests. Fix them while thinking aloud."

Part 8 · 1 question

Recruiter / HR round

  1. Background verification

    HR & recruiter · Your experience · Mid, Senior, Lead

    Our BGV partner will verify your employment history, including UAN service history, relieving letters and education. Is there anything we should know before we start?

Reading is not answering. Say it out loud.

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview