Interview questions
Consistency & distributed transactionsMediumSDE-2

A doctor appointment app checks 'is the 10:00 slot free?' and then inserts a booking, inside a transaction. Two patients still got the same slot. Explain why and fix it.

Asked at
AirbnbBookMyShowPracto

Think first

Answer out loud as you would in the room — clarify, give numbers, name the trade-off — then compare with the model answer.

Saved on this device. Create a free account to keep it on every device.

Practise this with Sam

A real mock interview, out loud, with an honest scorecard. Free to start.

Start free