KatInterview

Topic

System Design interview problems

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

Problems1139

44 easy725 medium370 hard

Showing 541–570 of 1139 results

  • Design a batch pipeline that screens stored audio files for policy violations, labels each as safe, unsafe or uncertain, and routes uncertain ones to human reviewers.

    Model answerml-system-designaudiopipeline-orchestrationhuman-in-the-loop
  • Design a platform that links merchants to external sources, refreshes their attributes on schedule, resolves conflicts with provenance, and serves low-latency reads even when upstreams fail.

    Model answersystem-designdata-pipelinesentity-resolutionrate-limiting
  • Design a multi-tenant catalog backend with draft/publish workflows, grouped launches, search, and safe rollback, serving 100K peak read QPS at P99 under 25 ms.

    Model answersystem-designcqrsversioningcaching
  • Diagnose why a React search component sometimes displays results for an older query, then fix it with effect cleanup and request cancellation, and prove the fix with a deterministic test.

    Model answerreactrace-conditionabortcontrolleruseeffect
  • Design and build a service that ingests recorded vehicle sessions from MCAP files, stores them with a time index, and exposes APIs to list sessions and fetch messages by timestamp.

    Model answermcapprotobufsqlitetime-index
  • Design a Jenkins-based CI system that builds a graphics stack and runs GPU tests across hardware, driver and OS combinations, with flake handling, gating and safe driver rollouts.

    Model answerjenkinsci-cdgputest-sharding
  • Design a thread-safe file logger whose records never interleave, and explain how fsync, batching and OS caching trade throughput against durability.

    Model answerconcurrencyfile-iodurabilityfsync
  • Design a pipeline from operational systems to analytics, then adapt it for a hybrid on-prem and cloud setup and map it onto AWS and Azure, defending each tool choice.

    Model answerdata-pipelinehybrid-cloudawsazure
  • Review a proposed runtime toggle service that polls one database, then rank its weaknesses and explain how to deliver the feedback to the author.

    Model answerdesign-reviewfeature-flagsreliabilityfailure-modes
  • Design a service that blocks cyclic dependency edits, pins each run to a stable graph version, and caps retries and dynamic expansion so execution always terminates.

    Model answersystem-designdagcycle-detectionworkflow-engine
  • Design a pipeline that ranks the K most-viewed URLs over a rolling time window, covering partitioned counting, correct merging, viral-URL skew, late events, and exact versus approximate counts.

    Model answersystem-designstreamingtop-ksliding-window
  • Design a durable, ordered, deduplicated messaging backend for DMs and small groups, and explain how a local and distributed cache is partitioned and kept correct under failures.

    Model answersystem-designcachingmessagingconsistent-hashing
  • Design the comment feature for an existing social app: APIs, schema, pagination, durable notification fan-out, and how to scale reads and writes when one post goes viral.

    Model answersystem-designcommentsnotificationspagination
  • Design a multi-warehouse platform that books dock doors, plans and replans truck routes, and tracks containers from noisy scan events while keeping inventory consistent.

    Model answersystem-designevent-drivenschedulingvehicle-routing
  • Design a platform that chains independently deployed ML models into reliable workflows, covering orchestration, schemas, caching, versioning, failure handling, observability, and tenant isolation.

    Model answerml-infrastructureorchestrationmodel-servingmulti-tenancy
  • Design a platform that detects natural-disaster zones from external feeds and quickly alerts travelers who are in, or about to arrive in, the affected area without duplicate messages.

    Model answergeospatial-indexingnotificationskafkaidempotency
  • Design an end-to-end personalized feed service for millions of users: data pipelines, feature consistency, retrieval and ranking, cold start, latency budgets, experiments, and failure handling.

    Model answerml-system-designrecommendationfeature-storecandidate-generation
  • Describe how TCP establishes a connection, including state changes, sequence numbers, a lost final ACK, and the limits of what a completed handshake proves.

    Model answertcpnetworkinghandshakesockets
  • Design a system that ships versioned feature flags to 10M devices with fast global rollback, plus a streaming pipeline that computes per-version click-through rates in near real time.

    Model answersystem-designfeature-flagscdnstream-processing
  • Explain what happens from the moment a user taps a link in a social app feed until the destination renders, covering client, network, backend, security, privacy and monitoring.

    Model answersystem-designnetworkingweb-performancesecurity
  • Design a service for a large company's reporting structure that serves chain and subtree lookups quickly and keeps reporting lines acyclic under concurrent reorganizations.

    Model answersystem-designhierarchyclosure-tableconcurrency
  • Design a charity fundraising service that takes one-time and recurring gifts through a third-party payment processor, with exact amounts, no duplicate charges, and survival of traffic surges.

    Model answersystem-designpaymentsidempotencyledger
  • Design a backend where creators run timed auctions on posts, bids are ordered correctly under extreme contention, and millions of watchers see the leading bid within a fraction of a second.

    Model answersystem-designconcurrency-controlreal-timewebsockets
  • Design a resilient, accessible, modular seat-unit app on a 4-inch armrest touchscreen, covering telemetry delivery, offline music sync, shake-tolerant input, lazy module loading and KPIs.

    Model answerclient-architectureoffline-firstaccessibilityui-design
  • Design and code a small HTTP service where cameras push log entries and users fetch them by camera, time range, or severity, with validation, status codes, and thread safety.

    Model answerrest-apiflaskhttp-status-codesconcurrency
  • Design a service that ingests per-second robotaxi telemetry and answers low-latency radius searches filtered by vehicle eligibility, tolerating late and duplicate packets.

    Model answergeospatial-indexstreaming-ingestionkafkah3
  • Design a throttling component that caps each client's request rate under heavy concurrency and millions of checks per second, then extend it across many servers.

    Model answerrate-limitingtoken-bucketconcurrencydistributed-systems
  • Design a catalog service fed by full retailer snapshot files, serving 11,000 QPS under 400 ms, where admin attribute overrides persist through retailer updates and deletions.

    Model answersystem-designdata-modelingingestion-pipelinecaching
  • Design a RAG ingestion pipeline, a swappable response-grading component using dependency inversion, and an efficient top-k structure for ranking retrieved chunks.

    Model answerragvector-databasesoliddependency-inversion
  • Design a service that stores 100K recurring cron-style tasks, keeps up to 10K runs in flight, and guarantees each scheduled fire executes at least once despite crashes.

    Model answersystem-designschedulercronat-least-once

More topics