All jobs / Backend developer / Backend Languages

Backend developer interview question · 0–1 years

The interviewer asks: “What does a good Express (or Fastify) route handler look like?” Strongest answer?

The strongest answer

Read the request, validate, await the service, send a status and JSON. Don't swallow errors — pass them to the error middleware so failures become a safe 5xx.

Why it works

Exactly. Async I/O, validation, and a single error path. Unhandled promise rejections are 500s you never logged.

What a good answer covers

Answers that fall short

Who gets asked this

More Backend Languages questions