Skip to the page

30 questions · 10 rounds

Node.js backend developer interview questions

Questions from real Node.js backend 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 Node.js backend mock interview.

Part 1 · 12 questions

Technical screen

  1. call vs apply vs bind

    JS core · Concept · Mid

    Difference between call, apply and bind? Give a real use case for each.

  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. Is Node.js single-threaded?

    Node.js runtime · Concept · Mid

    People say Node.js is single-threaded. Then how does one Node process serve ten thousand open connections at the same time?

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

  5. Hoisting output

    Output prediction · Write code · Mid

    Output, line by line? (code)

  6. JWT or server-side sessions?

    Auth and security · Trade-off · Mid, Senior

    For a new web app plus an Android app, would you use JWTs or server-side sessions for login? Why?

  7. Express middleware and the order it runs in

    Node.js frameworks · Concept · Mid

    What is middleware in Express? Walk me through what happens to a request from app.use to the response, and where error-handling middleware fits.

  8. Customer charged twice

    Transactions and locking · Scenario · Senior

    A customer was charged twice for one order. The logs show our pay API was called twice, 3 seconds apart, after their app showed a timeout. What do you do, and how do you make sure it can't…

  9. Designing the orders endpoints

    API design · Design · Mid

    Design the REST endpoints for orders in a food-delivery app: create an order, list my orders, get one, cancel one, and rate one. Which methods, URLs and status codes?

  10. Awaiting inside a loop

    Node.js performance · Write code · Mid

    This endpoint takes about 9 seconds for a user with 300 orders. Why? How would you make it fast without overloading the database or the shipping service? (code)

  11. Normalise this orders table

    Schema design · Concept · Mid

    What is normalization? Take this table and normalise it to third normal form: orders(order_id, customer_name, customer_phone, customer_city, product_ids, product_names, total).

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

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

  4. Reading kafka-consumer-groups output

    Kafka · Write code · Mid, Senior

    Here's kafka-consumer-groups.sh --describe for our notifications group, which runs on 8 pods. Walk me through what you see and what you'd do next. (code)

  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

Low-level design

  1. Movie ticket booking with seat holds (BookMyShow)

    LLD problems · Design · Mid, Senior, Lead

    Design the booking part of a movie ticket app like BookMyShow. A user picks a show, sees the seat map, selects seats, and the seats are held for them for a few minutes while they pay. If…

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

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 6 · 3 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. Paged at 3am for failing payments

    Monitoring & on-call · Scenario · Mid, Senior

    You're on call. At 3 am you get paged: 'Payments API error rate above 2% for 10 minutes'. Walk me through your first 30 minutes.

  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…

Part 7 · 1 question

DSA

  1. Two Sum: return every pair (LeetCode 1)

    DSA · Build it · Mid, Senior

    Given an array and a target, return all pairs that add up to the target. For [1,5,2,6,8,9,10] and 7, return [1,6], [5,2], [2,5], [6,1]. Write it in JavaScript.

Part 8 · 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 9 · 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 10 · 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