Skip to the page

30 questions · 7 rounds

Data engineer interview questions

Questions from real Data 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 Data engineer mock interview.

Part 1 · 17 questions

Technical screen

  1. DELETE, TRUNCATE and DROP

    SQL querying · Concept · Mid

    What's the difference between DELETE, TRUNCATE and DROP? If you had to empty a 200-million-row log table in production, which would you use?

  2. cache, persist, or neither

    Spark · Trade-off · Mid

    A teammate adds .cache() after almost every DataFrame in a job 'to make it faster', and the job got slower. When does caching help, when does it hurt, and what would you do instead?

  3. List comprehension or generator expression for crores of rows

    Python core · Trade-off · Mid, Senior

    You need the total amount from 5 crore transaction rows read from a file. Would you use a list comprehension, a generator expression, or a plain loop? Why?

  4. A 20-minute Spark job now takes 3 hours

    Data pipelines in production · Scenario · Mid, Senior

    A Spark job that has built the daily seller report in about 20 minutes for a year now takes 3 hours, starting last Thursday. No code changed. Walk me through how you find out why.

  5. 1,200 queries for one page

    Indexes and query performance · Scenario · Mid, Senior

    The orders page in our admin app takes 6 seconds. The database dashboard shows no single slow query, but one page load makes about 1,200 queries. What's going on, and how do you fix it?

  6. The GIL in 2026

    Python concurrency · Concept · Mid, Senior

    What is the GIL? What does it stop, what doesn't it stop, and is it going away?

  7. A deploy breaks because a dependency of a dependency changed

    Python in production · Scenario · Mid, Senior

    Nothing changed in our code, but this morning's deploy of a Python service failed: the new container crashes on start with an ImportError from a library we don't even use directly…

  8. Two buyers and the last phone

    Transactions and locking · Write code · Mid, Senior

    Two customers buy the last unit of a phone at the same moment. Both get an order confirmation, and stock shows 0. Here's the code. What went wrong? Give me two ways to fix it. (code)

  9. Grain first: a star schema for food-delivery orders

    Data modelling · Design · Mid, Senior

    Design the warehouse tables for a food-delivery app's orders, so analysts can see revenue by city, restaurant, cuisine and hour of the day. Start with the grain of your fact table.

  10. dbt models, refs and materializations

    Orchestration and dbt · Concept · Mid

    What does dbt actually do, and what doesn't it do? Explain models, ref, sources and the main materializations.

  11. Class attributes, instance attributes, classmethod and staticmethod

    Python OOP and typing · Concept · Mid

    What's the difference between a class attribute and an instance attribute? And between a normal method, a @classmethod and a @staticmethod? When do you use each?

  12. A generator pipeline over a 20 GB log file

    Python coding · Build it · Mid, Senior

    We have a 20 GB access log, one request per line: time, path, status and response time in milliseconds. Write Python that finds the 10 paths with the most 5xx errors, with their average…

  13. Tables for an e-commerce order system

    Schema design · Design · Mid, Senior

    Design the database tables for an e-commerce order system: customers, addresses, products from many sellers, carts, orders, payments and returns. Walk me through the main tables, keys and…

  14. Delivery guarantees and exactly-once claims

    Streaming and CDC · Concept · Mid, Senior

    People say Kafka gives exactly-once. What do at-most-once, at-least-once and exactly-once really mean in a pipeline from Kafka to a warehouse, and where does exactly-once stop?

  15. Parquet, ORC, Avro, CSV or JSON

    Cloud data platforms · Trade-off · Mid

    Pick a file format for each of these and tell me why: raw events coming off Kafka, the tables analysts query every day, a daily file a bank partner sends you, and messages between two…

  16. SQL or NoSQL

    NoSQL and MongoDB · Trade-off · Mid, Senior

    For a new feature, how do you decide between a relational database and a NoSQL one? Give me one example where you'd pick each.

  17. Saved address shows the old value

    PostgreSQL and MySQL · Scenario · Mid, Senior

    Users update their delivery address, the app says 'Saved', but the next page still shows the old address. A few seconds later it's fine. Reads go to a replica. What's happening, and what…

Part 2 · 5 questions

Tech stack deep dive

  1. How your service gets AWS credentials

    AWS for developers · Concept · Mid, Senior

    Your service runs on AWS and needs to read files from S3 and send messages to SQS. How does the code get AWS credentials, and why shouldn't you just put an access key in its environment…

  2. 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…

  3. 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)

  4. A ConfigMap change nobody picked up

    Kubernetes for developers · Scenario · Mid, Senior

    You changed the payment timeout in the service's ConfigMap from 30 to 10 seconds and applied it. An hour later the pods still use 30 seconds. A teammate says, 'Just delete the pods.'…

  5. 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?

Part 3 · 1 question

SQL and Python coding

  1. Valid parentheses (LeetCode 20)

    DSA · Build it · Mid, Senior

    Given a string of brackets, ()[]{}, return whether it's balanced.

Part 4 · 4 questions

Backend system design

  1. Cache-aside, write-through or write-back

    Design building blocks · Trade-off · Mid, Senior

    Our product catalogue API is slow, and someone says 'just add Redis'. Which caching strategy would you use: cache-aside, write-through or write-back? And how do you keep the cache from…

  2. 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…

  3. Design a UPI payments app backend with idempotency

    India-scale design · Design · Senior, Lead

    Design the backend of a UPI payments app like PhonePe or Google Pay. A user scans a shop's QR code, enters an amount and their PIN, and pays. Money must never move twice.

  4. Design a chat app like WhatsApp

    System design prompts · Design · Senior

    Design a messaging app like WhatsApp: one-to-one chats and groups, online status, and the delivered and read ticks.

Part 5 · 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 6 · 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 7 · 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