Topic
System Design interview problems
Scalable services, storage, caching and trade-offs. 1134 original problems, each with a worked model answer.
43 easy721 medium370 hard
Showing 781–810 of 1134 results
Design entities, state machine, and concurrency control for a resource allocator where tenants share infrastructure but remain strictly isolated.
Model answerconcurrencymulti-tenancystate-machineDesign a modular Python framework that can run any two-player turn-based game by swapping rule and agent implementations without touching the core loop.
Model answerobject-oriented designstrategy patternextensibilitypythonDesign and implement a pytest-style test harness that runs graphics validation tests in parallel across multiple GPUs, handling fixtures, retries, and process isolation.
Model answerpythontestingconcurrencyasyncioMake the case for (and against) a customer-facing bank chatbot, tying each benefit to a mechanism and metric and each risk to a mitigation.
Model answerproduct-designcase-studychatbotfintechDesign a scalable platform that provisions on-demand remote dev machines accessible via browser, SSH, or IDE tunnel, covering lifecycle, isolation, storage, multi-tenancy, and observability.
Model answerdistributed-systemsorchestrationmulti-tenancystorageDesign end-to-end token streaming, user-initiated cancellation, and failure recovery for a multi-turn agent system where tools may have irreversible side effects.
Model answerstreamingcancellationfault-toleranceagentsDesign a product and policy strategy to reduce unauthorized account sharing on a subscription streaming service without alienating legitimate paying subscribers.
Model answerproduct-strategymonetizationexperimentationstreamingDesign an async, high-throughput system that ingests large files, fans out to multiple scan engines in isolation, and delivers a consolidated threat report.
Model answerdistributed-systemsasync-workflowssecurityobject-storageDesign the frontend and backend for a workplace search autocomplete that blends history, colleagues, files, applications, and filter chips in real time.
Model answerautocompletesearchfrontend-architecturebackend-designDesign the binary layout, writer/reader interfaces, and operational invariants for an append-friendly columnar file format suited to high-throughput time-series workloads.
Model answerfile-formatscolumnar-storageserializationcompressionDesign a fault-tolerant protocol where each node in a distributed tree contributes its subtree size upward until the root knows the total node count.
Model answerdistributed-systemsfault-toleranceconvergecastidempotencyDesign a layered overload protection system that sustains goodput and p99 latency targets when request volume suddenly surges beyond provisioned capacity.
Model answerload-sheddingrate-limitingadmission-controlcircuit-breakersBuild a tick-by-tick autopilot that uses short deterministic lookahead to steer a sinking drone through a series of vertical gap obstacles.
Model answersimulationsearchgame-aideterministic-planningDesign a system that runs 30,000 portfolio optimizations in 90 minutes with strict as-of-date correctness, deterministic replay, and full audit trails.
Model answerdistributed-systemsfinancial-systemsdata-pipelinesDesign expiry enforcement, conversation history serving, and long-term auditing for a RAG chat platform where document and chat retention windows conflict.
Model answerRAGdata-lifecycleretention-policyvector-storeDesign the architecture and reconciliation logic for a CLI tool that provisions and manages GPU VMs across heterogeneous cloud providers.
Model answerclistate-managementidempotencycloudDesign the client architecture, normalized state, paginated sorted photo lists, direct-to-storage uploads, and near-real-time sync for a multi-device photo album web app.
Model answerfrontendstate-managementreal-timefile-uploadDesign a distributed controller that sheds megawatts of electrical load across millions of smart devices within seconds while honoring user preferences, device safety rules, and fairness.
Model answerdistributed-systemsreal-timeoptimizationiotDesign a globally distributed caching layer that serves small static assets at hundreds of thousands of requests per second with sub-50ms latency and resilience to origin failures.
Model answercachingcdndistributed-systemsscalabilityDesign an end-to-end pipeline that ingests high-volume error events and serves a live ranking of the K noisiest services over the last five minutes.
Model answerstream-processingsliding-windowtop-khot-keysDesign a scalable search system that indexes short user posts in near real-time and evaluates Boolean queries with stable cursor-based pagination.
Model answerinverted-indexdistributed-systemsquery-parsingpaginationCompare global, striped, and lock-free locking for a concurrent hash map, then design an optimal strategy for read-heavy workloads.
Model answerconcurrencylockingkey-value storeread-write locksImplement a file-configured Express middleware using the token-bucket algorithm, then explain its design trade-offs as you would in a peer code review.
Model answerrate-limitingnode.jsexpresstoken-bucketDesign a fault-tolerant ingestion pipeline that sustains 2 GB/s of mixed telemetry from a distributed robot fleet with zero data loss and dual real-time and batch consumers.
Model answerstreamingkafkadistributed-systemsdata-engineeringDesign a scalable service that aggregates, normalizes, and serves cheap flight offers from many providers under strict latency and cost constraints.
Model answersystem-designcachingdistributed-systemssearchWalk through how you would design, implement, test, and document a Python coding exercise inside a cloud-hosted notebook environment from first principles.
Model answerpythonnotebookssoftware-designtestingDesign a low-latency, fault-tolerant ad-insertion system for a live and on-demand video platform, covering decisioning, delivery, pacing, and measurement at scale.
Model answeradsreal-time-biddingstreamingcdnDesign two systems: a high-throughput ad click aggregator with idempotent deduplication, and a Dropbox-style file sync service with delta uploads and conflict resolution.
Model answerstreamingkafkaflinkfile-storageDesign a distributed system that collects, deduplicates, stores, and analyzes large binary crash files from a massive microservice fleet across regions.
Model answerdistributed-systemsstoragereliabilityscalabilityExplain the root cause, hardware risk, and fix strategy for three common RTL lint findings in Verilog/SystemVerilog static analysis.
Model answerRTLVerilogSystemVerilogstatic analysis