Backend developer interview questions

A backend developer interview usually covers server code (Node.js, Java or Python), SQL and database design, API design, reliability and scaling, plus containers and version control. Interviewers look for clear reasoning about trade-offs and how you handle failures in production. Prepare one real incident story and practise explaining it calmly, step by step.

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

Technical questions

  1. What is middleware in an Express or Node.js server?

    Foundational

    What the interviewer is looking for: Describe a function in the request pipeline that can read, change or stop a request, with examples such as logging or authentication.

  2. How do you handle errors in asynchronous Node.js code so none are lost?

    Applied

    What the interviewer is looking for: Mention async/await with try/catch, always returning or awaiting promises, a central error handler, and logging unhandled rejections.

  3. How would you scale a Node.js API that is CPU-bound under load?

    Advanced

    What the interviewer is looking for: Show you know the event loop is single-threaded: worker threads, clustering, moving heavy work to a queue, and caching results.

  4. What is the difference between INNER JOIN and LEFT JOIN?

    Foundational

    What the interviewer is looking for: INNER JOIN keeps only matching rows; LEFT JOIN keeps every row from the left table. A two-table example makes it clear.

  5. How do indexes speed up queries, and when can they slow things down?

    Applied

    What the interviewer is looking for: Explain lookups without a full scan, then the trade-offs: slower writes, extra storage and indexes the planner never uses.

  6. How would you investigate a query that became slow after the table grew?

    Advanced

    What the interviewer is looking for: Start with the query plan (EXPLAIN), check indexes and statistics, look for scans and sorts, then test the fix on realistic data.

  7. What is a transaction, and what does isolation level mean?

    Applied

    What the interviewer is looking for: Explain all-or-nothing changes, then isolation levels with one anomaly each level prevents, such as a dirty or non-repeatable read.

  8. What is the difference between REST and GraphQL?

    Foundational

    What the interviewer is looking for: REST uses resources and HTTP methods; GraphQL lets the client ask for exactly the fields it needs. Compare caching and complexity.

  9. How do you design an API so that a retried request does not create duplicates?

    Advanced

    What the interviewer is looking for: Explain idempotency keys stored with the result, safe HTTP methods, and database unique constraints as a last line of defence.

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

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

Behavioural questions

  1. Tell me about a mistake you made at work and what you changed afterwards.

    Applied

    What the interviewer is looking for: Pick a real but recoverable mistake, own it honestly, and spend most of the answer on the fix and what you do differently now.

  2. Tell me about the most complex problem you have solved. How did you break it down?

    Advanced

    What the interviewer is looking for: Show structured thinking: how you split the problem, tested ideas, used data, and the measurable result.

Answering behavioural questions

Use STAR: the Situation, your Task, the Actions you took and the Result, ideally with a number. Paste your answer into the free STAR checker to see which part is missing.

Check my answer with STAR →

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.

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