Full Stack Interview Questions
JavaScript, React, networking and databases — the rounds that gate every web role.
11 of 11 questions
What happens when you type a URL and press Enter?
The classic warm-up question that secretly tests how deep your mental model of the web goes.
Why does my useEffect run twice in Strict Mode?
Your effect fires twice in development and once in production — the right answer is cleanup, not removing StrictMode.
What does this event-loop snippet print?
A four-line snippet that separates people who memorized "microtasks before macrotasks" from those who can run the queues in their head.
Why does my fetch to another origin fail with a CORS error?
The request succeeds on the network, yet JavaScript never sees the response — CORS is the browser insisting the other origin opts in before the read is allowed.
Why does a single page fire 101 database queries?
One query becomes 101 because the ORM loads relations lazily — the fix is one join or one batch, but the interview is about proving you know why.
How do you choose between CSR, SSR, SSG and ISR?
Four acronyms, one question underneath: when is the HTML built? The architecture decision is picking per route — not per app.
What do transaction isolation levels actually prevent?
Every level answers one question — what may a transaction promise about what it read? — and stronger promises are paid for in conflicts and retries.
Design a payment that charges exactly once — through retries and crashes
The card is charged but the crash eats the record — exactly-once charging is not inherited from any tool, it is built from a unique constraint, an outbox, and idempotent effects everywhere.
How do database indexes work, and when do they hurt?
A B+Tree is a tiny table of contents that turns a million-row scan into a handful of page reads — until writes and row lookups tip the balance.
Design a pipeline that ingests a 10-million-row CSV with live progress
A 10M-row upload is not one job — it is tens of thousands of small idempotent chunks, with Postgres as the only source of truth for progress and the WebSocket as its fast path.
Design real-time collaboration — and what survives a disconnect
Operations are relative and go stale, so the real design question is who holds the order — a central transformer (OT) or a mergeable data structure (CRDT) — and what survives a disconnect.