KatInterview

Topic

System Design interview problems

Scalable services, storage, caching and trade-offs. 1131 original problems, each with a worked model answer.

Problems1131

43 easy719 medium369 hard

Showing 91–120 of 1131 results

  • Architect a high-performance, distributed rate limiting system for an API gateway handling high-throughput, bursty traffic.

    Model answerrate-limiterdistributed-systemsapi-gatewayredis
  • Group byte-identical files across a directory tree too large for memory, minimizing disk reads, staying correct under hash collisions, and scaling out across workers.

    Model answerdeduplicationhashingexternal-memoryfile-systems
  • Design an architecture for a multi-tenant distributed task execution platform handling millions of parallel jobs, emphasizing fault tolerance, scheduling, leases, and idempotency.

    Model answersystem-designdistributed-systemsfault-tolerancequeues
  • Design a calendar backend for hundreds of millions of users covering events, recurrence, time zones, sharing, reminders, sync, and storage choices, with APIs, schemas, queries, and scaling.

    Model answersystem-designcalendarrecurrencesharding
  • Design a horizontally scalable object storage service with buckets, keys, and huge blobs, covering metadata, placement, durability, consistency, large uploads, security and operations.

    Model answerobject-storagedistributed-systemsreplicationerasure-coding
  • Walk through how a huge allocation becomes virtual and physical memory on Linux, why swap hurts tail latency, and what C++ inline means for linkage and the CPU.

    Model answeroperating-systemsvirtual-memorylinuxcpp
  • Design a multi-tenant service that places API-driven phone calls through carriers with hard channel and CPS limits, stays fair under bursts, and tracks call state reliably.

    Model answersystem-designqueueingbackpressurerate-limiting
  • Design a service that lets users send money abroad with live FX quotes, fees, limits, multiple funding and payout options, status tracking, refunds and notifications.

    Model answersystem-designpaymentsidempotencysaga
  • Design an asynchronous GPU scheduling service for single-GPU text-to-video jobs, featuring weighted fair queueing, fault tolerance, and lease-based worker management.

    Model answersystem-designjob-schedulerdistributed-systemsgpus
  • Design an asynchronous service that checks contracts against versioned rule sets, cites exact text spans, proposes edits, assigns a risk tier, and lets reviewers override results.

    Model answersystem-designllm-agentstraceabilitymulti-agent
  • Explain how Spark defers and runs work across a cluster, then show how that execution model guides a measured approach to tuning slow batch and streaming jobs on Parquet/Delta data.

    Model answersparkpysparkdata-engineeringperformance-tuning
  • Design a service that picks a legal, safe, and convenient meeting spot for a rider and driver, balancing walking time, driver arrival time, and confidence.

    Model answersystem-designmapsroutingranking
  • Design a backend that lets many people edit one text document at once, keeps every replica converged, persists edits with history, and recovers cleanly from disconnects and server crashes.

    Model answersystem-designreal-time-collaborationoperational-transformationcrdt
  • Design a fetcher that pulls a multi-file model in parallel byte ranges, survives failures without redoing verified work, and exposes the model only when complete and consistent.

    Model answersystem-designresumable-downloadsbyte-rangesintegrity-verification
  • Architect a high-concurrency item drop system using edge-cached waiting queues, zero-oversell inventory reservation, and idempotent payment processing.

    Model answersystem-designdistributed-systemsredisrelational-database
  • Explain how to verify a valid/ready RTL block using UVM: environment structure, an out-of-order-safe scoreboard, and coverage-driven closure to sign-off.

    Model answeruvmsystemverilogdesign-verificationscoreboard
  • Design a service that stores payments for later execution, lets users check or cancel them while pending, and guarantees no duplicate charges despite retries, crashes and time-zone quirks.

    Model answersystem-designschedulingidempotencydistributed-systems
  • Design a pipeline that flags re-uploaded or lightly altered videos against a billion-item catalog within 500 ms at 10k uploads per second, balancing precision and recall.

    Model answersystem-designvector-searchannembeddings
  • Architect a high-performance, multi-tenant rate limiter capable of enforcing global traffic quotas across millions of requests per second with sub-5ms response times.

    Model answerrate-limitingdistributed-systemscachingscalability
  • Design a fault-tolerant, multi-tenant scheduler that places long, opaque, gang-scheduled GPU jobs on a 10,000-GPU fleet while keeping utilization high and recovering from node failures.

    Model answerjob-schedulinggpu-clusterfair-sharegang-scheduling
  • Design a cloud service that lets clients register recurring or one-off tasks, runs them on a worker fleet without skipping any run, enforces timeouts, and exposes run status and logs.

    Model answersystem-designjob-schedulerdistributed-systemsfault-tolerance
  • Design a scalable, highly available cart service for a meal-ordering app, covering APIs, storage, price drift handling, concurrent edits across devices, and consistency trade-offs.

    Model answersystem-designcart-serviceconsistencyidempotency
  • Design a streaming AI chat product where conversation content lives only in the browser, a stateless relay protects provider keys, and refresh begins a fresh chat.

    Model answersystem-designstreamingsseoauth-pkce
  • Design a WebSocket-based one-to-one messaging service with presence and history, plus a scheduled pipeline that emails customers who have been dormant for ten days.

    Model answerwebsocketmessage-routingpresencepub-sub
  • Explain how to steer or override a compiler's scheduling on a VLIW-style core, and how to verify the result is both correct and faster without relying on undefined behavior.

    Model answercompiler-optimizationvliwperformance-engineeringsoftware-pipelining
  • Design a distributed job scheduler for one-time and recurring jobs where a scheduled run must never start twice, covering crash ambiguity, deadlines, logs, cancellation and notifications.

    Model answersystem-designdistributed-schedulerat-most-onceleases
  • Design a service that pairs passengers with close-by available drivers, ingests live driver positions, and carries each trip from request to payment without ever double-booking a driver.

    Model answersystem-designgeospatial-indexdispatchreal-time
  • Design a location-aware business discovery and review platform, then a short-link service, covering data models, search, caching, scaling reads and writes, and operational trade-offs.

    Model answersystem-designgeospatial-searchcachingsharding
  • Design a robust event delivery platform supporting independent fan-out isolation, classified retry delays, rate limiting, and historical replays.

    Model answersystem-designpub-subevent-drivenrate-limiting
  • Architect a 1-on-1 instant messaging backend relying exclusively on standard HTTP request-response APIs, managing message synchronization, ordering, idempotency, and push delivery at scale.

    Model answersystem-designmessagingdistributed-systemshttp-polling

More topics