Node.js Developer Assessment Template

A ready-to-run Node.js hiring test covering the event loop, streams, async correctness, error handling, and framework fluency.

Duration
60 minutes
Questions
11
Level
Mid-Level
Passing Score
70%

What this template measures

Every skill needed for a node.js developer hire, covered across MCQ, coding, and essay questions.

Event Loop Fluency

Microtasks, macrotasks, timers, and process.nextTick semantics.

Async Correctness

Promises, async/await, error propagation, unhandled rejections.

Streams

Readable, Writable, Transform streams and backpressure handling.

API Design

REST/GraphQL endpoint design, middleware, validation, error handling.

Framework Knowledge

Express, Fastify, or NestJS depending on stack focus.

Testing

Vitest, Jest, or node:test plus mocking and integration patterns.

Sample questions from this template

A preview of the questions you'll see when you use this template.

Multiple ChoiceMediumQuestion 1

In what order do the following run to completion? ```js console.log('A'); setImmediate(() => console.log('B')); Promise.resolve().then(() => console.log('C')); process.nextTick(() => console.log('D')); console.log('E'); ```

  • A.A E D C B
  • B.A E C D B
  • C.A E B D C
  • D.A D C E B

Hint: nextTick runs before Promise microtasks.

CodingMediumTypeScript (Node)Question 2

Implement `withRetry<T>(fn: () => Promise<T>, opts: { attempts: number; backoffMs: number }): Promise<T>` that retries on rejection with exponential backoff and rethrows the final error.

CodingHardTypeScript (Node)Question 3

Build an Express route `POST /upload` that: - Accepts multipart file upload up to 50MB - Streams the file to disk without buffering in memory - Returns `{ size, sha256 }` of the uploaded file - Handles upload errors gracefully

CodingHardTypeScript (Node)Question 4

Given an array of 100,000 URLs, fetch all of them with a max concurrency of 20, collecting results and errors. Must not crash on individual failures. Return { successes: Array<{url, status}>, failures: Array<{url, error}> }.

EssayMediumQuestion 5

Explain when you'd use worker threads vs child processes in Node.js. Provide one example of each.

Scoring rubric

How candidates are evaluated on this template.

Dimension
Description
Weight
Correctness
Passes test cases and handles errors correctly.
40%
Async Mastery
Promises, async/await, and error propagation handled cleanly.
25%
API Design
REST semantics, validation, and error responses.
15%
Streams & Perf
Handles large data without memory issues.
10%
Code Quality
Readability, typing, testing, and structure.
10%

Frequently asked questions

Does this cover Express, NestJS, or Fastify specifically?+

Template is framework-neutral by default. Variants for Express, NestJS, and Fastify available — pick the one matching your stack.

Can I customize this template?+

Yes. Every question, time limit, weighting, and rubric dimension is fully editable. Use the template as a starting point and tailor it to your role and seniority level.

Does this template include AI cheat detection?+

Yes. All ClarityHire assessment templates ship with code coherence AI, keystroke biometrics, and paste detection enabled by default. You can dial integrity level per role.

Can candidates see sample questions before starting?+

Yes. Each template supports unscored practice questions so candidates warm up before the real assessment begins. That way you measure skill, not test anxiety.

Launch Your Node.js Assessment Today

Customize this template and invite candidates in minutes.