backend developerinterview questions.
see the job descriptionHow would you design an API endpoint that creates an order and charges a card?
Look for: Transactions, idempotency keys, failure handling and what happens on retries.
Tell me about a schema change you made on a live database.
Look for: Backwards-compatible migrations, backfills, and a plan for rolling back.
Two requests update the same record at once. What can go wrong, and how do you prevent it?
Look for: Understanding race conditions, and locks, compare-and-set or constraints to stop them.
How do you make sure one customer can never see another customer's data?
Look for: Authorization enforced in one place, tenancy in every query, and tests that prove it.
A background job sometimes runs twice. How do you make that safe?
Look for: Idempotent design: deduplication keys and operations that can safely repeat.
How do you find out why an endpoint got slower?
Look for: Metrics and traces, query plans, and fixing the cause rather than adding a cache.