Architecture Question Bank & Blueprints

System Design Question Bank

Master large-scale distributed architectures with 100 categorized interview questions across 15 engineering domains. Complete with production-grade blueprints, exact capacity calculations, database schemas, and interactive canvas practice.

100Total Questions
15Engineering Domains
20Deep Blueprints
100%Interactive Canvas Ready

Browse by Architectural Domain

🌐Social Media & Feeds7📡Streaming & Real-Time5💾Storage & Cloud Infrastructure6📍Geospatial & Mobility5🛍️E-Commerce & High-Concurrency5💳Financial & Payments5🔍Search & Big Data6Distributed Infrastructure12🤖AI & Machine Learning5🚰Data Engineering & Pipelines5📊Data Science & Experimentation5🛡️Site Reliability & Platform5🔐Cloud Security & Zero Trust5🖥️Frontend & Client Systems5🤖GenAI & Autonomous Agents19
Complete Taxonomy

All 100 Questions by Category

Every classic and modern system design question asked across FAANG, fintech, high-growth startups, and AI labs.

🌐

Social Media & Feeds

(7 questions)

Fan-out architectures, feed ranking pipelines, follower graphs, and read-heavy caching.

Senior✓ Full Blueprint

Twitter / X Timeline & Fan-Out Engine

Design a high-throughput microblogging feed with fan-out-on-write vs fan-out-on-read for celebrity accounts.

Asked at
X / TwitterMetaLinkedInBluesky
Key Concepts
Fan-out on write (push) vs Fan-out on read (pull)Hybrid fan-out for celebrities (100k+ followers)Redis timeline cache clustersSnowflake 64-bit ID generation
Senior

Facebook News Feed & Ranking

Architect personalized social feeds incorporating social graph edge weights, affinity ranking, and infinite scrolling.

Asked at
MetaInstagramByteDancePinterest
Key Concepts
Feed ranking algorithmsGraph databasesFeed generation pipelineDistributed cache invalidation
Mid

Instagram Photo Sharing & Follower Graph

Handle massive image uploads with bidirectional follower graphs, asynchronous resizing, and real-time feed delivery.

Asked at
MetaSnapchatPinterest
Key Concepts
S3 media storageDistributed image resizingFollower graph partitioningRead-heavy caching
Senior

Reddit & Hacker News Threaded Discussion

Scale hierarchical comment trees, live upvote/downvote counters, and sub-community caching.

Asked at
RedditDiscordStack Overflow
Key Concepts
Materialized path vs closure tablesKarma aggregationVote write coalescingSubreddit sharding
Mid

Pastebin & Text Snippet Storage

Build an expiring text snippet storage system with collision-resistant unique short keys and automated TTL cleanup.

Asked at
AmazonGoogleGitHub
Key Concepts
Base62 hash generationKey generation serviceS3 object storageAutomated TTL sweeps
Mid

Quora & Stack Overflow Q&A Platform

Design a high-volume question-and-answer platform with search tagging, view count deduplication, and reputation scoring.

Asked at
QuoraStack OverflowAtlassian
Key Concepts
Full-text inverted indexView count deduplication via HyperLogLogTag hierarchy indexingReputation recalculation
Senior

Mint / Personal Finance Aggregator

Aggregate financial transactions from heterogeneous banking APIs with transaction categorization and audit logging.

Asked at
IntuitPlaidStripeRobinhood
Key Concepts
Asynchronous webhook ingestionTransaction categorization pipelineBank credentials vaultIdempotent deduping
📡

Streaming & Real-Time

(5 questions)

WebSockets, long-polling, adaptive video transcoding, audio streaming, and WebRTC.

Senior✓ Full Blueprint

Real-Time Distributed Chat (WhatsApp)

Deliver end-to-end encrypted instant messaging with bidirectional WebSockets, presence tracking, and offline message storage.

Asked at
MetaAppleTelegramSignal
Key Concepts
WebSocket session gatewayUser presence heartbeatsCassandra/ScyllaDB message inboxPush notification gateway
Staff✓ Full Blueprint

Slack & Discord Large Guild Messaging

Manage massive shared channels with live fanout to 100,000+ online members, message edit history, and reaction counters.

Asked at
DiscordSlackMicrosoft Teams
Key Concepts
Guild member syncDistributed pub/sub ringsCassandra to ScyllaDB migrationRate-limited reaction counters
Senior✓ Full Blueprint

Global Video Streaming Platform (YouTube / Netflix)

Ingest, transcode, and stream petabytes of on-demand video globally with adaptive bitrate streaming and multi-CDN distribution.

Asked at
NetflixYouTube / GoogleTwitch / AmazonTikTok
Key Concepts
DAG transcoding pipelinesAdaptive bitrate (HLS / DASH)Open Connect CDN edge cachingVideo chunk manifest generation
Senior

Spotify Audio Streaming & Offline Cache

Stream compressed audio with instant playback start, playlist collaborative sync, and encrypted offline device storage.

Asked at
SpotifyApple MusicSoundCloud
Key Concepts
Audio chunk prefetchingPeer-to-peer assisted CDNOffline license validationReal-time playlist CRDT sync
Staff✓ Full Blueprint

Zoom & Google Meet Video Conferencing

Low-latency multi-party video conferencing utilizing WebRTC, Selective Forwarding Units (SFUs), and bandwidth estimation.

Asked at
ZoomGoogleMicrosoftTwilio
Key Concepts
WebRTC peer connectionsSelective Forwarding Unit (SFU)Simulcast & SVC video encodingAudio mixer jitter buffers
💾

Storage & Cloud Infrastructure

(6 questions)

Distributed file systems, S3 blob stores, consistent hashing, and key-value stores.

Senior✓ Full Blueprint

Google Drive & Dropbox Cloud Storage

Sync files across desktop and mobile devices with block-level chunking, content-addressable storage, and conflict resolution.

Asked at
GoogleDropboxBoxMicrosoft
Key Concepts
Block chunking & deduping (4MB chunks)Content-addressed storage (SHA-256)Delta synchronization protocolConflict forks
Principal

S3-Compatible Distributed Object Store

Store exabytes of unstructured blob data with 99.999999999% durability using erasure coding and distributed metadata clusters.

Asked at
AWSCloudflareGoogle CloudMinIO
Key Concepts
Erasure coding (Reed-Solomon)Data nodes vs metadata mastersMultipart upload coordinationAnti-entropy scrubbing
Staff✓ Full Blueprint

Distributed In-Memory Cache (Redis Cluster)

Provide sub-millisecond key-value lookups at millions of QPS using consistent hashing, virtual nodes, and active-passive failover.

Asked at
RedisAWS ElastiCacheMetaDatabricks
Key Concepts
Consistent hashing ringVirtual nodes distributionCache stampede thundering herd defenseLRU/LFU eviction algorithms
Staff

Distributed Key-Value Store (Dynamo / Cassandra)

Implement a highly available, partitioned key-value store with tunable consistency, vector clocks, and gossip-based failure detection.

Asked at
AmazonAppleUberNetflix
Key Concepts
LSM-trees & SSTablesVector clocks for conflictsSloppy quorum & hinted handoffGossip protocol membership
Staff

Content Delivery Network (CDN) & Edge Cache

Distribute web content with BGP Anycast routing, multi-tiered edge caches, and millisecond purge invalidations.

Asked at
CloudflareFastlyAkamaiAWS CloudFront
Key Concepts
BGP Anycast routingOrigin shield cachingInstant cache purge propagationHTTP Range requests for large files
Principal

Distributed File System (GFS / HDFS)

Manage petabytes of sequential analytical data across commodity hardware with single-master coordination and chunkserver replication.

Asked at
GoogleClouderaDatabricksSnowflake
Key Concepts
Single active master architecture64MB chunk size rationaleAtomic record appendsHeartbeat & replica re-balancing
📍

Geospatial & Mobility

(5 questions)

Geohash & H3 indexing, quadtree partitioning, live driver dispatch, and routing algorithms.

Staff✓ Full Blueprint

Ride-Hailing & Real-Time Proximity (Uber / Lyft)

Match passengers with nearby drivers in real time with high-frequency GPS telemetry, dynamic surge pricing, and ETA routing.

Asked at
UberLyftGrabDoorDash
Key Concepts
Uber H3 geospatial indexingDriver location streaming bufferDispatch matching engineTrip lifecycle state machine
Senior

Yelp / Google Places Proximity Search

Query millions of businesses by radius and bounding box with quadtrees, spatial indexing, and read-heavy caching.

Asked at
YelpGoogle MapsTripAdvisorFoursquare
Key Concepts
Quadtree spatial partitioningGeohashing vs PostGISGrid clustering at map zoom levelsHigh-read cache layers
Principal

Google Maps Turn-by-Turn Navigation & Routing

Compute shortest and fastest driving routes across global road networks with real-time traffic updates and vector tile rendering.

Asked at
GoogleAppleMapboxUber
Key Concepts
Contraction hierarchiesA* search on road graphsReal-time traffic overlay segmentsMap vector tile hierarchies
Staff✓ Full Blueprint

DoorDash / UberEats 3-Sided Marketplace

Orchestrate real-time food delivery between customers, restaurants, and couriers with batched routing and live order tracking.

Asked at
DoorDashUberInstacartDelivery Hero
Key Concepts
Batch dispatch optimizationDelivery ETA estimationOrder state machine orchestrationReal-time WebSocket tracking
Senior

Tinder Dating Match Engine & Swipe Queue

Process billions of daily swipes with geospatial distance filters, reciprocal match detection, and instant notification dispatch.

Asked at
Tinder / Match GroupBumbleHinge
Key Concepts
Geospatial candidate pre-filteringBidirectional swipe queuesBloom filters for seen profilesInstant mutual match alerts
🛍️

E-Commerce & High-Concurrency

(5 questions)

Distributed inventory locks, flash sale throttling, double-booking defenses, and shopping carts.

Staff✓ Full Blueprint

Ticketmaster High-Concurrency Concert Ticketing

Handle viral concert ticket drops with virtual waiting rooms, seat reservation locks, and anti-scalping rate limits.

Asked at
TicketmasterSeatGeekEventbriteLive Nation
Key Concepts
Virtual waiting room queueingDistributed seat reservation locks (10-minute hold)Optimistic concurrency controlAnti-bot CAPTCHA gates
Staff

Flash Sale & Limited Inventory Checkout

Sell 10,000 limited inventory units to 1,000,000 simultaneous shoppers without overselling or crashing downstream databases.

Asked at
AmazonShopifyAlibabaFlipkart
Key Concepts
In-memory Redis atomic stock deductionAsynchronous order queueingRate-limiting ingress gatewaysTwo-stage commit stock rollback
Senior

Airbnb & Hotel Booking System

Book lodging rooms across dynamic date ranges with overbooking prevention, calendar sync, and payment escrow holds.

Asked at
AirbnbBooking.comExpediaVrbo
Key Concepts
Date range overlap queriesPessimistic row locking on checkoutIdempotent payment captureiCal distributed sync
Senior

Amazon E-Commerce Marketplace & Shopping Cart

Support multi-vendor item catalogs, persistent cross-device shopping carts, and inventory fulfillment workflows.

Asked at
AmazonShopifyWalmartTarget
Key Concepts
Shopping cart session storage (DynamoDB)Inventory soft reservationProduct search facet filteringFulfillment warehouse routing
Senior

Amazon Sales Rank by Category

Calculate and update sales ranks across millions of products in real time using rolling sliding window aggregations.

Asked at
AmazoneBayTarget
Key Concepts
Sliding window counter aggregationLogarithmic time-decay weightingCategory hierarchy rollupRank caching
💳

Financial & Payments

(5 questions)

Idempotent payment gateways, double-entry ledgers, low-latency matching engines, and fraud checks.

Staff✓ Full Blueprint

Idempotent Payment Processing Gateway (Stripe)

Authorize and settle multi-currency transactions with strict idempotency, third-party PSP failover, and ledger reconciliation.

Asked at
StripePayPalAdyenSquare / Block
Key Concepts
Idempotency keys with Redis locksDouble-entry bookkeeping ledgerAsynchronous PSP reconciliation workerExponential backoff webhook dispatch
Staff

Digital Wallet & Double-Entry Accounting (PayPal)

Track user fiat and crypto balances with zero precision loss, ACID auditability, and Two-Phase Commit / Saga guarantees.

Asked at
PayPalVenmoCoinbaseRevolut
Key Concepts
Double-entry ledger (Debits == Credits)Saga orchestrator for multi-account transfersOptimistic concurrency balance updatesDeterministic audit logs
Principal✓ Full Blueprint

Electronic Stock Exchange & Matching Engine

Execute millions of limit and market orders per second with microsecond deterministic matching and multicast market feeds.

Asked at
NasdaqCitadelJane StreetCoinbase
Key Concepts
LMAX Disruptor ring bufferIn-memory price-time limit order bookZero garbage collection techniquesUDP Multicast market data feeds
Senior

Retail Stock Brokerage (Robinhood)

Ingest live stock price feeds via WebSockets, place options and stock orders, and maintain real-time portfolio market value.

Asked at
RobinhoodInteractive BrokersCharles Schwab
Key Concepts
WebSocket ticker streamingPre-trade risk & purchasing power checkClearinghouse FIX protocol integrationPortfolio real-time mark-to-market
Staff

Real-Time Payment Fraud Detection Engine

Score payment card transactions in under 50ms using rule-based velocity limits, ML feature evaluation, and anomaly scoring.

Asked at
StripeVisaMastercardAmerican Express
Key Concepts
Apache Flink real-time stream scoringSliding window card velocity checksLow-latency feature store (Feast/Redis)Dynamic blacklists/whitelists
🔍

Search & Big Data

(6 questions)

Web crawlers, prefix tries, inverted indexes, ad click stream aggregation, and heavy hitters.

Senior✓ Full Blueprint

Distributed Web Crawler

Crawl billions of web pages across the public internet respecting robots.txt politeness, duplicate URL detection, and DNS caching.

Asked at
GoogleBing / MicrosoftYahooBaidu
Key Concepts
Crawl frontier priority queuesHost-based politeness delayersBloom filter duplicate URL eliminationDistributed DNS resolution cache
Senior

Google Search Autocomplete / Typeahead

Return top 5 search query suggestions in under 10ms as users type using distributed prefix tries and frequency ranking.

Asked at
GoogleAmazonBingDuckDuckGo
Key Concepts
Trie data structure with top-k node cachingOffline frequency rollup via MapReduce/SparkPrefix partitioning across serversBrowser local storage caching
Principal

Web Search Inverted Indexing & Ranking

Build an inverted index across billions of crawled HTML documents and serve ranked search results using BM25 and PageRank.

Asked at
GoogleMicrosoftElasticAlgolia
Key Concepts
Inverted index posting listsDocument sharding vs term shardingTF-IDF / BM25 relevance scoringTiered search index caching
Senior

Real-Time Ad Click Event Aggregator

Ingest and aggregate millions of ad click events per second for advertisers with exactly-once stream processing and minute rollups.

Asked at
Google AdsMeta AdsAmazon AdsThe Trade Desk
Key Concepts
Kafka topic partitioningApache Flink tumbling and sliding windowsWatermark handling for late-arriving eventsOLAP database storage (ClickHouse / Pinot)
Staff

Top-K Frequent Elements (Heavy Hitters)

Identify the top 100 most viewed videos or trending hashtags in real time using probabilistic streaming algorithms.

Asked at
Twitter / XYouTubeTikTokReddit
Key Concepts
Count-Min SketchSpace-Saving algorithmLossy countingMin-heap maintenance with Redis ZSET
Mid

Real-Time Global Gaming Leaderboard

Maintain live player rankings for 25 million active gamers with score updates and instant percentile lookups.

Asked at
Riot GamesEpic GamesRobloxElectronic Arts
Key Concepts
Redis Sorted Sets (ZADD, ZRANGE)Score range sharding across Redis nodesTie-breaker timestamp encodingRead replica caching for top 100

Distributed Infrastructure

(12 questions)

Rate limiters, distributed cron schedulers, snowflake IDs, message brokers, and APM tracing.

Senior✓ Full Blueprint

Distributed Rate Limiter & Token Bucket

Protect multi-region microservices from traffic spikes, brute-force attacks, and noisy neighbors with sub-millisecond overhead.

Asked at
CloudflareStripeAWSGoogle
Key Concepts
Token bucket & sliding window log algorithmsRedis Lua atomic script executionLocal in-memory token bufferingHTTP 429 Too Many Requests response headers
Mid✓ Full Blueprint

Scalable URL Shortener (TinyURL)

Compress long URLs into 7-character aliases with high read-to-write ratios, fast HTTP 301/302 redirects, and analytics tracking.

Asked at
Bit.lyGoogleAmazonTwitter
Key Concepts
Base62 encodingPre-generated key distribution service (KGS)High-performance redirect cachingAsynchronous click analytics pipeline
Mid✓ Full Blueprint

Distributed Notification Engine

Fan out millions of transactional and promotional notifications across APNs, FCM, SMS, and Email with priority queues.

Asked at
TwilioUberAmazon SNSDoorDash
Key Concepts
Multi-provider routing (APNs, FCM, Twilio, Sendgrid)Priority queue partitioningUser notification preference matrixRate-limited deduplication
Senior✓ Full Blueprint

Real-Time Metrics Monitoring & Alerting (Datadog)

Collect, aggregate, and query millions of infrastructure metrics per second with configurable alerting thresholds and dashboards.

Asked at
DatadogPrometheusNew RelicGrafana Labs
Key Concepts
Time-series database (TSDB) chunkingPush vs pull metric collectorsStreaming alerting evaluation engineData downsampling rollups
Staff✓ Full Blueprint

Distributed Job Scheduler & Orchestrator

Execute millions of recurring cron and delayed background jobs reliably with worker heartbeats and distributed locking.

Asked at
TemporalAirbnb / Apache AirflowAWS BatchMeta
Key Concepts
Delay queues via Redis ZSET or KafkaWorker heartbeat and lease renewalAt-least-once job executionDead-letter queues for failed executions
Mid

Distributed Unique ID Generator (Snowflake)

Generate 64-bit globally unique, roughly time-sorted integers across distributed worker nodes without database coordination.

Asked at
Twitter / XInstagramDiscordFigma
Key Concepts
Twitter Snowflake layout (Epoch + Machine ID + Sequence)NTP clock drift mitigationWorker node ID assignment via ZooKeeperSequence overflow handling
Staff✓ Full Blueprint

Distributed Message Queue (Apache Kafka)

Build a durable, append-only log message broker supporting high-throughput publish-subscribe and consumer group offsets.

Asked at
Confluent / Apache KafkaAWS SQS / KinesisRabbitMQApache Pulsar
Key Concepts
Partitioned append-only commit logsZero-copy OS disk-to-network transfer (sendfile)Consumer group rebalancingIn-sync replicas (ISR) and leader election
Staff

Distributed Lock Manager (Redlock / Chubby)

Synchronize access to shared resources across untrusted distributed processes with lease timers and fencing tokens.

Asked at
Google ChubbyRedisApache ZooKeeperHashiCorp Consul
Key Concepts
Redis Redlock algorithm consensusFencing tokens to prevent split-brain zombiesHeartbeat lease renewalsClock drift safety assumptions
Staff

Distributed Tracing & APM (OpenTelemetry / Jaeger)

Track end-to-end request journeys across hundreds of microservices with trace context propagation and adaptive sampling.

Asked at
DatadogSplunkDynatraceGoogle Cloud Trace
Key Concepts
W3C Trace Context (traceparent header)Tail-based vs head-based trace samplingHigh-throughput collector bufferClickHouse span storage
Senior

LeetCode Online Code Execution Judge

Compile and run untrusted user code safely across 30+ languages with strict CPU/memory timeouts and vulnerability sandboxing.

Asked at
LeetCodeHackerRankCodeSignalGitHub Actions
Key Concepts
Linux cgroups and namespaces isolationgVisor / Firejail kernel security barriersAsynchronous job submission queueMemory and wall-clock enforcement
Senior

Webhook Delivery & Event Notification Engine (Svix)

Deliver billions of outbound HTTP webhooks to third-party customer endpoints with exponential backoff, signatures, and circuit breakers.

Asked at
SvixStripeShopifyGitHub
Key Concepts
HMAC SHA-256 webhook signaturesExponential backoff retry with jitterPer-endpoint circuit breakingDead-letter queues and replay portals
Staff

Real-Time Collaborative Document Canvas (Figma / Docs)

Enable concurrent multi-user editing on documents and canvas trees with conflict resolution, presence cursors, and undo/redo.

Asked at
FigmaGoogle DocsNotionMiro
Key Concepts
Operational Transformation (OT) vs CRDTsWebSocket state syncPresence cursor broadcast with throttlingUndo/redo action tree stacks
🤖

AI & Machine Learning

(5 questions)

LLM serving with continuous batching, vector search, recommendation feeds, and streaming ASR.

Staff

Video Recommendation Engine (TikTok / YouTube)

Serve personalized video feeds in under 50ms combining two-stage candidate generation, deep ranking models, and real-time user feedback.

Asked at
ByteDance / TikTokYouTubeMeta / Instagram ReelsNetflix
Key Concepts
Two-stage candidate retrieval (ANN) and rankingReal-time user engagement feature storeExploration vs exploitation (Multi-armed bandits)Cold-start handling
Staff

Visual Search & Image Embedding Engine (Google / Pinterest)

Search a catalog of 10 billion products by uploaded image using Vision Transformers, vector indexing, and real-time metadata filtering.

Asked at
Google LensPinterestAmazon Visual SearchAlibaba
Key Concepts
Vision Transformer (ViT) embedding generationVector similarity search (HNSW / ScaNN)Hybrid vector + metadata filteringEmbedding model versioning
Principal✓ Full Blueprint

High-Throughput LLM Inference Serving System (vLLM)

Serve generative Large Language Models with continuous batching, PagedAttention KV cache memory management, and speculative decoding.

Asked at
OpenAIAnthropicTogether AIGroqGoogle DeepMind
Key Concepts
Continuous iteration-level batchingPagedAttention KV cache virtual memory pagingTensor parallelism across GPUsSpeculative decoding verification
Senior

Enterprise RAG (Retrieval-Augmented Generation) Pipeline

Ingest enterprise documents, chunk and embed text into vector databases, and perform hybrid lexical-semantic retrieval for LLMs.

Asked at
OpenAICoherePineconeDatabricksAnthropic
Key Concepts
Semantic document chunkingDense vector embeddings + Sparse BM25 hybrid searchCross-encoder re-rankingContext window token budgeting
Senior

Real-Time Streaming Speech-to-Text Pipeline (ASR)

Transcribe live microphone audio in under 200ms latency using chunked streaming ASR, connection pooling, and speaker diarization.

Asked at
xAI / Grok-STTSonioxOpenAI WhisperDeepgramGoogle Speech
Key Concepts
Opus audio chunk streamingStreaming Conformer / Whisper inferenceVAD (Voice Activity Detection) endpointingBackpressure audio frame buffering
🚰

Data Engineering & Pipelines

(5 questions)

Lakehouse storage, real-time stream ingestion, Change Data Capture (CDC), and partition compaction.

Staff

Real-Time Clickstream Ingestion & Sessionization (Kafka + Flink)

Ingest 1M events/sec from mobile and web, deduplicate, sessionize with tumbling/session windows, and sink into analytical lakehouses.

Asked at
NetflixPinterestStripeSnowflake
Key Concepts
Kafka topic partitioningApache Flink stateful stream processingWatermarking & late-arriving event handlingExactly-once semantics (2PC sinks)
Senior

Change Data Capture (CDC) Lakehouse Ingestion Engine (Debezium + Iceberg)

Stream transactional database mutation logs (PostgreSQL WAL) into Apache Iceberg tables with partition compaction and ACID guarantees.

Asked at
AirbnbUberDatabricksShopify
Key Concepts
PostgreSQL WAL / MySQL Binlog streamingApache Iceberg metadata treesCopy-on-Write vs Merge-on-ReadAutomated small-file compaction
Senior

GDPR / CCPA Right-to-be-Forgotten Data Lake Purger

Erase specific user identifier records across petabytes of immutable historical Parquet files in S3 while minimizing write amplification and compute cost.

Asked at
MetaGoogleSpotifyAmazon
Key Concepts
Bloom filters for record locatingSelective Parquet row-group rewritingSecondary index lookup mapsImmutable audit trail generation
Staff

Financial Audit & Double-Entry Analytical Warehouse (Stripe / Square)

Reconcile billions of daily financial transactions across multiple payment rails with point-in-time snapshot auditability and zero ledger drift.

Asked at
StripeBlock / SquareRobinhoodAdyen
Key Concepts
Immutable append-only ledger tablesAs-of point-in-time time-travel queriesMulti-currency rounding & balance invariantsAutomated cross-bank settlement reconciliation
Senior

High-Throughput Metric Rollup & Anomaly Pipeline (Datadog / Databricks)

Ingest 10M time-series telemetry data points per second, compute multi-tier downsampling rollups (1m, 1h, 1d), and detect statistical anomalies.

Asked at
DatadogDynatraceGrafana LabsAmazon CloudWatch
Key Concepts
Time-bucketed aggregation windowsGorilla XOR timestamp compressionStreaming exponential smoothing (EWMA)ClickHouse materialized views
📊

Data Science & Experimentation

(5 questions)

Enterprise A/B testing platforms, switchback experiments, variance reduction (CUPED), and metric evaluation.

Staff

Enterprise A/B Testing & Metric Computation Platform (Statsig / Eppo)

Deterministically assign millions of daily active users into concurrent experiment buckets, evaluate metric shifts, and prevent sample ratio mismatches.

Asked at
StatsigEppoNetflixMetaBooking.com
Key Concepts
MurmurHash deterministic user hashingLayered experiment isolation gridsSample Ratio Mismatch (SRM) chi-square testAutomated guardrail metric alerts
Senior

Marketplace Switchback & Cluster Experimentation Engine (DoorDash / Uber)

Measure pricing and dispatch algorithm changes in two-sided marketplaces without cannibalization or spatial network spillover.

Asked at
DoorDashUberLyftInstacart
Key Concepts
Time-space switchback randomizationH3 geospatial cluster partitioningNetwork interference mitigationBootstrap standard error estimation
Senior

Variance Reduction & Fast-Significance Engine (CUPED)

Accelerate A/B test runtimes by 50% using Controlled-experiment Using Pre-Experiment Data (CUPED) to remove pre-existing user variance.

Asked at
MicrosoftAirbnbNetflixAmazon
Key Concepts
ANCOVA / Covariate adjustmentPre-experiment feature extractionLinear regression coefficient estimationStatistical power calculation
Staff

Search Relevance & Ranking Offline Evaluation Harness (Google / Amazon)

Evaluate search ranking algorithms against human evaluation judgments and implicit click logs using NDCG, MAP, and MRR metrics.

Asked at
GoogleAmazonPinterestEtsy
Key Concepts
Normalized Discounted Cumulative Gain (NDCG@K)Mean Reciprocal Rank (MRR)Interleaving search results for fast online evalPosition bias click models
Mid

Customer Churn Prediction & Early-Alert Pipeline

Ingest daily user product engagement signals, compute RFM (Recency, Frequency, Monetary) metrics, and score probability of 30-day account abandonment.

Asked at
SpotifySalesforceHubSpotLinkedIn
Key Concepts
RFM feature engineeringSurvival analysis (Cox Proportional Hazards)Calibration curves & Brier scoreAutomated webhook trigger dispatch
🛡️

Site Reliability & Platform

(5 questions)

Multi-region active-active disaster recovery, distributed APM tracing, canary rollouts, and chaos injection.

Principal

Global Multi-Region Active-Active Disaster Recovery Architecture

Route traffic dynamically across three global cloud regions with zero-downtime automated failover, data synchronization, and split-brain immunity.

Asked at
AWSGoogle CloudNetflixCloudflare
Key Concepts
BGP Anycast & Route 53 latency routingCockroachDB / Spanner multi-region replicationAutomated circuit breaker traffic shiftingRTO and RPO SLA guarantees
Staff

High-Volume Distributed Tracing & APM Platform (OpenTelemetry / Jaeger)

Ingest 1M spans per second across microservices, trace distributed context propagation, and execute tail-based anomaly sampling.

Asked at
DatadogDynatraceHoneycombLightstep / ServiceNow
Key Concepts
W3C TraceContext header propagationHead vs Tail-based sampling filtersDAG span assembly & dependency graphClickHouse columnar trace storage
Senior

Automated Canary Deployment & Rollback Engine (Argo Rollouts / Spinnaker)

Gradually shift production traffic to new service releases (5% -> 25% -> 100%), monitor live Prometheus error budgets, and trigger instant rollbacks.

Asked at
NetflixMetaIntuit / ArgoStripe
Key Concepts
Envoy service mesh weighted routingPrometheus Mann-Whitney U metric comparisonAutomated GitOps rollback PR triggerDatabase schema backward-compatible expand-contract
Staff

Multi-Cluster Kubernetes Secret & Config Synchronizer

Securely replicate dynamic credentials and configuration across 500 Kubernetes clusters with automated rotation and zero plain-text storage.

Asked at
HashiCorpShopifyDatadogTarget
Key Concepts
Kubernetes Custom Resource Definitions (CRDs)Vault dynamic secret enginesmTLS SPIRE cluster attestationEnvelope encryption with AWS KMS
Staff

Chaos Engineering Automated Fault-Injection Platform (Chaos Monkey / Gremlin)

Proactively inject simulated latency, packet drops, CPU exhaustion, and AZ outages into production clusters with automated blast radius containment.

Asked at
NetflixAmazonGremlinMicrosoft
Key Concepts
Blast radius containment controlseBPF kernel packet delay injectionLive steady-state metric hypothesis checksAutomated emergency kill switch
🔐

Cloud Security & Zero Trust

(5 questions)

Enterprise secrets management, zero-trust remote proxies, SIEM threat correlation, and E2EE protocols.

Principal

Enterprise Secrets Management & Key Broker Service (HashiCorp Vault)

Store and broker application API keys, database credentials, and cryptographic certificates with leasing, revocation, and envelope encryption.

Asked at
HashiCorpStripePalantirApple
Key Concepts
Shamir's Secret Sharing unsealingEnvelope encryption (KEK + DEK)Dynamic short-lived database credentialsCryptographic audit logging
Staff

Zero Trust Remote Access Gateway (Cloudflare Access / BeyondCorp)

Replace corporate VPNs by authenticating employee identity, verifying MDM device posture, and proxying internal enterprise applications.

Asked at
CloudflareGoogle (BeyondCorp)ZscalerPalo Alto Networks
Key Concepts
Identity-aware reverse proxyingMutual TLS (mTLS) client certificatesReal-time device posture verificationEphemeral signed JWT user headers
Senior

Real-Time SIEM Threat Detection & Event Correlator (Splunk / Panther)

Ingest 200k audit events/sec from cloud trail logs, firewalls, and endpoint agents to detect lateral movement and credential exfiltration.

Asked at
CrowdStrikeSplunkPanther LabsPalo Alto Networks
Key Concepts
Log schema normalization (OCSF format)Streaming detection rules (Python / Sigma)Sliding-window entity risk scoringAutomated SOAR playbook trigger
Staff

End-to-End Encrypted (E2EE) Messaging Protocol (Signal Protocol)

Guarantee forward secrecy and post-compromise security for asynchronous one-to-one and group messaging across distributed devices.

Asked at
SignalWhatsApp / MetaTelegramApple (iMessage)
Key Concepts
X3DH prekey exchange protocolDouble Ratchet symmetric key derivationForward secrecy & future secrecy guaranteesEncrypted out-of-band attachment storage
Principal

High-Performance IAM Policy Evaluation Engine (AWS IAM / OPA)

Evaluate complex attribute-based access control (ABAC) and role-based policies in under 1 millisecond for every internal microservice request.

Asked at
AWSGoogle CloudStyra (OPA)Okta
Key Concepts
Explicit Deny > Explicit Allow precedenceAttribute-based access control (ABAC)Pre-compiled WebAssembly policy evaluationLocal in-memory policy cache synchronization
🖥️

Frontend & Client Systems

(5 questions)

Real-time collaborative canvases (CRDTs), offline-first sync engines, media prefetching, and spreadsheets.

Staff

Real-Time Collaborative Whiteboard & Canvas (Figma / Miro)

Synchronize infinite vector canvas nodes, shapes, and presence cursors across dozens of concurrent editors with smooth interactive responsiveness.

Asked at
FigmaMiroCanvaAtlassian
Key Concepts
Conflict-Free Replicated Data Types (CRDTs)WebAssembly scene graph rendering (WebGL)Presence cursor throttling & interpolationLocal undo/redo action tree management
Senior

Offline-First Mobile & Web Sync Engine (Linear / Notion)

Enable instant local writes on client devices without network connectivity and reliably resolve state conflicts upon reconnect.

Asked at
LinearNotionSuperhumanApple Notes
Key Concepts
Local SQLite / IndexedDB persistenceClient mutation outbox queueLast-Write-Wins (LWW) with Lamport timestampsDelta state synchronizer over WebSocket
Senior

Infinite Scroll Media Feed with Dual-Player Prefetching (TikTok / Reels)

Deliver zero-latency vertical video swiping on constrained mobile devices with predictive chunk prefetching and strict memory caps.

Asked at
TikTok / ByteDanceInstagram / MetaYouTube ShortsSnapchat
Key Concepts
Dual-player pooling & reusePredictive 2-second chunk prebufferingLRU disk cache eviction with quota enforcementAdaptive bitrate (ABR) bandwidth probing
Staff

High-Performance Virtualized Spreadsheet Grid (Google Sheets / Airtable)

Render 1,000,000 tabular rows at 60fps with cell formula dependency graphs, virtualized DOM scrolling, and Web Worker computation.

Asked at
GoogleAirtableMicrosoft (Excel Online)Smartsheet
Key Concepts
DOM node virtualization (windowing)Directed Acyclic Graph (DAG) formula evaluationOffscreen Web Worker calculation threadDirty-rectangle canvas rendering
Senior

Enterprise Micro-Frontend Shell & Module Federation Platform

Orchestrate 30+ independently deployed frontend applications into a unified single-page shell with shared dependencies and sandboxing.

Asked at
AmazonSpotifyPayPalUber
Key Concepts
Dynamic runtime script injectionShared singleton vendor dependencies (React)CSS isolation (Shadow DOM / Scoped CSS)Cross-app event bus communication
🤖

GenAI & Autonomous Agents

(19 questions)

Agentic tool loops, real-time AI search, inference serving, semantic caching, and LLM evaluation.

Staff

AI Coding Assistant & Autocomplete Engine (Cursor / GitHub Copilot)

Provide inline code completions and repository-aware chat by indexing AST symbols, open editor tabs, and local git diffs.

Asked at
Cursor / AnysphereGitHubMicrosoftSupermavenAugment
Key Concepts
Language Server Protocol (LSP) triggersTree-sitter AST syntax chunkingTwo-tier model routing (fast inline vs deep reasoning)Background compiler syntax validation
Principal

Autonomous Software Engineering Agent & Sandbox Harness (Devin / Claude Computer Use)

Orchestrate an autonomous agent that explores codebases, edits files, executes test suites, and iterates until builds pass.

Asked at
Cognition (Devin)AnthropicOpenAIMeta
Key Concepts
ReAct plan-act-observe loopsStep-budget clamps & runaway preventionMicroVM execution sandboxes (Firecracker / gVisor)State checkpoint event logs
Staff

Real-Time Grounded AI Search & Answer Engine (Perplexity / SearchGPT)

Decompose user queries into parallel web searches, scrape candidate documents, rerank snippets, and stream answers with verifiable citations.

Asked at
PerplexityOpenAI (SearchGPT)GoogleMicrosoft (Bing Copilot)
Key Concepts
Query decomposition & fan-outParallel web scraping & HTML text extractionCross-encoder passage rerankingStreaming inline markdown citationsHallucination verification agents
Senior

Universal AI Gateway & Semantic Cache (LiteLLM / Cloudflare AI Gateway)

Provide a unified multi-provider control plane with vector semantic caching, automated fallbacks, dynamic model routing, and token quotas.

Asked at
CloudflarePortkeyScale AIDatadog
Key Concepts
Vector cosine similarity semantic caching (Redis)Adaptive cost & latency model routingProvider circuit breaking & failoverSliding-window token bucket rate limitsPII redaction
Senior

Automated LLM Evaluation Platform & LLM-as-a-Judge (LangSmith / Braintrust)

Run regression test suites, track prompt drift, and score generated outputs against golden datasets using automated judge models.

Asked at
BraintrustScale AIDatadogAnthropic
Key Concepts
Immutable golden benchmark datasetsChain-of-Thought judge modelsFaithfulness & answer relevance scoringCI/CD automated regression gates
Staff

Full-Duplex Real-Time Voice Agent & Interruption Engine (OpenAI Realtime / Gemini Live)

Stream bidirectional audio for natural voice conversations with client-side voice activity detection and instant barge-in cancellation.

Asked at
OpenAIGoogle DeepMindElevenLabsDeepgram
Key Concepts
Bidirectional WebSocket & WebRTC Opus transportVoice Activity Detection (VAD) barge-in interruptionAbort signal token generation cancellationSpeech-to-speech native inference
Staff

Distributed Text-to-Image & Video Generation Pipeline (Midjourney / Sora / Flux)

Process high-volume creative prompts with safety classifiers, tiered GPU priority scheduling, and latent diffusion multi-step denoising.

Asked at
MidjourneyRunwayOpenAIBlack Forest Labs (Flux)
Key Concepts
Prompt safety & aesthetic expansionTiered GPU priority job queuesLatent diffusion multi-step denoising (FP8/INT8)Progressive CDN preview delivery
Senior

Long-Term Conversational AI Memory & Persona Store (ChatGPT Memory / Mem0)

Extract declarative facts, user preferences, and entity relationship graphs across chat sessions and inject relevant memories on demand.

Asked at
OpenAICharacter.aiAppleMeta
Key Concepts
Asynchronous declarative fact extraction workerEntity-attribute relational store + dense vector embeddingsTop-k relevance re-ranking for system prompt injectionUser memory deletion & privacy controls
Senior

Real-Time AI Guardrails & Prompt Injection Firewall (NeMo Guardrails / Llama Guard)

Inspect user prompts and model responses to block direct jailbreaks, indirect injections, and confidential credential leaks.

Asked at
CloudflarePalo Alto NetworksMicrosoftGoogle
Key Concepts
Dual-phase pre-prompt & post-generation inspectionJailbreak & prompt injection classifier heuristicsSensitive entity detection (NER)Surrogate token vaulting & de-anonymization
Principal

Distributed LLM Training & Fault-Tolerant Checkpointing System (Megatron-LM / DeepSpeed / FSDP)

Orchestrate multi-node GPU training across thousands of accelerators with 3D parallelism and non-blocking asynchronous checkpoint saves.

Asked at
Meta (Llama)Google DeepMindxAICoreWeave
Key Concepts
3D parallelism (Tensor, Pipeline, Data / ZeRO-3)Asynchronous non-blocking checkpoint dumping to distributed NVMe/S3InfiniBand & RoCE collective communication (NCCL)Automated worker failure recovery & health checks
Senior

Synthetic Data Generation & RLHF / DPO Alignment Pipeline

Generate millions of high-quality synthetic training pairs, score model outputs, and execute direct preference optimization alignment.

Asked at
AnthropicScale AIDatabricksOpenAI
Key Concepts
Self-instruct prompt generation & rejection samplingPairwise preference dataset synthesisDirect Preference Optimization (DPO) training loopsAutomated critique & revision loops
Senior

Enterprise Multi-Modal Document Intelligence & Table Parsing Engine

Ingest scanned enterprise PDFs, slides, and invoices with vision-based layout analysis, table reconstruction, and hierarchical chunking.

Asked at
DatabricksGleanAmazon BedrockGoogle Cloud
Key Concepts
Vision-based bounding box layout detectionStructured table markdown reconstructionHierarchical parent-child chunkingMulti-modal vector indexing
Staff

High-Concurrency Sandboxed Code Execution Platform for AI (E2B / Modal / Firecracker)

Run untrusted Python and bash code generated by AI agents inside disposable, secured microVM environments.

Asked at
ModalE2BReplitCloudflare Workers
Key Concepts
MicroVM rapid cold startsCopy-on-write root filesystemsStrict system call filtering (seccomp / eBPF)Network egress isolation & strict resource quotas
Staff

Speculative Decoding & Draft Model Inference Acceleration (Medusa / vLLM)

Accelerate large model token generation by employing a lightweight draft model to speculate multiple candidate tokens in parallel.

Asked at
Together AIGroqAnyscaleGoogle DeepMind
Key Concepts
Lightweight draft model speculationTarget model parallel verification forward passTree-based attention verification kernelsDynamic speculative length adaptation
Senior

Scalable Function Calling & Agent Tool Execution Broker

Manage thousands of OpenAPI tool definitions, dynamically filter context schemas, and safely execute distributed external actions.

Asked at
OpenAILangChainAnthropicStripe
Key Concepts
OpenAPI tool definition registriesDynamic semantic tool schema filteringIdempotent tool execution & token leasesAsynchronous polling for long-running workflowsCompensating rollback transactions
Staff

Enterprise Hybrid RAG Engine with Reciprocal Rank Fusion & GraphRAG

Combine dense vector similarity, sparse keyword search, and knowledge graph entity traversal to eliminate RAG retrieval blind spots.

Asked at
MicrosoftNeo4jCohereDatabricks
Key Concepts
Knowledge graph entity & relationship extractionDense vector + sparse BM25 fusion (RRF)Multi-hop reasoning retrieval pathsContextual document compression
Senior

Multi-Turn AI Customer Support & Action Execution Agent (Klarna / Intercom Fin)

Resolve customer issues autonomously with intent classification, policy-bounded tool execution, and seamless human agent handoffs.

Asked at
KlarnaIntercomSalesforceZendesk
Key Concepts
Intent triage & customer sentiment trackingPolicy-bounded tool execution with guardrailsLive conversation summarizationGraceful human escalation handoff
Principal

Vision-Language Action Agent & Desktop Automation (Claude Computer Use / Adept)

Control graphical desktop interfaces by taking screenshots, detecting interactive UI elements, and generating mouse and keyboard events.

Asked at
AnthropicAdeptMicrosoftOpenAI
Key Concepts
Screen capture coordinate scalingVision transformer UI element localizationMouse & keyboard action sequencingVisual state verification feedback loops
Senior

High-Throughput Web Scraping & Synthetic Data Purification Pipeline for Pre-Training (Common Crawl / FineWeb)

Process petabyte-scale raw web crawls through fuzzy deduplication, quality filtering, PII removal, and synthetic document refinement.

Asked at
Hugging FaceMetaMistralxAI
Key Concepts
MinHash LSH fuzzy text deduplicationFastText heuristic quality & language classificationPetabyte-scale distributed PII strippingSynthetic document rephrasing & toxicity removal
The 6-Step Blueprint

How to ace any senior system design interview.

ClawPad structures every prompt into a defensible engineering framework.

  1. 01

    Clarify Requirements & Scope

    Lock down functional APIs and non-functional SLAs (availability, latency, consistency).

  2. 02

    Capacity & Resource Math

    Derive peak QPS, storage growth per year, cache memory, and network ingress/egress.

  3. 03

    High-Level Component Topology

    Draw client gateways, load balancers, microservices, caches, and storage tiers.

  4. 04

    Database & Data Model Schema

    Define relational vs NoSQL schemas, primary keys, partition strategies, and indexes.

  5. 05

    Deep-Dive Bottlenecks & SPOFs

    Address cache invalidation, network partitions, replication lag, and leader elections.

  6. 06

    Trade-Off Defense

    Defend architectural compromises (CAP theorem, sync vs async, consistency vs latency).

Interactive Architecture Studio

Practice live system design diagrams on your desktop today.

Download ClawPad