KatInterview

Topic

System Design interview problems

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

Problems1132

43 easy720 medium369 hard

Showing 181–210 of 1132 results

  • Design a scheduler that boots interdependent services on one multi-core machine as fast as possible, handling failures, resource limits, observability, and extension to a cluster.

    Model answerschedulingdagtopological-sortconcurrency
  • Design a distributed key-value database serving 1M ops/sec over 50M records with low tail latency, five-nines availability, tunable consistency and durable acknowledged writes.

    Model answerdistributed-systemskey-value-storereplicationconsistent-hashing
  • Design a memory- and compute-efficient serving stack for a multimodal video captioning model, then a fast search-and-watermark pipeline for advertisers over existing captions and embeddings.

    Model answerml-system-designmultimodalmodel-servingquantization
  • Design an in-memory hierarchical file metadata service with create, recursive delete, fast top-k largest files per directory, and nested quota enforcement, plus a multi-node scaling plan.

    Model answersystem-designtreesorted-indexquota
  • Design the storage backend for a photo-sharing service, covering upload consistency, instant visibility, duplicate prevention, and how to justify and scale the metadata database.

    Model answersystem-designobject-storageconsistencydeduplication
  • Design a way for a fleet of identical workers to pick exactly one active instance using Redis expiring keys, covering failover, fencing, pauses, clock assumptions and Redis outages.

    Model answerleader-electionredisdistributed-systemsfencing-token
  • Compare TCP and UDP across reliability, ordering, congestion control, setup and overhead, then explain how TCP detects loss through timers, duplicate ACKs and SACK.

    Model answernetworkingtcpudpcongestion-control
  • Design a worldwide edge service that scores client IPs per request, shares abuse signals between regions within seconds, and can undo bad blocklist changes in under ten seconds.

    Model answersystem-designdistributed-systemsedge-computingreplication
  • Design a thread-parallel breadth-first search that finds the fewest moves to open a multi-wheel combination lock, covering work splitting, safe visited tracking, level ordering and trade-offs.

    Model answerbfsconcurrencyparallel-algorithmsgraph-search
  • Evaluate key Spring concepts including ApplicationContext configuration, AOP advice selection, dependency injection, JdbcTemplate mapping, DataSource configuration, and Security authorization rules.

    Model answerjavaspringspring-bootspring-security
  • Design the backend of a book-selling website that survives flash sales, with fast search, no overselling of stock, and safe recovery when payment and inventory steps fail partway.

    Model answersystem-designe-commerceinventorysaga
  • Design a plan to relocate 200 TB of images and video from a bandwidth-limited data center to a cloud GPU cluster, then feed training fast, reproducibly, and with verified integrity.

    Model answerdata-pipelinedata-migrationdistributed-trainingstorage
  • Design a scalable, fault-tolerant service that pairs two players of similar rating, loosens its criteria as waiting grows, supports cancellation, and discourages opponent dodging.

    Model answermatchmakingdistributed-systemsredispartitioning
  • Design the backend for a scheduling app where one user's devices stay in sync, edits work offline, and repeating events are stored and queried efficiently at 10M daily users.

    Model answersystem-designsyncconflict-resolutionrecurrence
  • Design a shared analytics service where enterprise customers run SQL on their own datasets with strict isolation, attribute-based access rules, tamper-evident auditing and erasure support.

    Model answermulti-tenancyabacaudit-loggingdata-lineage
  • Design a robust payment architecture that handles real-time authorization holds, deferred batch captures, and safe retries without double-charging users.

    Model answersystem-designpayment-processingidempotencyeventual-consistency
  • Design a backend for elimination-style live quiz games with many players per room, fair timing, crash recovery mid-round, and spectator traffic kept away from gameplay.

    Model answersystem-designreal-timewebsocketssharding
  • Design a scalable, low-latency matchmaking architecture capable of handling millions of players across diverse modes while keeping matches balanced, fast, and crash-resilient.

    Model answersystem-designdistributed-systemsgaminglow-latency
  • Answer four backend fundamentals for a payments service: Python concurrency and the GIL, PUT/PATCH with optimistic locking, CPython garbage collection, and deadlock avoidance.

    Model answerpythongilhttpoptimistic-concurrency
  • Design a service that hands out isolated, GPU-backed Jupyter-style workspaces that can be started, paused, and resumed on any host without losing files or packages, while controlling idle GPU spend.

    Model answersystem-designgpu-schedulingpersistent-storagelifecycle-management
  • Design an asynchronous backend that accepts LLM requests, queues and routes them fairly, runs them reliably, and returns results, with cost, security and SLA controls.

    Model answersystem-designllm-servingjob-queueidempotency
  • Design a platform where many people edit one document simultaneously, covering merge rules, live streaming, durable history, reconnect, and periodic Git checkpoints.

    Model answersystem-designcollaborationcrdtoperational-transform
  • Design a distributed platform that runs delayed and immediate background tasks with retries and durable state, plus a cache that serves task status in under 10 ms at 10k requests/second.

    Model answersystem-designjob-queuecachingidempotency
  • Walk through how to confirm whether disk I/O is slowing a service, find which process drives it, characterize the workload, and propose measured fixes.

    Model answerlinuxperformanceiostatstorage
  • Design an MVP retrieval-augmented assistant that answers employee questions across a ticketing system and a wiki, with citations, per-user access control, and fresh data.

    Model answerragretrievalaccess-controlhybrid-search
  • Design an end-to-end reliability plan for an event-ingestion service: guarded dependency calls, SLO-based alerting, reversible schema changes, and a canary pipeline with automatic rollback.

    Model answercircuit-breakerslocanary-deploymentschema-migration
  • Design a service that maps long web addresses to compact codes and serves redirects at very high read volume, covering API, storage, code generation and caching.

    Model answersystem-designurl-shortenercachingkey-generation
  • Design a multi-tenant Identity and Access Management system with SPIFFE-style workload attestation, dynamic RBAC/ABAC policy evaluation, local enforcement, and tamper-evident auditing.

    Model answersystem-designsecurityiamdistributed-systems
  • Architect secure, direct S3 uploads via pre-signed URLs/IAM and analyze TypeScript structural typing alongside React useEffect async cleanup.

    Model answerAWSS3IAMTypeScript
  • Walk through an end-to-end incident response plan for high cache misses and service latency, covering triage, observability, hypothesis testing, mitigations, and post-incident RCA.

    Model answercachingincident-responsedistributed-systemsobservability

More topics