Skip to content

LLD Handbook — SDE2 / SDE3 Interview Preparation

Target audience: Backend engineers with 6+ years of experience interviewing for SDE2/SDE3 roles at Amazon, Google, Meta, Microsoft, and other top product companies.

This handbook is built for interview preparation, not for teaching OOP from scratch. If you are still learning what encapsulation means, this is the wrong document. If you have shipped production systems, led design reviews, and want a structured way to sharpen your LLD interview performance — keep reading.

What This Handbook Gives You

  1. A repeatable delivery framework you can apply to any LLD problem in 45 minutes.
  2. Principle-level fluency — SOLID, cohesion/coupling, composition-over-inheritance — with the exact wording interviewers respond to.
  3. Design patterns filtered to the 10 that show up, with crisp when to use and when to avoid.
  4. Concurrency literacy — enough depth to discuss thread safety, coordination, and backpressure when the interviewer probes.
  5. 14 fully-worked problems at SDE2/SDE3 depth, each with clarifying questions, tradeoffs, concurrency notes, follow-ups, and an explicit how does SDE3 beat SDE2 on this problem breakdown.

How to Use It

  • 2 days out: Read Section 1 and one problem in Section 3. Get the framework into muscle memory.
  • Week of: Work through 3-4 problems a day. Speak the clarifying-question phase out loud. Time yourself — target 40 minutes per problem.
  • Morning of: Skim the Delivery Framework and the SDE2 vs SDE3 table. Nothing else.

Sections

Section 1: Fundamentals

FileFocus
01 — Interview IntroductionWhat LLD tests. SDE2 vs SDE3 bar. What "good" looks like.
02 — Delivery Framework8-step framework with exact phrases you can reuse.
03 — Design PrinciplesSOLID, DRY, KISS, YAGNI, cohesion/coupling, composition, immutability.
04 — OOP ConceptsSenior-level OOP — interfaces vs abstract, aggregation vs composition, DI.
05 — Design PatternsStrategy, Factory, Singleton, Observer, Builder, Adapter, Decorator, State, Command, Template.

Section 2: Concurrency

FileFocus
06 — CorrectnessThreads, shared state, locks, CAS, deadlock, reentrancy, idempotency.
07 — CoordinationSemaphores, producer/consumer, blocking queue, condition vars, thread pools, futures.
08 — Scarcity & ResilienceRate limiting, connection pools, backpressure, retries, circuit breaker.

Section 3: Problem Breakdowns

Core Problems — gateway problems; miss these and nothing else matters.

#ProblemWhy it's asked
10Tic Tac ToeWarm-up. Tests clean abstractions without scale pressure.
11Connect FourReuses TTT's chassis with a twist (gravity). Good for extensibility talk.
12Amazon LockerMulti-entity, assignment strategy, state transitions, expiry.
13ElevatorDispatch algorithm, state machine, multi-car coordination.
14Parking LotThe classic. Strategy for assignment, pricing, ticketing.

Real Interview Problems — what actually shows up in loops.

#ProblemWhy it's asked
15File SystemComposite pattern, path parsing, tree traversal.
16Movie Ticket BookingConcurrency under contention — seat reservation is the whole problem.
17Rate LimiterStrategy pattern, token bucket vs sliding window, distributed awareness.
18Inventory ManagementReservations, reorder thresholds, event-driven design.

Senior-Level Bonus Problems — the depth-probing extras.

#ProblemWhy it's asked
19Notification ServiceMulti-channel fan-out, templates, retries, rate limits.
20Food Delivery SystemMulti-actor state machines, location, assignment.
21Meeting SchedulerInterval logic, conflict detection, recurrence.
22Cab Booking SystemMatching, pricing/surge, driver-rider state transitions.
23Cache with Eviction PoliciesPluggable eviction (LRU/LFU/TTL/FIFO), concurrency, observability.

Scope — What This Handbook is Not

  • Not an OOP textbook. Principles are covered but assumed mostly internalized.
  • Not a language reference. Code is TypeScript for consistency; translate to your preferred language.
  • Not HLD. System design at the distributed-system level is a separate discipline. Some LLD problems touch scale; full HLD is out of scope.
  • Not behavioral prep. For Amazon LP prep, see Amazon Prep.

Frontend interview preparation reference.