KatInterview

Topic

System Design interview problems

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

Problems1133

43 easy720 medium370 hard

Showing 271–300 of 1133 results

  • Design a client library that spreads LLM calls across several vendors, enforcing limits, isolating failures, and choosing providers by cost and latency while staying thread-safe and observable.

    Model answercircuit-breakerrate-limitingload-balancingretries
  • Design a scalable backend architecture for product likes on a wholesale platform, handling dual-access querying, search result enrichment, counter aggregation, and brand metrics.

    Model answersystem-designdata-modelingcachingscalability
  • Plan how to build, test and safely release a streaming chat panel in a React dashboard, covering state, request races, token expiry, accessibility, feature flags and rollback.

    Model answerreactstreamingfrontend-architecturetesting
  • Design an API metadata service on Kubernetes and Cassandra featuring exact-once unique name constraints, soft-delete state transitions, and high-performance read strategies.

    Model answersystem-designcassandrakubernetesdistributed-systems
  • Design a backend for a multiplayer typing race where a mistyped key freezes input for 1.5 seconds, covering match servers, matchmaking, ratings, latency fairness and failure recovery.

    Model answerreal-timewebsocketmatchmakingleaderboard
  • Design a layered Android client for an LLM chat app covering streaming, cancellation, retries, offline history, immutable UI state, and lifecycle and process-death handling.

    Model answerandroidmvvmkotlin-coroutinesstateflow
  • Design a managed AWS platform where customers fine-tune open-weight LLMs on their own data, with isolation, budgets, resumable distributed training, evaluation and endpoint deployment.

    Model answerml-system-designllm-fine-tuningawsdistributed-training
  • Design an embeddable single-node key-value storage engine providing durability, high write throughput, crash recovery, and single-key transactions.

    Model answerstorage-enginelsm-treewalconcurrency
  • Architect a high-throughput stream processing pipeline to track top-10 global and per-city merchants over a 60-minute trailing window with low latency.

    Model answersystem-designstream-processingleaderboardsliding-window
  • Design a service where enterprise tenants upload files up to 5 GB, which are processed asynchronously into versioned reconciliation reports, with resumable uploads, idempotent jobs, and strict isolation.

    Model answersystem-designmultipart-uploadidempotencyasync-processing
  • Design a natural-language item recommendation endpoint backed by an LLM: request flow, prompt and output schema, retrieval, hallucination and injection controls, evaluation, and monitoring.

    Model answerllmragprompt-engineeringhallucination
  • Add exact, prefix and shared-prefix KV reuse with a token-budgeted LRU to a toy LLM server, cutting prefill cost while every greedy output stays unchanged.

    Model answerkv-cachellm-inferencetrielru-cache
  • Plan an inference platform for 100M daily users: estimate traffic, memory, compute and bandwidth, pick hardware, control tail latency, and handle GPU out-of-memory failures.

    Model answerml-inferencecapacity-planninggpu-servingtail-latency
  • Design a telemetry backend that ingests about 1M samples per second from many services, answers aggregate queries fast, runs alerts, and keeps data cheaply for months with tenant isolation.

    Model answertime-seriesingestiondownsamplingcardinality
  • Design a platform that ingests a million telemetry points per second, keeps 30 days of history, and serves dashboard aggregations in under half a second while staying highly available.

    Model answersystem-designtime-seriesingestion-pipelinestorage
  • Analyze thread vs. process execution models at the kernel, memory, and hardware level, and design a low-latency execution topology for an order book trading engine.

    Model answermultithreadingmultiprocessingoperating-systemslow-latency
  • Design the backend for a conversational voice agent that listens, reasons and speaks in near real time, serves thousands of simultaneous callers, and handles users cutting in mid-reply.

    Model answerreal-timestreaminglatencyspeech
  • Design a scalable platform that collects logs from many services, stores them durably with retention, supports filtered search, survives traffic spikes, and isolates tenants.

    Model answersystem-designloggingobservabilitykafka
  • Architect a multi-tenant ad server and analytics engine that reliably serving ads, deduplicates metrics, and aggregates cross-campaign performance stats.

    Model answersystem-designdistributed-systemsevent-drivenad-tech
  • Apply every transform chain to every photo, in order, with deterministic output names, no repeated decoding, and a design that parallelizes cleanly.

    Model answerparallelismbatch-processingimage-processingmultiprocessing
  • Explain how Python generators suspend and resume execution to stream data lazily, and how decorators wrap functions, including a correct wrapper that preserves metadata.

    Model answerpythongeneratorsdecoratorslazy-evaluation
  • Design a platform that pulls articles from many external publishers and serves each of millions of daily users a ranked, tailored feed in under 200ms, while staying up when sources fail.

    Model answersystem-designrecommendationrankingcaching
  • Design a low-latency, highly available service that scores each payment attempt using analyst-owned rules plus ML models and returns an explainable approve, block, step-up, or review verdict.

    Model answersystem-designfraud-detectionfeature-storerules-engine
  • Design an asynchronous system that aggregates quotes across hundreds of vendor APIs to find the best price for an ISBN, places an order within a target bid, and manages payment consistency.

    Model answersystem-designdistributed-systemsfault-toleranceconcurrency
  • Plan the verification of three small digital blocks (a FIFO, a round-robin arbiter and a valid/ready link) covering testbench structure, random stimulus, assertions and coverage.

    Model answerdesign-verificationsystemverilogscoreboardassertions
  • Analyze a buggy payment handler, explain why database transactions fail to solve distributed state issues, and design a resilient flow using idempotency and background reconciliation.

    Model answersystem-designdistributed-systemsidempotencypayments
  • Design a scalable backend architecture for real-time AI token streaming featuring resume capability, low latency, prompt cancellation, and fault isolation.

    Model answersystem-designstreamingllmredis
  • Decode a 48-bit virtual address under 4-level paging, trace a load through a TLB miss and page walk to an L1 hit, and say where read permission is checked.

    Model answervirtual-memorytlbpage-tablecpu-cache
  • Architect a scalable, high-availability URL shortener capable of handling heavy read workloads, instant redirects, custom aliases, and automated TTL cleanup.

    Model answersystem-designdistributed-systemscachingdatabase-design
  • Design a daily pipeline that turns streaming subscription events into month-end churn and retention metrics, tolerating late data, safe reruns, 12-month backfills, and changing metric definitions.

    Model answeretlidempotencyscd-type-2late-arriving-data

More topics