Interview questions
Idempotency, retries & failure handlingMediumSDE-2

Your OTP service calls an SMS gateway that has no idempotency support. When the gateway is slow, users get two or three OTPs, and your SMS bill spikes. How do you handle a non-idempotent external dependency?

Asked at
PaytmPhonePeSwiggyZomato

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