Mock interview

Backend developer interview: the 8 questions you’ll be asked

In a backend interview, nobody asks whether you know a framework: they ask you to justify what you built. Why that database schema, how your API holds under load, what happens when a service goes down. The AI agent starts from the projects on your CV and runs the spoken part of the interview, out loud, digging into every answer that stays too general.

Take the backend developer interviewUpload your CV: in three seconds, Léa shows you the lines a recruiter will pick apart. Free, no card.

What the recruiter checks

  • An API you can defend: resources, errors, versioning, retried requests.
  • Command of your database: data model, indexes, transactions, slow queries.
  • A production mindset: logs, metrics, and what you do when it breaks.
  • Trade-offs you own between simplicity, performance and cost.

The questions you’ll be asked

  1. 01Walk me through the most interesting backend system you’ve worked on.

    What they’re looking for: The need, the architecture in a few blocks, your exact part, and the limit you know it has.

    Example of a good answerI worked on the payment service of a rental platform, in Node.js with PostgreSQL. In three blocks: an API that takes the requests, a worker that talks to the payment provider, and a queue that receives its webhooks. My part was the worker and failure handling: retries, partial refunds, daily reconciliation with the provider. Its limit is that everything goes through a single database: beyond a few thousand payments a minute, we’d have to split it.
  2. 02How would you design the API for a booking service?

    What they’re looking for: The resources, the error codes, pagination, and what happens if the same request arrives twice.

    Example of a good answerI’d start from three resources, slots, bookings and customers, with cursor-paginated lists. I’d return a 409 if the slot has just been taken, a 422 if the request is invalid, and never a 500 for a client error. For a request sent twice, I’d require an idempotency key in the header: the server stores it and returns the same booking instead of creating a second one. And I’d add a unique constraint on the slot in the database, so two simultaneous bookings can never both go through.
  3. 03A query takes two seconds in production. What do you do?

    What they’re looking for: Measure first: the query plan, the indexes, queries fired in a loop from the code, and caching as a last resort.

    Example of a good answerI start with the execution plan, using EXPLAIN ANALYZE, to see where the time goes. Last time, it was a full scan of a 12-million-row table, because there was no index on the filter and the date: a composite index brought the query down to 30 milliseconds. I also look at the code, because an ORM firing one query per row in a loop gives the same symptom. Caching comes last: it hides the problem without fixing it, and then you have to manage invalidation.
  4. 04When would you use a message queue rather than a direct call?

    What they’re looking for: Decoupling, absorbing spikes, retrying — and the price: message ordering, duplicates, harder tracing.

    Example of a good answerI use a queue when the caller doesn’t need the answer right away: sending an email, generating a PDF, notifying another service. On my last project, we moved invoice sending onto RabbitMQ: month-end spikes no longer slowed the API down, and failures were retried automatically. The price is that a message can arrive twice or out of order, so every consumer has to be idempotent. You also need a dead-letter queue and monitoring, otherwise you lose messages without noticing.
  5. 05How do you change a database schema without downtime?

    What they’re looking for: Over several deploys: add, write to both, migrate the data, then remove the old one.

    Example of a good answerI do it over several deploys, never in one. To rename a column, for example: I add the new one, the code writes to both, I backfill the history in batches so as not to lock the table, then the code reads from the new one. Once it’s all run for a few days without errors, I drop the old column in a final deploy. That’s what I did last year on a 40-million-row orders table, with zero downtime.
  6. 06Tell me about a production incident you lived through.

    What they’re looking for: Detection, diagnosis, the fix, and what changed so it wouldn’t happen again.

    Example of a good answerOne Friday evening, the error-rate alert on the order API fired: 15% of requests were timing out. In the metrics, I saw the database connection pool was saturated by a nightly batch job that had started early. I stopped that job, the service recovered within ten minutes, then I wrote the post-mortem. Since then, heavy jobs have their own connection pool, and an alert watches how full it gets.
  7. 07How do you secure an API?

    What they’re looking for: Authentication, permissions checked server-side, input validation, rate limits, secrets kept out of the code.

    Example of a good answerAuthentication first: in our case, short-lived JWTs with a refresh token. Then I check permissions server-side on every request: a user must never read someone else’s order by changing the ID in the URL, and I’ve fixed exactly that bug before. I validate every input against a schema and rate-limit the login endpoint. Secrets live in a dedicated secrets manager, never in the repo.
  8. 08How do you test a service that depends on a database and external APIs?

    What they’re looking for: What you test against a real database, what you mock, and why.

    Example of a good answerI unit-test the business logic, with no database or network. Anything that touches the database, I test against a real PostgreSQL running in a container, because a mocked database sees neither constraints nor transactions. External APIs, I mock with recorded responses, errors and timeouts included, because that’s where bugs hide. And a few contract tests warn me if the provider changes the format of its responses.

How Léa follows up

A vague answer doesn’t get through. This is the kind of exchange you’ll have:

You

I improved the API’s performance.

Léa

By how much, and measured how? Give me the response time before, what you changed, and the time after.

You

We use microservices.

Léa

How many services, and why split them that way? What would be simpler if it were all one service?

The classic mistakes

Reciting patterns

Naming CQRS or event sourcing without saying what problem they solved for you sounds like a lesson learned by heart.

A system that never breaks

An architecture described with no outages, retries or duplicates suggests it never ran in production.

“We” instead of “I”

The recruiter wants to know what you designed, coded or decided, not what the team shipped.

Not daring to say “I don’t know”

A made-up answer shows. Explaining how you would find out is better.

Frequently asked questions

Does the AI agent make me write code?

No. Intervoo trains the spoken part: presenting your projects, justifying your choices, answering technical questions. That’s often where it’s decided, even after a good coding exercise.

Can I practise for a specific company?

Yes. Paste the job ad: the AI agent recruits for that company and checks its requirements one by one.

How long does the interview last?

About twenty minutes, out loud. No microphone? The same interview works in writing. At the end you get a score out of 20 and, for every criticism, what you said and what you should have answered.