KatInterview

Topic

System Design interview problems

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

Problems1134

43 easy721 medium370 hard

Showing 361–390 of 1134 results

  • Design an asynchronous RL fine-tuning pipeline that improves a deployed chat LLM from live traffic, covering staleness, KL control, reward hacking, safety gates and cost.

    Model answerreinforcement-learningrlhfllm-infrastructureoff-policy
  • Design a streaming backend that serves order counts, revenue and best-selling dishes over 1-hour, 1-day and 7-day windows at 100K orders/s with data no more than 5 seconds stale.

    Model answersystem-designstream-processingkafkaredis
  • Architect concurrent pod scheduling under capacity limits and design a custom Kubernetes scheduler plugin that uses real-time node telemetry for placement.

    Model answerkubernetesdistributed-systemssystem-designscheduling
  • Architect a real-time chess platform where each game has one authoritative owner, exactly-once move application, server-driven clocks, fast crash recovery, and low-latency spectator streaming.

    Model answersystem-designwebsocketsfault-toleranceidempotency
  • Design a scalable ML system to analyze code changes, synthesize context, leverage static tools, and post actionable code review feedback.

    Model answerLLM OrchestrationDeveloper ToolsSystem DesignStatic Analysis
  • Walk through confirming a kernel OOM kill, cutting memory use of a cache-heavy service without adding RAM, and reading RSS versus VSZ during an investigation.

    Model answerlinuxoom-killercgroupsmemory-management
  • Architect a multi-tenant orchestration engine handling high-throughput fast I/O tasks alongside long-running LLM tasks with tenant fairness and tiered state storage.

    Model answersystem-designdistributed-systemsqueuesstorage-architecture
  • Analyze message queues, delivery semantics, push vs. pull models, NoSQL vs. relational databases, and distributed concurrency controls including deadlock resolution.

    Model answersystem-designmessage-queuesnosqlconcurrency
  • Architect a cloud-based development environment enabling real-time browser code editing, interactive terminal streaming, sandboxed execution, and workspace state persistence at scale.

    Model answersystem-designcloud-idesandboxingwebsockets
  • Design a scalable retail brokerage order management system handling limit/market orders, cancellations, concurrency-safe account balances, and edge cases like lost/duplicate fill reports.

    Model answersystem-designdistributed-systemsconcurrencyfintech
  • Build a 2x3 React grid component for display feeds, integrate data loading with proper state management, and explain React hook mechanics.

    Model answerreactfrontendcss-gridhooks
  • Architect a low-latency ingestion and spatial indexing system for tracking real-time vehicle locations and serving proximity queries at high scale.

    Model answersystem-designgeospatialin-memory-databasestream-processing
  • Design a multi-tenant web tool where teams author prompts, run them on external LLMs with streamed output, version and compare results, and track cost, latency, and safety.

    Model answersystem-designstreamingmulti-tenancyidempotency
  • Architect a low-latency prefix typeahead and full-catalog product search system capable of handling high traffic spikes and near real-time inventory updates.

    Model answersystem-designautocompletesearchtrie
  • Design an ingestion and processing pipeline for JSON user profiles, comparing batch file arrivals against a real-time event streaming paradigm.

    Model answersystem designbatch processingevent streamingetl
  • Design a service that lets users find images from free-text descriptions, handling batch ingestion, joint embeddings, permission filtering, ranking, evaluation, updates, and deletions.

    Model answerml-system-designmultimodal-embeddingsvector-searchreranking
  • Design a distributed build caching system for CI/CD pipelines, covering cache key generation, concurrent upload coordination, and tiered storage architecture.

    Model answersystem-designcachingdistributed-systemsobject-storage
  • Analyze why df and du report different disk space utilization on Linux systems and walk through a step-by-step troubleshooting process.

    Model answerlinuxoperating-systemsstoragesre
  • Architect a scalable telemetry storage and indexing platform to capture, store, and query petabytes of high-throughput sensor logs efficiently.

    Model answersystem-designdistributed-systemsindexingstorage-tiering
  • Answer four fundamentals questions: enum and struct behavior in C++, macros versus inline functions, GPU matrix-add kernel design, and optimizing uniform or repeated read-only values.

    Model answercppgpucudamemory-coalescing
  • Design a distributed service that safely runs untrusted submissions against hidden tests, returns verdicts reliably, and stays responsive during contest traffic bursts.

    Model answersystem-designsandboxingmessage-queuescalability
  • Design the session and application messages between an in-house order management system and an external venue, covering dedupe, sequencing, replay and recovery after disconnects.

    Model answersystem-designmessaging-protocolsidempotencyfix-protocol
  • Design a durable service that runs tasks right away or at a future time, and explain how it copes with crashes, retries, duplicates, and the limits of exactly-once execution.

    Model answersystem-designjob-schedulerreliabilityretries
  • Design a high-throughput, distributed web crawling system that manages per-domain rate limits, prevents duplicate fetches, and handles network resilience at scale.

    Model answersystem-designdistributed-systemsconcurrencyqueues
  • Pick the one false statement among four claims about HTTP status code families, then explain the client-versus-server split and why it matters for retries, alerting, and API design.

    Model answerhttpstatus-codesweb-protocolsapi-design
  • Design a real-time perception and decision pipeline that keeps a mobile warehouse robot from hitting workers, covering fusion, a 50 ms latency budget, stop-versus-slow logic, and sensor failures.

    Model answerroboticssensor-fusionreal-time-systemssafety-critical
  • Design an automated container packing platform that optimizes cargo placement under weight, volume, and hazmat rules, supporting async runs, plan overrides, and strict determinism.

    Model answersystem-designdistributed-systemsoptimizationconstraint-programming
  • Architect a low-latency, real-time shared task list supporting concurrent edits, item reordering, explicit synchronous durability, and reconnection recovery.

    Model answersystem-designwebsocketsreal-timeconcurrency
  • Demonstrate how to safely and completely clear containers, images, volumes, custom networks, and build caches from a Docker daemon environment.

    Model answerdockerdevopslinuxcli
  • Design a multi-warehouse e-commerce inventory system handling flash sales without overselling, focusing on high availability, concurrency control, and idempotency.

    Model answersystem-designconcurrencydistributed-systemscaching

More topics