KatInterview

Topic

System Design interview problems

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

Problems1136

43 easy723 medium370 hard

Showing 691–720 of 1136 results

  • Build a resource manager that schedules ML training jobs across on-premises and public cloud GPU clusters with fairness, cost optimization, and reliability.

    Model answerdistributed-systemsresource-managementschedulingcloud-infrastructure
  • Build a service that orchestrates payment transitions through hold, capture, and settlement while handling unreliable gateway responses and ensuring financial correctness.

    Model answerdistributed-systemsidempotencystate-machinesfinancial-systems
  • Design a layered CLI tool that calls a bearer-token API, validates JSON into records, and idempotently upserts them into a relational table.

    Model answerhttp-clientidempotencyupserterror-handling
  • Rank the three biggest five-year threats to a dominant search-and-ads company, pick two tech trends worth tracking, and go deep on one.

    Model answerproduct-strategyprioritizationai-agentsmonetization
  • Compare VPN, ZTNA, and RBI enforcement models, then design a chunk-level secure streaming pipeline for high-bitrate enterprise video under a Zero Trust policy.

    Model answerzero-trustmedia-streamingsecurityCDN
  • Design a platform that polls an external sensor API hourly for ~2,000 U.S. locations and serves current readings with a strict 10-minute freshness guarantee.

    Model answeringestion-pipelinecachingrate-limitingidempotency
  • Diagnose and resolve severe performance degradation in a distributed system after user load doubles, using observability and root-cause analysis.

    Model answerperformanceobservabilitydistributed-systemscaching
  • Design a scalable web platform where users can browse coding problems, run code in a sandboxed environment, and receive automatic judgement across multiple languages.

    Model answersystem-designdistributed-systemscode-executionsandboxing
  • Build a customer-facing chat platform powered by a third-party LLM, handling streaming responses, network interruptions, and provider outages gracefully.

    Model answerreal-timemessagingerror-handlingstreaming
  • Design a layered rate limiter that blunts a traffic flood while keeping legitimate clients and anonymous users productive.

    Model answerrate-limitingdistributed-systemsdenial-of-servicesystem-design
  • Design the client and server for a collaborative text editor where multiple users edit the same document simultaneously and see each other's changes in near real time.

    Model answercollaborative editingoperational transformationCRDTsreal-time sync
  • Design a backend system that ingests and serves large files at scale, handling millions of users with high availability and durability guarantees.

    Model answerdistributed-systemsstorageCDNscalability
  • Explain the trade-offs between Spark's core APIs, how Spark improves on MapReduce, the role of lazy evaluation, and practical job submission on a managed cluster.

    Model answersparkdistributed-systemsdata-engineering
  • Build a low-latency system that validates trading orders against risk limits before they leave your network, with atomic resource tracking.

    Model answerlow-latencyconcurrencyfinancial-systems
  • Design a clean HTTP API that delivers row-by-row binomial coefficients, covering endpoint structure, validation, error contracts, and numeric limits.

    Model answerapi-designhttpvalidationerror-handling
  • Design and implement an algorithm to find (and safely remove) duplicate files in a directory tree that may exceed available memory.

    Model answerhashingfile-systemsdeduplicationscalability
  • Design the backend for a text-to-video service where each job occupies exactly one GPU, covering task lifecycle, fair multi-user queueing, and cancellation at every stage.

    Model answersystem-designqueuesdistributed-systems
  • Design the components, data flows, and core pricing logic for a ride platform that handles surge, carpooling, fairness constraints, and live experimentation at scale.

    Model answerpricingreal-time systemssurgecarpooling
  • Architect an ingest-to-query system that handles millions of device messages per second while serving both sub-second dashboards and long-range batch analytics.

    Model answerdistributed-systemsstream-processingdata-pipelinetime-series
  • Design a multi-level parking facility with typed spots, entry/exit gates, ticketing, pricing, and availability — covering concurrency, consistency, and failure handling.

    Model answersystem-designconcurrencyidempotencystate-machines
  • Implement a bare-metal HTTP server using only the standard library: request parsing, routing, static files, concurrency, timeouts, and graceful shutdown.

    Model answernetworkinghttpconcurrencysystem-design
  • Design a memory-bounded structure that ranks the most frequent events over a sliding time window under millions of events per second, covering windowing, sketches, ties, and complexity.

    Model answerstreamingapproximate-algorithmscount-min-sketchsliding-window
  • Design a scalable news aggregation system covering ingestion, deduplication, clustering, personalized feed serving, and operational concerns at global scale.

    Model answeringestion pipelinefeed rankingdeduplicationdistributed systems
  • Architect a core banking platform covering auth, accounts, ATM flows, intra- and inter-bank transfers, and time-windowed transaction analytics.

    Model answerdistributed-systemsconsistencypaymentsledger
  • Design the component tree and performance strategy for a search-driven product grid that must handle an arbitrarily large catalog.

    Model answerfrontendsearchpaginationperformance
  • Demonstrate working knowledge of Python 3.8–3.10 syntax additions, GUI and web framework trade-offs, and how CPython handles strings in memory.

    Model answerpythonlanguage-fundamentalscpython-internalsecosystem
  • Given a degraded production host, use top, ps, find, and kill to identify a CPU-hungry process, handle files with hostile names, and terminate it safely.

    Model answerlinuxcliprocess-managementdevops
  • Evaluate NoSQL versus relational storage for a log ingestion system with extreme write throughput and petabyte-scale growth.

    Model answerdatabasesscalabilitydata-modelingnosql
  • Walk through a structured B2B pricing framework covering customer segmentation, value-based vs. cost-plus methods, competitive benchmarking, packaging tiers, and validation experiments.

    Model answerproduct-strategyb2b-pricingmonetization
  • Design a high-throughput internal logging platform that ingests, indexes, and retains logs from thousands of services with near-real-time search and strict tenant isolation.

    Model answerloggingobservabilitydistributed-systemsstream-processing

More topics