Cookies on this site

Strictly necessary cookies keep the site working. Our analytics and advertising tags — Microsoft Clarity and Google Tag Manager — stay switched off, and write no cookie, until you accept them. Privacy Policy

Book Free Demo Start Hiring Free
16 Interview Questions

Interview Questions for a Backend Developer

To interview a backend developer, focus on API design, database modeling and indexing, concurrency, caching, and reliability under load. This set probes how candidates design data models, handle transactions and failures, secure endpoints, and reason about scaling a service without compromising correctness or consistency.

Last updated

Run a backend interview around designing and reasoning about a service: data model, API, failure modes, and scale. Favor a design discussion plus a focused coding task over algorithm trivia, since correctness under concurrency and load is the real job.

01 Questions to ask

Technical & Role-Specific

How do you decide when to add a database index, and what's the cost of having too many?

What to look for: Indexes speed reads but slow writes and add storage; chooses based on query patterns and selectivity, and verifies with the query planner.

Explain the difference between optimistic and pessimistic locking and when you'd use each.

What to look for: Optimistic for low-contention with version checks; pessimistic for high-contention critical sections; understands deadlock risk.

What do the isolation levels in a relational database actually protect against?

What to look for: Can name dirty reads, non-repeatable reads, and phantom reads, and maps them to read-committed vs serializable trade-offs.

How would you design a rate limiter for a public API?

What to look for: Token bucket or sliding window, where state lives (e.g. shared cache), per-key limits, and graceful 429 responses with retry headers.

Where would you add caching in a read-heavy service, and how do you avoid stale data?

What to look for: Identifies cacheable layers, picks TTL or invalidation strategy, and understands cache stampede and the thundering-herd problem.

How do you ensure an operation that touches multiple services either fully completes or safely fails?

What to look for: Transactions where possible, sagas or outbox pattern across services, idempotency, and compensating actions; avoids distributed two-phase commit naivety.

A query that was fast is now slow as the table grew. How do you diagnose it?

What to look for: EXPLAIN the plan, check for missing indexes or full scans, look at row counts and statistics, and consider pagination or partitioning.

How do you design pagination for an endpoint over millions of rows?

What to look for: Knows offset pagination degrades; prefers keyset or cursor pagination, with stable ordering and consistent results under writes.

Behavioral

Tell me about a production incident you owned. How did you respond and what changed after?

What to look for: Calm triage, clear communication, a real root-cause analysis, and durable fixes like alerts or runbooks, not just a hotfix.

Describe a time you had to balance delivery speed against data integrity.

What to look for: Won't cut corners on correctness, but can scope pragmatically and make the trade-off explicit to stakeholders.

When have you designed something for scale you didn't yet have? How did that play out?

What to look for: Awareness of over-engineering, building for plausible growth, and willingness to defer complexity until justified.

Tell me about a time you had to make a risky schema migration on a large live table.

What to look for: Plans backward-compatible, online migrations in stages, backfills safely, and has a rollback plan rather than locking the table.

Situational / Problem-Solving

Your service is timing out under a traffic spike. What's your immediate and longer-term plan?

What to look for: Short-term: scale, add a queue, shed load, cache; longer-term: find the bottleneck with metrics and fix the architecture.

You discover duplicate records from a retried webhook. How do you prevent and clean it up?

What to look for: Idempotency keys, unique constraints, dedup logic, and a safe backfill to remove existing duplicates.

A downstream dependency is unreliable. How do you keep your service resilient?

What to look for: Timeouts, retries with backoff, circuit breakers, fallbacks, and not letting one dependency cascade into total failure.

Reads are fine but writes are becoming a bottleneck as you grow. What options do you weigh?

What to look for: Considers write batching, async queues, sharding, read replicas for read offload, and the consistency trade-offs of each.

02 After the interview

Backend Developer interview scorecard

Score every candidate on the same criteria, immediately after the interview, using evidence you actually heard rather than an overall impression. Agree the criteria with the panel before the first interview β€” deciding what counts after you have met people is how the loudest interviewer wins the debrief.

Criterion Evidence to record Score 1-5
Technical & Role-Specific What the candidate actually said or did, in their own example β€” not your impression of it 1 2 3 4 5
Behavioral What the candidate actually said or did, in their own example β€” not your impression of it 1 2 3 4 5
Situational / Problem-Solving What the candidate actually said or did, in their own example β€” not your impression of it 1 2 3 4 5
Overall recommendation Strong no / no / mixed / yes / strong yes, with the single reason that decided it -

Want this as a reusable document? Use the interview scorecard template.

03 Risk

Questions to avoid asking a Backend Developer

Exactly which questions are unlawful depends on where you are hiring, and the rules change β€” so treat this as the list of topics to route through your own employment counsel, not as a legal standard. The practical test that holds everywhere: if the answer could not change how the person does this job, you have no reason to ask it.

Age, date of birth, or when someone graduated as a proxy for age Marital status, pregnancy, children, or plans to have them Religion, ethnicity, national origin, or first language where it is not a genuine job requirement Disability or health history β€” ask whether they can perform the role's actual duties, with adjustments Salary history, which is restricted in a growing number of jurisdictions; ask about expectations instead Criminal record, outside the specific circumstances your local law permits and the role genuinely requires Anything you would not ask every other candidate for this role, because inconsistency is itself the risk

Run Backend Developer interviews on one platform

Recruiting terms explained

Related roles to hire

FAQ

Frequently asked questions

How many interview rounds for a Backend Developer?
Commonly three to five: a screen, a coding round, a system or API design round, a database and data-modeling discussion, and a behavioral round. Senior backend roles weight design and reliability more heavily than raw algorithms.
How important is system design for backend interviews?
Very, especially at mid and senior levels. Backend work is dominated by data modeling, consistency, scaling, and failure handling, so a design round where the candidate reasons about trade-offs out loud is usually the highest-signal stage of the loop.
Should I test SQL and database knowledge directly?
Yes. Many backend bugs and outages trace to data modeling, indexing, transactions, or N+1 queries. Asking a candidate to model a schema and reason about indexes and isolation levels reveals practical depth that algorithm questions miss entirely.
What distinguishes a senior backend developer in interviews?
Seniors reason about failure modes, consistency, idempotency, and scale unprompted, and they make trade-offs explicit instead of reaching for the most complex option. They also weigh operational concerns like monitoring, on-call burden, and migrations, not just whether the code compiles.
Pitch N Hire ATS

Run these interviews structured, and compare candidates fairly

Pitch N Hire is an applicant tracking system with built-in interview scorecards. Load these questions into a scorecard so every interviewer assesses the same criteria and you can compare candidates side by side.

Scorecards so each interviewer rates the same criteria
Interview scheduling without the email back-and-forth
Side-by-side candidate comparison before the hiring decision

Free for 1 user Β· No credit card Β· Talk to a real hiring expert

Built for recruiters & hiring teams

See how much faster your team could hire

Get a personalized walkthrough of Pitch N Hire on your own roles and workflow. No slides, no obligation.

Prefer to talk? Book a demo Talk to sales View pricing

Free 1-user plan Β· No credit card Β· Talk to a real hiring expert

One Hiring Infrastructure.
Zero Tool Chaos.

Demos are consultative. We respect privacy and enterprise
governance. No lock-ins.

Start free Book demo