Skip to content

Backend Engineer interview kit: questions and rubric

For hiring teams interviewing a mid‑level backend engineer, roughly three to six years in, who builds and runs APIs and services on a relational database.
By IraPublished by the Itya teamUpdated
competencies
5
questions
11
sample answers
22

How to use this kit

This kit covers a short screen, five competencies with an API and data‑model exercise, a production debugging walk‑through, a security code review and behavioral questions, anchored ratings, the questions never to ask, and a rule for deciding.

  1. Agree the competencies with the hiring manager before the job is posted.
  2. Give each interviewer one or two competencies, so nothing is asked twice.
  3. Ask every candidate the same core questions; follow up freely.
  4. Rate each competency against the anchors straight after the interview, alone.
  5. Debrief on quotes, not adjectives, then decide with the rule at the end.

Meet the candidates

Three candidates for the Backend Engineer role answer every question below. Each is strong somewhere and thin somewhere else, the way real candidates are, so every question has a strong and a weak answer to compare.

  • Meera IyerPayments backend engineer

    6 yearsBengaluru

    Six years on a payments platform, through several festive‑sale peaks. Deep on data and reliability; tends to move fast and deal with the fallout later.

  • Daniel OkaforBackend engineer, logistics

    4 yearsHouston

    Four years building dispatch and tracking APIs, two of them on call. A calm, methodical debugger who has left security to the security team.

  • Kabir SethiFull-stack developer moving to backend

    5 yearsPune

    Five years of full‑stack product work, now after deeper backend ownership. Careful about security and data contracts; has rarely carried a pager.

Illustrative people. The names are invented, the portraits are AI-generated, and their words were written with AI to show what candidates sound like. Any resemblance to a real person is a coincidence.

First-round screen

Fifteen to twenty minutes, by phone, video or a disclosed AI screen. The aim is to confirm the basics before the panel spends its time.

  1. What draws you to backend work, and what kind of systems do you want to work on next?
  2. Walk me through a service you built or own in production: what it does, what it depends on, and what has gone wrong with it.
  3. This role works in the language, database and cloud named in the job description. Which of them have you run in production, and for how long?
  4. The job description sets out the location, working pattern and start date. Do those work for you, what is your notice period, and what compensation range are you expecting?

Competency 1

API design and data modeling

APIs and schemas outlive the code behind them. A backend engineer who models data well and designs clear, evolvable contracts spares every team that depends on them years of workarounds.

  1. Question 1: Exercise, 25 minutes: design the API and the database tables for booking meeting rooms.

    Employees book a room by the half hour and can cancel, and a room must never be double‑booked. Sketch the endpoints and tables on a whiteboard or in a shared doc; no code needed.

    Follow up with

    • How do you stop two people booking the same room at the same moment?
    • What happens if the client retries a booking request after a timeout?
    • How would you add recurring bookings later without breaking existing clients?
    Strong answerMeera Iyer
    “I’d start with three tables: rooms, users and bookings. A booking has a room, a user, a start and end time, and a status. The rule that matters is no double‑booking, so I wouldn’t trust a check‑then‑insert in the app. In Postgres I’d put an exclusion constraint on the room and the time range, for active bookings only, so two inserts at the same moment can’t both win, and the loser gets a 409 Conflict. The API is POST /rooms/{id}/bookings with an idempotency key, so a retry after a timeout gets the same booking back instead of a conflict with itself. Cancelling is a status change, not a delete. Recurring bookings I’d add later as a separate series resource that creates bookings, so old clients keep working.”
    What makes it strongNames the entities and relationships, chooses keys and indexes deliberately, and enforces “no double‑booking” in the database (a unique or exclusion constraint, or a transaction with the right locking), not only in application code. Makes booking safe to retry with an idempotency key, uses clear resource names and status codes, and plans additive changes for new features.
    Weak answerKabir Sethi
    “So there’d be an endpoint like /bookRoom that takes the room and the time. First I’d query whether the room is free for that slot, and if it is, insert the booking. Cancel would be /cancelBooking. If two people book at exactly the same moment, honestly that’s rare, so the second one would probably just get an error.”
    What gives it awayChecks availability in application code and then inserts, with no thought for two requests at once. Designs endpoints as verbs that mirror functions, ignores retries, and cannot explain a single constraint or index.
  2. Question 2: Tell me about a schema or API change you made to something other teams or clients already depended on. How did you roll it out?

    Follow up with

    • How did you migrate the existing data?
    • How did you know when the old version could be removed?
    Strong answerDaniel Okafor
    “We had to split a single address field into structured fields because routing needed ZIP codes. Three mobile app versions and one partner read that endpoint. So we added the new fields next to the old one, backfilled in batches overnight, and returned both. We logged calls by app version and gave the partner a date to switch. It took about six weeks for the old app versions to drop to zero and the partner to confirm, and only then did we drop the column, with a short lock timeout so the migration couldn’t stall traffic.”
    What makes it strongDescribes an expand‑and‑contract change: add the new field or endpoint, backfill, move consumers across, then remove the old one once usage shows nobody calls it. Keeps old clients working throughout, and avoids long locks on busy tables.
    Weak answerMeera Iyer
    “We renamed a field from “state” to “status” because it confused everyone. We did it in one release and updated our own frontend at the same time. A couple of other services broke for a day, but they fixed their side once they noticed. It was the right change; it just had to happen.”
    What gives it awayMade the breaking change in one release and fixed consumers as they broke, or ran a migration that locked a busy table with no plan for it.
RatingWhat it looks like
5 · StrongModels the data with deliberate keys and constraints, enforces invariants in the database, designs retry‑safe and evolvable contracts, and plans migrations that keep every client working.
3 · MixedProduces a sensible model and API for the main case. Needs prompting on concurrency, retries or how to change the contract safely.
1 · WeakLists tables and endpoints with no keys, constraints or thought for concurrent requests. Breaks existing clients without noticing.

Competency 2

Debugging production issues

Backend bugs often appear only under real load and real data. Engineers who test hypotheses against logs, metrics and traces, rather than guessing, restore service sooner and fix the real cause.

  1. Question 3: Debugging walk‑through, 15 minutes: since this morning’s deploy, the orders endpoint’s 95th‑percentile latency has gone from 200 ms to 4 seconds, for some customers only.

    Error rates are normal. I will play the system: ask for any log, metric, trace or query plan you want. (Script the answers in advance, such as a new query that scans a whole table for customers with many orders.)

    Follow up with

    • What is your first hypothesis, and what would disprove it?
    • At what point would you roll back, and why?
    • What would you add so this is found faster next time?
    Strong answerDaniel Okafor
    “First question: is rolling back cheap? If this morning’s deploy is the only change, I’d roll back now, because customers are hurting, and debug afterwards. Then I’d narrow it. You said some customers only, so what do they have in common? Can I see latency split by customer, and the deploy diff? If the slow ones are the big accounts, my guess is a query that grows with order count. I’d pull a trace for one slow request and the query plan. If that shows a full table scan, the fix is an index or a rewritten query, and the follow‑up is a test with a large account plus a p95 alert per endpoint.”
    What makes it strongAsks whether rolling back is the fastest way to stop the harm, then narrows systematically: which customers, which queries, what changed in the deploy. Asks for a trace or a query plan, finds the cause, and separates mitigation (roll back) from the fix (an index or a rewritten query) and the follow‑up (a test or alert).
    Weak answerKabir Sethi
    “I’d probably restart the service first, in case something got stuck. If that doesn’t help, maybe the database needs more resources, so I’d scale it up. Then I’d check the error logs, but you said errors are normal, so I’m not sure where else to look. Maybe ask the DBA?”
    What gives it awayGuesses causes at random, restarts servers or asks for bigger machines. Never asks what changed in the deploy and never considers rolling back.
  2. Question 4: Tell me about the hardest production bug you have tracked down. How did you find it?

    Follow up with

    • What did you rule out first, and how?
    • What did you change so it could not happen again?
    Strong answerMeera Iyer
    “Payment confirmations were going missing, about one in two thousand, and only during sale peaks. The logs showed the webhook arriving but no order update. I ruled out the provider by matching their delivery ids to ours. Then I saw every missing one was handled while the connection pool was exhausted, and our handler swallowed the timeout and still returned 200, so the provider never retried. The root cause was the error handling, not the pool. We made the handler fail loudly, made processing idempotent so retries were safe, and alerted on the lag between webhook and order update. It hasn’t happened since, across two sale seasons.”
    What makes it strongDescribes a specific bug (a race condition, an exhausted connection pool, a time zone or encoding error), the evidence used to narrow it, the root cause rather than the symptom, and a lasting fix such as a test, an alert or a design change.
    Weak answerDaniel Okafor
    “There was a bug where some jobs failed at random. We spent a couple of days on it. In the end we added a retry and it went away, so we moved on. I’m not sure what the actual cause was; it might have been the network.”
    What gives it awayThe story ends at a restart or a retry, or the bug was found by luck. Cannot explain the root cause or what changed afterwards.
RatingWhat it looks like
5 · StrongMitigates first when users are hurting, narrows the cause with explicit hypotheses and evidence, finds the root cause, and adds the test, alert or design change that stops a repeat.
3 · MixedUses logs and metrics to narrow the problem and finds a plausible cause with some prompting. Mixes mitigation and root cause together.
1 · WeakGuesses or restarts things without evidence, never asks what changed, and stops at the symptom.

Competency 3

Reliability and running services

Backend services fail in partial ways: a slow dependency, a retry storm, a full queue. Engineers who design for those failures keep small problems from becoming outages.

  1. Question 5: A service you own calls a third‑party payments API that sometimes takes 30 seconds to answer, or times out. What do you do about it?

    Follow up with

    • What timeout and retry policy would you set, and why?
    • How do you make sure a customer is never charged twice?
    • What would you alert on?
    Strong answerMeera Iyer
    “I’d set an explicit timeout on the call, maybe five seconds, well under our own request timeout. I’d retry with backoff and jitter, but only because I’d send the provider an idempotency key for the payment, the same on every retry, so a retry can never charge twice. For the slow cases I’d take the call off the request path: accept the order, put the charge on a queue, and tell the customer we’re confirming the payment. Then I’d alert on what customers feel, like payments stuck pending for more than two minutes, not on every provider timeout.”
    What makes it strongSets explicit timeouts, retries only safe operations with backoff and jitter, sends an idempotency key so a retry cannot charge twice, moves slow work off the request path to a queue where that fits, and alerts on what users feel rather than on every error.
    Weak answerKabir Sethi
    “I’d raise our timeout to sixty seconds so we never cut them off, and add retries, maybe five, so the payment eventually goes through. If it still fails, we show an error and the customer can try again.”
    What gives it awayRaises the timeout or adds unlimited retries, which can charge customers twice or overload the provider. Has no way to tell whether the change worked.
  2. Question 6: Tell me about a service you were on call for. What did you change because of what the pager taught you?

    Follow up with

    • Which alert did you change or delete, and why?
    • What did the review after the worst incident lead to?
    Strong answerDaniel Okafor
    “I was on call for our dispatch service for two years. The pager taught me most of our alerts were noise: CPU above eighty percent fired every week and never mattered. I deleted it and alerted on failed dispatches per minute instead, which is what drivers actually feel. After our worst incident, a queue that backed up for forty minutes, the review led to a dashboard for queue age and a runbook with the three commands we kept searching for at 2 a.m. I owned both actions and closed them that sprint.”
    What makes it strongNames specific changes: a noisy alert tied to a user‑facing symptom instead, a runbook written, a health check or dashboard added, a capacity limit found and raised. Took part in blameless reviews and saw the actions through.
    Weak answerKabir Sethi
    “I haven’t really been on call. In my last team the platform team handled the alerts, and if something broke they’d message us and we’d look into it. I muted the alerts channel because it was too noisy to follow.”
    What gives it awayHas never looked at their service after deploy, or treated alerts as noise to mute. No follow‑up after incidents.
  3. Question 7: What would you check before running a background job that rewrites ten million rows in production for the first time?

    Follow up with

    • How would you stop it halfway if something looked wrong?
    Strong answerKabir Sethi
    “Never one big transaction. I’d process it in batches of a few thousand rows by primary‑key range, and make each batch safe to re‑run, so if it stops halfway I restart from the last checkpoint. I’d time it on a restored copy of production first. In production I’d rate‑limit it, run it off‑peak and watch database CPU and replication lag, with a flag that pauses it. And before it starts, a backup or a way to rebuild the old values, because once ten million rows are rewritten there’s no undo button.”
    What makes it strongRuns it in batches that are safe to re‑run, tests it on a copy of production data, limits its rate, watches database load and replication lag, and keeps a way to pause and resume. Has a rollback or a backup plan for the data.
    Weak answerDaniel Okafor
    “I’d write the script, test it locally and run it one evening when traffic is low. It’s a single update statement, so the database should cope. If something looked wrong, I’d kill the script.”
    What gives it awayRuns it as one large transaction against production and watches what happens. No way to stop it cleanly or to undo it.
RatingWhat it looks like
5 · StrongDesigns for partial failure by habit (timeouts, safe retries, idempotency, back‑pressure, resumable jobs), alerts on user‑facing symptoms, and turns every incident into a lasting fix.
3 · MixedSets timeouts and retries and watches their service after deploy. Needs prompting on idempotency, backoff, safe batch jobs or alerting on what users feel.
1 · WeakDesigns as if dependencies never fail, and has no view on timeouts, retries, batch jobs or what to monitor.

Competency 4

Security basics

Backend engineers hold the data and the keys. The common mistakes, such as a missing authorization check or a secret in a log, are made and prevented by the engineer who writes the endpoint.

  1. Question 8: Work sample, 10 minutes: here is a 30‑line endpoint that returns an invoice by id.

    It checks that the user is signed in but not that the invoice belongs to their account, builds its SQL by joining strings, and logs the full request body. What would you change?

    Follow up with

    • Which issue would you fix first, and why?
    • How would you test that the fix works?
    • Where else in the codebase would you look?
    Strong answerKabir Sethi
    “The biggest problem is that any signed‑in user can read any invoice by changing the id. Signed in isn’t authorized. I’d fix that first: load the invoice scoped to the user’s account and return a 404 if it isn’t theirs. Second, the SQL is built by joining strings, so I’d use a parameterized query. Third, logging the whole request body puts personal data in our logs, so I’d log the invoice id and user id only. Then I’d add a test that user A gets a 404 for user B’s invoice, and search for other endpoints that load by id without an account scope, because this pattern is rarely in just one place.”
    What makes it strongFinds the missing ownership check (any signed‑in user can read any invoice), the injection risk and the personal data in the logs. Fixes them with an authorization check scoped to the account, parameterized queries and redacted logging, adds a test for the access rule, and looks for the same pattern elsewhere.
    Weak answerMeera Iyer
    “The string concatenation jumps out, that’s SQL injection, so I’d switch to a prepared statement. The rest looks fine; you have to be logged in to call it anyway. Logging the request body is useful for debugging, so I’d keep that.”
    What gives it awayFinds only the SQL string, or says the sign‑in check is enough. Proposes a firewall or a scanner instead of fixing the code.
  2. Question 9: Tell me about a security issue you found, caused or fixed in a system you worked on.

    Follow up with

    • How was it discovered?
    • Who did you tell, and how quickly?
    Strong answerKabir Sethi
    “I found an API key for our SMS provider committed in a config file, in a repository we shared with an agency. I told my lead and our security contact within the hour. We rotated the key that day and checked the provider’s logs for misuse; there was none. Then we fixed the kind of problem, not just the key: secrets moved into the secret manager, and I added a secret scan to the pre‑commit hook and to CI, so the next one is caught before it lands.”
    What makes it strongGives a concrete case (a leaked secret rotated, a broken access check, a dependency with a known vulnerability), acted quickly, told the right people, and fixed the kind of problem, not just the one instance.
    Weak answerDaniel Okafor
    “Not really. Security is handled by our security team; they run scans every quarter. I don’t think I’ve caused any issues, and if I saw something I’d tell them.”
    What gives it awayCannot name one, or kept a mistake quiet. Treats security as the security team’s job.
RatingWhat it looks like
5 · StrongFinds authorization, injection and data‑exposure issues unprompted, fixes them at the root with tests, and checks the rest of the codebase for the same pattern.
3 · MixedFinds the injection risk and most obvious issues, and knows the common risks by name. Misses authorization or data in logs until prompted.
1 · WeakMisses the ownership check in the work sample and treats sign‑in as authorization. Sees security as someone else’s job.

Competency 5

Ownership across teams

A backend service sits between web, mobile, data and partner teams. Engineers who treat those teams as customers of their API, and fix problems at the source, keep the whole system healthy.

  1. Question 10: Tell me about a time a frontend, mobile or partner team needed a change to your API sooner than you thought was safe. What happened?

    Follow up with

    • What did you offer them?
    • What did you write down, and where?
    Strong answerDaniel Okafor
    “The mobile team needed a delivery‑tracking endpoint two weeks early for a launch. Building the full version that fast meant skipping the load testing I wanted. So I asked what they needed on launch day: status and ETA, not the whole event history. We shipped a narrow read‑only endpoint behind a feature flag in four days, and wrote in the API docs that the full version would follow on a set date, with its contract. We hit that date, and their launch went out on time.”
    What makes it strongUnderstood what the other team actually needed, offered a safe interim (a narrower endpoint, a feature flag, a dated plan), wrote the agreement down in the API docs or a ticket, and delivered what was promised.
    Weak answerMeera Iyer
    “I told them it wasn’t possible in that timeline. They escalated to my manager and in the end we rushed it out. There were a couple of bugs in production, but we fixed them the next sprint.”
    What gives it awayRefused without an alternative, or rushed the change and broke something. The other team learned about the outcome by accident.
  2. Question 11: What would you do if you found that another team’s service was writing bad data into a table your service reads?

    Follow up with

    • How do you protect your own service meanwhile?
    • Who do you contact first?
    Strong answerKabir Sethi
    “First I’d protect my own service: validate the rows we read and quarantine the bad ones with a log, so we stop passing bad data downstream. Then I’d go to the owning team directly, with examples: these rows, these values, since this date. I’d agree on a fix at the source and write down a contract for the table, even just a schema and a few rules in its README, and I’d offer to help clean up what’s already been written.”
    What makes it strongProtects their service with validation or by skipping bad rows, contacts the owning team with evidence, agrees on a fix at the source and a clear contract for the data, and helps clean up what was already written.
    Weak answerMeera Iyer
    “I’d fix the data in the table with a script and add some checks in our code to handle it. That’s quicker than waiting for their team. If it kept happening, I’d raise it with my manager.”
    What gives it awayQuietly patches the data or adds workarounds in their own code, or escalates to managers before talking to the owners. Treats it as the other team’s problem alone.
RatingWhat it looks like
5 · StrongTreats every consumer as a customer, offers safe paths for urgent requests, protects their service while fixing problems at the source, and writes the agreements down.
3 · MixedTells dependent teams about changes and responds to their requests. Raises cross‑team problems but relies on others to resolve them.
1 · WeakWorks only within their own tickets. Breaks consumers without telling them, or works around other teams quietly.

Never ask

  • Don’t ask a candidate’s age, or their graduation year to work it out. Why: age says nothing about engineering skill, and age‑based decisions are unlawful in many places.
  • Don’t ask about marital status, children, pregnancy or plans to start a family. Why: none of it is job‑related, and the question is still put mostly to women, which makes it discriminatory as well as irrelevant.
  • Don’t ask about religion, caste, community or the origin of a surname, directly or by proxy (“What does your father do?”). Why: in India these questions signal caste and religion, which have no bearing on the job.
  • Don’t ask “Where are you from originally?” or “What is your native place?” Why: it invites judgments about region, language and community. If location matters, ask whether the candidate can work from the job’s location.
  • Don’t ask about citizenship or nationality. Why: it is not job‑related and can be unlawful discrimination in the US, the EU and elsewhere. Ask only whether the candidate has the right to work in the job’s location, or will need sponsorship.
  • Don’t ask about health conditions, disabilities or past medical leave. Why: the only relevant question is whether the candidate can perform the essential functions of the job, with or without reasonable accommodation.
  • Don’t ask for salary history where the law restricts it: many US states and cities do, and the EU Pay Transparency Directive requires member states to. Why: it carries past pay gaps into the new offer. Ask for the expected range; in India, where current pay is commonly asked, still set the offer from the role’s band.
  • Don’t ask the candidate to share code, schemas or incident details from their current employer, or to solve a problem from your real backlog. Why: the first may breach their confidentiality duties, and the second is unpaid work. Use fictional exercises like the ones in this kit.

Making the decision

Each interviewer rates their competencies alone, against the anchors, before the debrief. The must‑haves are API design and data modeling, debugging production issues, and security basics. Any 1 on a must‑have is a no, and so is any competency rated 1 by two interviewers. A hire needs an average of 3.5 or higher. The hiring manager decides after the debrief and records the exercise evidence and quotes behind each rating.

Questions people ask

What should a backend engineer system design interview cover?
For a mid‑level engineer, the design of one feature or service at a realistic scale: the data model, the API, concurrency, and what happens when a dependency fails. A global‑scale design question mostly tests rehearsal. Ask how the design changes at ten times the load to see judgment about growth.
How do you test debugging skills in an interview?
Run a walk‑through in which the interviewer plays the system. Describe the symptom, then answer each request for a log, metric or trace from a script written in advance. It shows how the candidate forms and tests hypotheses without any laptop setup. Use the same script for every candidate.
Does a backend engineer need to know our exact language and database?
Usually not, for a mid‑level hire. Data modeling, concurrency, debugging and security carry over between languages and relational databases. If the job truly needs a specific stack from day one, test it directly and say so in the invitation.
How much security should a backend engineer know?
Enough to avoid the common mistakes in their own code: broken authorization, injection, secrets in code or logs, and outdated dependencies. They do not need to be a security specialist. The ten‑minute invoice‑endpoint review above tests the basics.

A kit is step one.

Itya holds every interviewer to the same rubric, records the interview, and drafts the scorecard with the quotes behind each rating. The AI drafts; your team decides. Free plan, unlimited teammates.