SDE2 Interview Questions at Razorpay

Published July 22, 2026 · Updated July 22, 2026

15 real SDE2 interview questions asked at Razorpay. Covers System Design, Technical, HR, Scenario, Screening rounds. Sourced from engineers who cleared the loop.

15 questions
748 upvotes
Rounds: 5
Top topic: system-design

Interview Signals — What Razorpay Asks SDE2s

Frequently Asked Topics
system-design4x
domain2x
react2x
nodejs2x
behavioral1x
Interview Rounds
System Design5q
Technical4q
HR1q
Scenario4q
Screening1q
Experience Level
4-7 years3q
3-6 years3q
4-8 years2q
5-8 years1q

All SDE2 Questions Asked at Razorpay

Razorpay Hard Scenario round 4-7 years

A Node.js microservice processes background jobs from a Redis queue. Under load, jobs fail and retry endlessly, creating a death loop that blocks the queue. How do you implement a proper retry strategy with dead letter handling?

↑ 73 upvotes · 41 engineers asked this · SDE2
Razorpay Hard System Design round KafkaRedisPostgreSQL

Design Razorpay's payment retry system. When a payment fails due to a transient error (bank timeout, network blip), how do you retry safely without double-charging the customer? Cover: idempotency keys, exponential backoff with jitter, dead-letter queues, and reconciliation with bank statements.

↑ 72 upvotes · 71 engineers asked this · SDE2
Razorpay Hard System Design round 5-8 years

You're building a feature flag system in React. Flags come from an API and affect which components render. How do you implement this so: flags load once at startup, components don't re-render when irrelevant flags change, and engineers can easily wrap any component.

↑ 71 upvotes · 39 engineers asked this · SDE2
Razorpay Hard Scenario round 4-7 years

Your JWT tokens are being stolen from localStorage and used in attacks. A developer suggests using httpOnly cookies instead. Describe the complete migration, including risks and security tradeoffs.

↑ 70 upvotes · 18 engineers asked this · SDE2
Razorpay Hard Screening round 3-6 years

What is idempotency? Why is it critical for payment APIs and how do you implement it?

↑ 68 upvotes · 16 engineers asked this · SDE2
Razorpay Hard System Design round KafkaPostgreSQLRedis

Design Razorpay's payout system (RazorpayX). Businesses send bulk payouts to thousands of vendor accounts simultaneously. Cover: batching, bank API rate limits, real-time status tracking, and failure handling.

↑ 61 upvotes · 39 engineers asked this · SDE2
Razorpay Hard Scenario round 4-7 years

Your Next.js app fetches user-specific data in getServerSideProps. The page load time is 3.2 seconds. CDN cache hit rate is 0%. Product team asks you to make it faster without losing personalization. What do you do?

↑ 57 upvotes · 25 engineers asked this · SDE2
Razorpay Hard Technical round PostgreSQLJavaKafka

How do you implement a distributed ledger for financial transactions? Explain double-entry bookkeeping in code, why you never update a balance directly, and how you use event sourcing to reconstruct the current balance from a transaction log.

↑ 56 upvotes · 35 engineers asked this · SDE2
Razorpay Hard System Design round KafkaRedisPostgreSQL

Design Razorpay's dashboard for merchants. A merchant wants to see real-time revenue, transaction success rates, and refund trends. How do you aggregate millions of transactions into live charts with under 5-second latency?

↑ 49 upvotes · 30 engineers asked this · SDE2
Razorpay Medium HR round

Describe a production incident you were part of. Walk through the detection, triage, resolution, and post-mortem. What monitoring or process changes did you introduce afterwards?

↑ 48 upvotes · 29 engineers asked this · SDE2
Razorpay Medium Technical round RESTDistributed Systems

Explain the difference between a payment gateway, payment processor, and acquiring bank. How does money actually move when a customer pays with a credit card on a Razorpay-powered checkout? Walk through each hop end to end.

↑ 39 upvotes · 38 engineers asked this · SDE2
Razorpay Medium Technical round 3-6 yearsKafka

Kafka guarantees message order within a partition but not across partitions. For a payments system, why does this matter, and how would you key messages to preserve per-account ordering?

↑ 24 upvotes · 14 engineers asked this · SDE2
Razorpay Hard Scenario round 4-8 years

Your service processes payments. During load testing at 5x normal traffic, you notice 0.01% of transactions are charged twice. At scale that's 1000 users per day. How do you find and fix this?

↑ 21 upvotes · 9 engineers asked this · SDE2
Razorpay Medium Technical round 3-6 yearsPostgreSQL

In PostgreSQL, what is the difference between SERIALIZABLE and READ COMMITTED isolation levels for a transaction that reads then updates an account balance?

↑ 20 upvotes · 9 engineers asked this · SDE2
Razorpay Hard System Design round 4-8 years

Your REST API uses JWT. A user changes their password. How do you immediately invalidate their existing JWT tokens?

↑ 19 upvotes · 27 engineers asked this · SDE2

Practice these questions with AI feedback

Get instant grading on your answers, identify your weak areas, and generate a personalised 14-day study plan — all free.

Build my study plan →

Other companies hiring SDE2s

Amazon SDE2 questions Google SDE2 questions Microsoft SDE2 questions Flipkart SDE2 questions Infosys SDE2 questions TCS SDE2 questions

More at Razorpay

All Razorpay questions Razorpay interview process Prepare for Razorpay

Frequently asked questions

What topics does Razorpay ask SDE2s?
Common topics: system-design, domain, react, nodejs, behavioral.
What rounds are there in Razorpay SDE2 interview?
Reported rounds: System Design, Technical, HR, Scenario, Screening.
What experience level does Razorpay hire SDE2s at?
Most reported experience: 4-7 years.