Interview questions
Consistency & distributed transactionsHardSDE-3

A cron worker takes a Redis lock with a 30-second TTL before writing a daily settlement file. A long GC pause makes it run 45 seconds, and another worker starts. How do you make this safe?

Asked at
RazorpayStripeUberZerodha

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