SDE2 Interview Questions

Published July 22, 2026 · Updated July 22, 2026

713 verified SDE2 interview questions from Amazon, Google, Microsoft, Flipkart, Infosys and more. Covers all experience levels.

713 questions
27 companies
33111 upvotes

Interview Signals for SDE2 Roles

Companies Asking
Amazon267q
TCS150q
General147q
Razorpay15q
Infosys11q
Google10q
Most Asked Topics
system-design95x
react65x
java64x
dsa63x
behavioral50x
By Experience
3-6 years163q
2-5 years135q
4-8 years72q
4-7 years68q
3-7 years63q
2-4 years18q
1-4 years14q
3-8 years13q
2-6 years13q
3-5 years6q
2-7 years6q
5-8 years5q
1-5 years3q
2-8 years1q
4-9 years1q

Top Questions by Upvotes

Amazon Hard System Design round Distributed SystemsSystem DesignAWS

Design a distributed rate limiter that can handle 10M requests per second across multiple data centers. Discuss consistency tradeoffs, the choice between token bucket vs leaky bucket, and how you would handle clock skew across regions.

↑ 99 upvotes · 89 engineers asked this · SDE2
Uber Hard System Design round Distributed SystemsRedisKafka

Design Uber's driver-rider matching system. How do you match the nearest available driver to a rider within 200ms at global scale? Cover: geospatial indexing (H3/S2), the dispatch algorithm, how you handle supply-demand imbalances, and what happens when a matched driver rejects the trip.

↑ 99 upvotes · 98 engineers asked this · SDE2
Infosys Medium Technical round Java

What is the difference between String, StringBuilder, and StringBuffer in Java? When would you use each? Explain immutability, thread safety, performance implications, and give an example where using String in a loop causes excessive object creation.

↑ 98 upvotes · 39 engineers asked this · SDE2
Google Medium Technical round JavaC++Python

Given a binary tree, return the boundary of the tree in anti-clockwise direction starting from the root. The boundary consists of the left boundary, leaves, and the right boundary in reverse.

↑ 96 upvotes · 31 engineers asked this · SDE2
Netflix Hard System Design round Distributed SystemsKafkaAWS

Design Netflix's video recommendation system. Netflix serves 250 million subscribers. How do you generate personalised top-10 rows for each user in real time? Cover: collaborative filtering, content-based signals, contextual signals (time of day, device), and how you handle the cold-start problem for new users.

↑ 95 upvotes · 93 engineers asked this · SDE2
TCS Medium Technical round JavaSpring Boot

What are the SOLID principles? Explain each with a real-world Java example. Then describe a scenario where rigidly following SOLID leads to over-engineering, and how you balance pragmatism with good design.

↑ 93 upvotes · 36 engineers asked this · SDE2
Microsoft Hard System Design round

Design Microsoft Teams' presence system. How do you propagate "online / away / busy" status to millions of users with sub-second latency without overwhelming the backend?

↑ 89 upvotes · 27 engineers asked this · SDE2
Infosys Medium Technical round Java

Explain the Java Memory Model. What are heap and stack? How does garbage collection work? Describe generational GC (Young, Old, Metaspace), GC roots, mark-and-sweep, and how to diagnose memory leaks with tools like VisualVM or jmap.

↑ 89 upvotes · 34 engineers asked this · SDE2
PhonePe Hard System Design round KafkaDistributed SystemsPostgreSQL

Design PhonePe's UPI transaction system to handle 1 billion transactions per day. Cover: request routing to the correct bank, NPCI integration, handling duplicate transactions, consistency vs availability trade-offs, and how you build a reliable audit trail for regulatory compliance.

↑ 89 upvotes · 89 engineers asked this · SDE2
Oracle Medium Technical round PostgreSQLMySQL

Explain Oracle's MVCC (Multi-Version Concurrency Control) and how it enables consistent reads without blocking writers. How does it differ from SQL Server's locking approach? What are the downsides of MVCC (undo log growth, long-running transactions)?

↑ 88 upvotes · 33 engineers asked this · SDE2
Amazon Hard Screening round 4-8 years

Explain the CAP theorem with a real database example for each combination. Which pair does a standard RDBMS choose?

↑ 84 upvotes · 42 engineers asked this · SDE2
TCS Medium Technical round 2-4 years

A developer puts async code inside useEffect by returning an async arrow function: useEffect(() => async () => {...}). Why is this wrong?

↑ 84 upvotes · 22 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 →

SDE2 by company

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

Frequently asked questions

What do SDE2 interviews cover?
Common topics: system-design, react, java, dsa, behavioral.
Which companies hire SDE2s?
Companies with reported questions: Amazon, TCS, General, Razorpay, Infosys.