Last updated: November 25, 2026
By Mike Carter, Managing Director, KORE1
The best Node.js developer interview questions in 2026 give the candidate a memory report, a broken route or a lockfile diff, then ask what happens next, because event-loop trivia can be memorized in a weekend. The candidate who asks where the memory went beats the one who can name the phases.
Picture a freight brokerage in Memphis with about thirty-five engineers and a shipment-tracking API written in Node.js. It is a made-up case, assembled from pieces I keep hearing in hiring debriefs, and every number in it is mine.
They hire a senior developer who interviews beautifully. She recites the phases of the event loop in order. She explains why a setImmediate callback beats a zero-millisecond timer when both are scheduled from inside an I/O callback, and she has firm opinions about Express middleware, error handlers, and whether anyone should ever write a callback again. Everybody on the panel nods. The offer goes out on a Friday and she starts three weeks later. Good hire.
In week six the pods begin to die. Roughly every nine hours. Exit code 137, no stack trace, nothing useful in the logs. She takes a heap snapshot. It looks fine. She raises --max-old-space-size, because that was the first answer she found, and the pods die at the same hour the next day. The heap was innocent. Nobody had ever handed her a page that spelled that out.
The loop that hired her was a good loop by the usual standard. It covered closures, promises, the event loop and middleware. It did not include a memory report. Not one. A single sheet of paper would have separated a candidate who can explain a process running out of memory while its JavaScript heap sits flat from a candidate who can only explain the heap.
So this page is built from paper. Not trivia, paper. A printed report, a block of code, a lockfile diff, a spoken scene. I did the arithmetic ahead of time so a panel that doesn’t write Node can check an answer with a pen. The runtime facts are real and linked, while the company is invented.
My own interest, before the questions start. The Node.js developer staffing desk at KORE1 earns a fee when someone we introduced signs an offer and starts, so I want your loop to pick well, and you should discount what I say by that much. Print the pages, run the hour yourself, hire whoever does best. Nothing below needs us.

What the Hire Guide Already Asks Out Loud
Our guide to hiring Node.js developers carries four spoken questions. An API that falls from 500 requests a second to 50. A 500 MB CSV upload. An outage the candidate caused. An endpoint that takes 200 milliseconds on a laptop and three seconds for the frontend team. They are good questions and I won’t repeat them. They are also spoken, and a spoken answer is easy to rehearse.
What follows is the written half. Use the guide for the conversation and these pages for the technical round. Two neighbors cover ground I skip on purpose. The TypeScript developer interview questions go deep on the type system, and the backend developer interview questions take on schema design and API contracts. Queues and database tuning live there, not here.
Ten Minutes of Fundamentals First
A Node.js developer interview tests whether a candidate can keep a single-threaded JavaScript runtime responsive, observable and alive under load. Node.js runs JavaScript on V8 with one main thread, so the candidate has to know what blocks it, what leaks around it, and what a crashed process takes down with it.
Everyone prepares for these. Give them ten minutes. No more. Read the middle column aloud to a panel that has never run Node, so they know what a good answer sounds like.
| Ask | Listen for | Warning sign |
|---|---|---|
| What does the event loop do while your code waits on a database? | It keeps running other callbacks. The phase names matter less than the consequence, which is that one slow synchronous call stalls every request in flight | Six phase names and no consequence |
A resolved promise, setTimeout at zero, and setImmediate. Which runs first? | The promise callback, since microtasks drain before the loop moves on. Between the other two it depends on where you are, though inside an I/O callback setImmediate always wins | “It’s random” |
| Worker threads, cluster, or child processes? | Worker threads suit CPU-bound work inside one process. Cluster forks whole processes to spread connections across cores and does not make any single handler faster. Child processes run other programs | Cluster offered as the cure for a slow route |
| When do you reach for a stream? | Anything bigger than comfortable memory, with backpressure so a slow consumer slows the producer, and pipeline() so an error cleans up both ends | “Streams are for files” |
| What happens on an unhandled promise rejection? | Since Node 15 the default mode is throw, which raises it as an uncaught exception, so the process exits unless something handles it | “It logs a warning.” That was true before Node 15 |
| CommonJS or ES modules in your last repo? | Which one it was, how the repo declared it, and one real thing that broke when the two met | Treating it as a syntax preference |
| Which Node version runs in production, and when does it stop getting fixes? | A number and a date, from memory or after one look at the release schedule | “Whatever the Dockerfile says” |
Passing the table proves very little. It clears the floor.
Six Exercises on Paper
Hand over the page and a pen, then sit on your hands for two full minutes. It will feel wrong. Watch what the candidate does first, because a person who reaches for the numbers before reaching for a theory has told you most of what you need. Each exercise runs ten to twelve minutes.
The Report Where the Heap Looks Fine
A service runs in a container with a 2,048 MB memory limit. Somebody logs process.memoryUsage() every four hours, converted to megabytes, and the pod restarts about once a day with exit code 137. The candidate gets this.
| Time | rss | heapTotal | heapUsed | external | arrayBuffers |
|---|---|---|---|---|---|
| 09:00 | 612 | 188 | 141 | 92 | 71 |
| 13:00 | 1,284 | 191 | 148 | 760 | 739 |
| 17:00 | 1,903 | 194 | 150 | 1,371 | 1,349 |
Ask what the report says, what they would look at next, and roughly when the pod dies today.
Most candidates read heapUsed first, see 141 become 150, and relax. That is the trap. Nine megabytes of growth explains nothing. A candidate who has done this before goes straight to the right-hand columns, where arrayBuffers climbs from 71 to 1,349. Subtract. Buffers grew by 1,278 MB while the resident set grew by 1,291 MB, so 99 percent of the growth sits in Buffers, outside the JavaScript heap, where the V8 heap limit never comes into play. The Node.js documentation for process.memoryUsage() says arrayBuffers covers all Node.js Buffers and is counted inside external too.
Then the timing. The limit is 2,048 and the process sits at 1,903, so 145 MB of headroom. Growth ran 1,291 MB over eight hours, about 161 MB an hour. Roughly fifty-five minutes. Anybody who gets there without a calculator has done real work. Hire them.
Where do Buffers come from? Good candidates offer a short list and a way to tell the suspects apart. Request bodies gathered with Buffer.concat on an upload nobody capped. A stream read faster than it is written, so chunks queue in memory, which is backpressure again. A native image or PDF library holding its output. A cache of Buffers with no eviction. Then they reproduce with one suspect route at a time while watching that one column. Raising --max-old-space-size is the tell on the other side, because it caps the V8 heap and nothing else, and a candidate who suggests it has told you which half of the runtime they know.
A Route That Answers Before It Finishes
Print this handler and say it has been in production for a month. It runs. The tests pass. Ask the candidate to circle everything they would change, then number the circles from “pages somebody at 3 a.m.” down to “costs a few milliseconds.”
const rates = new Map();
app.post('/orders', async (req, res) => {
const pricing = JSON.parse(fs.readFileSync('./pricing.json', 'utf8'));
const fx = await fetch(`https://fx.example.com/${req.body.currency}`);
rates.set(req.headers['x-session-id'], await fx.json());
req.body.items.forEach(async (item) => {
await db.query(
'INSERT INTO order_items (sku, qty, price) VALUES ($1, $2, $3)',
[item.sku, item.qty, pricing[item.sku]]
);
});
res.status(201).json({ ok: true });
});There are five problems and candidates tend to find three. The readFileSync and the JSON.parse run on every request and freeze the loop each time, which costs nothing for one user and plenty for four hundred. The fetch sets no timeout of its own, so under undici’s defaults a slow upstream can hold each request open for five minutes, and it pastes req.body.currency into a URL unchecked, so a crafted value goes somewhere you never intended. The Map is keyed by a header the client controls and never forgets anything. Send a million different session ids and watch it grow.
One of them matters most. Array.forEach ignores the promise an async callback returns, so the 201 goes out before a single row is written. If one insert rejects (a null SKU, a constraint, a dropped connection) nothing is listening, and since Node 15 an unhandled rejection is raised as an uncaught exception by default, which ends the process. Every other request in flight at that moment dies with it. The Node.js command-line documentation lists throw as the default and notes it replaced a warning in v15.0.0. The fifth problem is the missing transaction, which lets an order land in the database with two lines out of three if the third insert fails, and nobody finds out until finance asks why the totals disagree.
Make them rank the circles out loud. A strong candidate puts the forEach first and the Map second, calls the Map the slow leak, and spots the unchecked currency without a nudge. The one who puts readFileSync on top has taken a performance course. Fine. Not the same thing.
Eighteen Requests Waiting on One Report
A single Node.js process takes 150 requests a second. Forty-nine of every fifty cost about 2 ms of CPU. The fiftieth is a report, costs 120 ms, and runs on the main thread. In staging the average latency looked fine. In production the 99th percentile is ugly, even though the median still looks healthy. Ask why. Then ask what they would do before adding pods.
Start with arithmetic. Reports arrive three times a second, since 150 divided by 50 is three, and each one holds the loop for 120 ms. That is 360 ms of every second spent inside a report, or 36 percent of the clock. Any request that lands in that window waits, and at 150 a second about 18 requests land during each report (150 times 0.12). The ordinary work adds 147 requests at 2 ms, which is 294 ms, so the process is busy 654 ms of every second. About 65 percent. High enough that the waits compound.
I’m rounding, of course. Real traffic is lumpier, and a candidate who says so gets extra credit.
The weak answer is “add pods.” Four pods put each one at 37.5 requests a second and 0.75 reports a second, so each loop is frozen 9 percent of the time instead of 36. Better, and the freeze is still 120 ms long every time a report lands, and now you pay for four pods to run work that should have left the process. The strong answer starts with a measurement. perf_hooks.monitorEventLoopDelay() returns a histogram of how late the loop runs, so the freeze becomes a number on a dashboard. Then they move the report. A worker thread from a small pool, a separate service behind a queue, or a table computed overnight if nobody needs it fresh. Slicing the job into 5 ms pieces that yield with setImmediate also works, and is the right answer more often than people expect.

Thirty Seconds to Leave
A rolling deploy. Here is the shutdown code the team wrote.
process.on('SIGTERM', () => {
server.close(() => process.exit(0));
});The orchestrator is Kubernetes with default settings. Forty requests are in flight when SIGTERM arrives, nearly all finishing inside two seconds. One client is pulling a CSV export that takes about four minutes. Ask what happens, second by second, and then ask what they would change.
The pod spec documents a default grace period of 30 seconds, after which the process gets SIGKILL, which cannot be caught. Meanwhile server.close() stops new connections and, since Node 19, also closes idle keep-alive ones, as the http documentation describes. So thirty-nine requests finish. The export does not, the callback never fires, and at second 30 the process dies mid-stream. The client holds a truncated file and the database watches connections vanish.
Four minutes is 240 seconds against a 30-second window. Eight times too long. No shutdown handler can fix that, because the work simply doesn’t fit inside the window, so a strong candidate says so inside a minute and moves the export into a background job that survives a restart. For the ordinary traffic they add the sequence. Flip readiness first so the load balancer stops sending. Close the server. Set an internal deadline a few seconds short of the grace period, then call closeAllConnections() and exit non-zero if anything was cut off. End the database pool and flush the logs. Few mention the pool. The good ones do.

A One-Line Bump That Changed 214 Lines
A pull request is titled “chore: bump eslint-plugin-example from 4.2.0 to 4.2.1.” CI is green. The npm audit report is clean, zero vulnerabilities. The candidate gets this summary.
| What changed | Result |
|---|---|
| package.json | 1 line, the version range |
| package-lock.json | 214 lines changed |
| New packages in the lockfile | 9 |
| New packages with an install script | 2 |
| Lockfile entries resolved from outside registry.npmjs.org | 1 |
Merge or not? Ask what they check first.
A green build and a clean audit say less than they seem to. npm audit compares your tree to advisories somebody has already filed, so a freshly poisoned release passes it. A patch bump should not pull in nine packages. Two of them ship install scripts, which run on every laptop and CI runner that installs them with whatever credentials that machine holds, and one resolves from somewhere other than the registry. That does not get merged.
In September 2025 the Shai-Hulud worm showed what the downside looks like. CISA reported more than 500 compromised npm packages, spread by code that authenticated to the registry as an already-compromised maintainer, injected itself into other packages and published them, while hunting the infected machine for GitHub tokens and AWS, Google Cloud and Azure keys. Among CISA’s recommendations were pinning dependency versions and rotating credentials. A candidate who treats a lockfile diff as a security review has the right reflex. Listen for who published 4.2.1 and when, whether the maintainers changed, what the two install scripts actually do, and installs in CI with npm ci --ignore-scripts wherever the build can tolerate it. npm ci installs exactly what the lockfile says and fails if it disagrees with package.json, which is the behavior you want from a build.
The Service Still on Node 20
This one is spoken, with one table on the page. You are the engineering manager and you have just inherited a revenue-bearing API running Node.js 20. The team says it works. Here is the schedule as of late November 2026, from the Node.js release schedule.
| Version | Status in late November 2026 | Security fixes end |
|---|---|---|
| 20 (Iron) | Past end of life | April 30, 2026 |
| 22 (Jod) | Maintenance LTS | April 30, 2027 |
| 24 (Krypton) | Maintenance LTS since October 20, 2026 | April 30, 2028 |
| 26 (Lithium) | Active LTS since October 28, 2026 | April 30, 2029 |
Ask which version they move to and what they check before they touch the Dockerfile.
Start with the first row. Node 20 reached end of life on April 30, 2026, so the service has gone almost seven months without security fixes from the project. Moving to 22 feels safe and buys five months, because 22 ends on April 30, 2027. A candidate who proposes it without noticing the end date has read the table and skipped the subtraction, which is the same mistake as trusting a green build, and a very common one. Version 24 runs to April 2028, about seventeen months from now. Version 26 runs to April 2029, about twenty-nine months, but it went LTS four weeks ago, and a native addon may not have a prebuilt binary for it yet.
No single right pick. Twenty-four is the cautious one and 26 has the longest runway. What I listen for is the checklist ahead of the choice. Native addons and node-gyp builds. The base image and which runtimes the hosting platform supports. The engines field, a CI matrix, and tests worth trusting. And one more thing, which fewer candidates know. The project changed its schedule this year, and under the new release model Node.js 27 arrives in April 2027 and every release becomes LTS. A team that treats this upgrade as a once-every-three-years project will be doing it again within the year. The candidate worth hiring talks about making it routine.
Matching Exercise to Seat
Run two, not six. The rungs below come from the hire guide, which keeps a single ladder running through the posting, the pay band and the loop. The posting end of that ladder has its own job description template for a Node.js seat, which names the service, the runtime version, and who approves a new package.
| Level | Exercises | Reason |
|---|---|---|
| Junior | A Route That Answers Before It Finishes, only | Reading code is the whole skill at this level, and the forEach sorts the field by itself |
| Mid-level, three to five years | The route, then Eighteen Requests Waiting on One Report | They own endpoints. Freezing the loop and losing writes are the two mistakes available to them on any Tuesday |
| Senior, owns a service | The Report Where the Heap Looks Fine, then Thirty Seconds to Leave | Memory and shutdown are what a senior gets paged for |
| Lead or staff | The Service Still on Node 20, then A One-Line Bump That Changed 214 Lines | They set version and dependency policy for everyone else |
| Contractor hired for one job | Whichever matches the job, the upgrade for a migration or the 18 requests for a performance fix | A contractor has weeks, not quarters, so test what they will do in week one |
Pay for each rung is in the guide, and our backend developer salary guide sets it beside the wider backend market. The FAQ below repeats the headline bands once, so two pages need updating when they move and not five. The pay pages behind those bands are read one at a time in our Node.js pay guide for 2026.
What to Write Down
A fifteen-line rubric will not help you. Three questions will.
- What did they ask for first? The raw numbers, the Node version, the deploy config, anything that wasn’t a guess.
- Did they say how they would test a theory before proposing a fix?
- Halfway through, change one fact (“the heap snapshot you took is clean”) and watch whether they update or defend.
Someone who manages all three on the first exercise tends to repeat it on the second. Someone who manages none gets no better when you nudge. Nudging doesn’t work.
Where the Panel Goes Wrong
Three habits sink this loop, and none of them belongs to the candidate. The first is grading the fix. A candidate who says “I’d add a worker thread” within thirty seconds sounds decisive and may simply have guessed, while the one who says “I’d want the event loop delay first” sounds slower and is usually better, so reward the order of operations. The second is the fluent talker, a person who can discuss libuv for ten minutes and has never been paged. These exercises exist because fluency and diagnosis are different skills, and fluency is the one that survives a conference room. Third, and dullest, is reusing the same page for a month. Pages travel. Change a number or two between candidates, say 90 ms where I wrote 120, and the recital stops working.
Things People Ask Before the Loop
Does the candidate write code, or only read it?
Mostly read it, because reading a broken route in ten minutes shows more than forty minutes of writing a fresh one on a whiteboard. A candidate who can also write the shutdown handler from memory is giving you a bonus rather than meeting a requirement, since the job is mostly reading other people’s code at speed, with a pager buzzing and a customer waiting.
Node runs TypeScript files now. Does that change what we ask?
Yes, a little, and only on the runtime half of the question. Since Node 22.18 type stripping is on by default, so .ts files run with no build step and no type checking, and anything that needs generated code, such as enums, namespaces with runtime code and parameter properties, throws an error. Node 26 also removed the experimental transform flag. Hand a finalist a file with an enum in it and ask what happens. The rest belongs in the TypeScript interview loop.
Is an AI assistant allowed in the room?
Only if they use one on the job, and then grade what they verify. Every exercise turns on where a number came from, so a fluent assistant doesn’t help a candidate who never asks. Watch whether they recompute the 1,278 or just paste it.
How much of this fits into a single hour?
Two, with ten minutes held back for the candidate’s questions. Three if you skip the fundamentals table. All six is a long day, and a tired candidate misses the forEach for reasons that have nothing to do with skill.
What does a Node.js developer cost in 2026?
$110,000 to $140,000 base for mid-level and $140,000 to $175,000 for senior according to our hire guide, with leads at $170,000 to $210,000 or more. US contract rates run $55 to $90 an hour, higher for specialists. The salary benchmark assistant gives a read for your metro.
Nobody here writes Node. Who runs the loop?
Borrow a backend engineer for two hours, or let a recruiter who screens Node.js candidates every week run the first call. The 45-minute screen described on our Node.js staffing page is run by a working backend engineer. Tell us the role and we’ll set up the first round.
Print One Page This Week
Open the container memory chart for your busiest Node service and look at the last day. If rss climbs while heapUsed stays flat, you have the first exercise running in production and a free interview question. If heapUsed isn’t on a dashboard at all, that tells you something too. Ten minutes, tops.
Our IT placements average 17 days to hire, 92 percent are still in seat a year later, and the recruiters on the Node.js desk average more than fifteen years in the work. If the job is a migration off Node 20 or a performance fix, contract staffing puts a specialist on it for a quarter without adding permanent headcount, and direct hire fits the engineer who will own the service for years. To start a search, tell our team about the role. The same recruiters fill backend developer staffing, TypeScript developer staffing and DevOps engineer staffing searches, so the pod around the Node.js hire can come from one place.

