Skip to the page

30 questions · 5 rounds

Data analyst interview questions

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

Part 1 · 21 questions

Technical screen

  1. Customers who never placed an order

    SQL querying · Build it · Mid

    Tables customers(id, name, city) and orders(id, customer_id, amount, created_at). Write a query for customers who have never placed an order. Give me two different ways.

  2. Aggregate in WHERE

    SQL querying · Write code · Mid

    This query should list cities with more than 100 orders in 2026, but it throws an error. What's wrong, and how do you fix it? (code)

  3. Food delivery orders in Pune in a day

    Product metrics and cases · Design · Mid

    How many food delivery orders are placed in Pune on a normal weekday? Estimate it out loud.

  4. Orders dropped 15% yesterday

    Product metrics and cases · Scenario · Mid, Senior

    You run analytics for a food delivery app. This morning the CEO messages you: 'Orders dropped 15% yesterday. Why?' What do you do?

  5. My orders API gets slower every week

    Indexes and query performance · Scenario · Mid, Senior

    Our 'My orders' API used to answer in 80 milliseconds. Over the last month its p99 has crept up to 4 seconds, and today the database CPU is at 90%. Nothing was deployed this week. What do…

  6. Which queries can use a composite index

    Indexes and query performance · Write code · Mid, Senior

    We have an index on orders(customer_id, status, created_at). For each of these four queries, does the index help, and how? (code)

  7. Added to cart but never ordered

    SQL for analysis · Build it · Mid

    Using events(user_id, event_name, event_time), find the users who added something to cart in the last 7 days but didn't place an order within 24 hours of that add-to-cart. Marketing wants…

  8. A moving average that skips the quiet days

    SQL for analysis · Write code · Mid, Senior

    This query gives a dark store's 7-day average GMV for the ops review. The store had no orders on 3 and 6 November. What does the row for 9 November show, and is it right? (code)

  9. Mean or median for basket size

    Statistics and experiments · Trade-off · Mid

    Last month our average order value was ₹450, but the median was ₹280. The marketing head wants one number for 'what a typical customer spends'. Which do you give, and why are the two so…

  10. p-value and confidence interval in plain words

    Statistics and experiments · Concept · Mid

    Your test result says checkout conversion is up 0.8 percentage points, the p-value is 0.03, and the 95% confidence interval is 0.1 to 1.5 points. Explain to the PM, in plain words, what…

  11. ACID with a wallet transfer

    Transactions and locking · Concept · Mid

    Explain ACID using a transfer of ₹500 from one user's wallet to another user's wallet in our app. What does each letter protect you from?

  12. Optimistic or pessimistic locking

    Transactions and locking · Trade-off · Mid, Senior

    When would you use optimistic locking with a version column, and when pessimistic locking with SELECT … FOR UPDATE? Give me one real example of each.

  13. Dashboard revenue doesn't match finance

    BI and dashboards · Scenario · Mid, Senior

    Your dashboard says October revenue was ₹42.6 crore. Finance's MIS says ₹38.1 crore. The CFO asks in a meeting why the numbers don't match. What do you do?

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

  15. 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.

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

  17. Cache-aside: update or delete the key?

    Redis and caching · Trade-off · Mid, Senior

    We cache product details in Redis using cache-aside. When a product's price changes, should we update the cache or delete the key? And should we touch the cache before or after writing the…

  18. XLOOKUP, VLOOKUP or INDEX-MATCH

    Excel · Trade-off · Mid

    You need to pull each employee's department from a master sheet into a 50,000-row file. Would you use VLOOKUP, INDEX-MATCH or XLOOKUP? Which differences actually matter?

  19. Partitioning or sharding

    Scaling databases · Concept · Mid, Senior

    What's the difference between partitioning and sharding? When would you partition a table, and when would you shard a database?

  20. Delivery times with gaps

    pandas for analysis · Scenario · Mid, Senior

    You're asked for the average delivery time by city from a pandas DataFrame. About 20% of delivery_minutes values are missing. A teammate suggests fillna(0), or filling with the mean. What…

  21. Five minutes with the COO

    Data storytelling · Scenario · Mid, Senior

    You found that customers whose order arrives more than 10 minutes late are much less likely to order again within 30 days. You have five minutes with the COO, who isn't technical. How do…

Part 2 · 3 questions

Python for analysis

  1. Decorators

    Python core · Concept · Mid, Senior

    What is a decorator, and what really happens when you put @something above a function? Give me a real use from your work.

  2. Iterables, iterators and generators

    Python core · Concept · Mid

    What's the difference between an iterable, an iterator and a generator? What actually happens when a for loop runs?

  3. An LRU cache decorator without functools

    Python coding · Build it · Mid, Senior

    Without using functools.lru_cache, write a decorator lru_cache(maxsize) that caches a function's results and evicts the least recently used entry when it's full. Which data structure do…

Part 3 · 2 questions

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?

  2. "I" vs "we" probing

    Resume deep-dive · Your experience · Mid, Senior

    You keep saying 'we'. What exactly did you write or decide?

Part 4 · 2 questions

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."

  2. Defending tech choices and handling disagreement

    Leadership & behavioural · Your experience · Senior

    Your team wants to add a big new library or tool. You think it's overkill for the problem. How do you handle this? More broadly, tell me about a technology choice you made, what you…

Part 5 · 2 questions

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?

  2. Current CTC and its breakup

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

    What's your current CTC? Can you give me the breakup: fixed, variable, and anything else?

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