Skip to content

๐ŸŸ  Senior Level (501โ€“750)

โ† Middle ยท README ยท Professional โ†’

Focus: Distributed systems depth, geo-distribution, advanced data modeling, complex system designs (Uber, Netflix-scale), trade-off justification, ambiguous requirements, real-time pipelines, advanced consistency.

For whom: 5โ€“8 years of experience, senior / L5 engineer. Time per question: 45โ€“60 minutes; write a trade-off justification.


๐Ÿงฌ Advanced Distributed Systems (501โ€“540)

  1. Walk through Raft consensus algorithm step by step.
  2. Walk through Paxos consensus algorithm step by step.
  3. Compare Raft, Paxos, ZAB, and Multi-Paxos.
  4. What is a quorum-based read/write protocol (e.g., Dynamo)?
  5. What is hinted handoff in Cassandra/Dynamo?
  6. What is read repair?
  7. What is anti-entropy and Merkle trees?
  8. What is gossip protocol?
  9. What is a vector clock and why use it?
  10. What is a Lamport timestamp?
  11. What is a hybrid logical clock (HLC)?
  12. What is a CRDT and what types exist (G-counter, OR-Set, LWW)?
  13. How would you build a collaborative editor with CRDTs vs OT?
  14. What is operational transformation (OT)?
  15. What is a vector version (causal) vs a wall clock?
  16. What is the difference between a leader-based and leaderless replication?
  17. What is "leader stickiness" and when does it hurt?
  18. What is a witness replica?
  19. What is chain replication?
  20. What is primary-backup replication?
  21. What is the FLP impossibility result?
  22. What is the Two Generals problem?
  23. What is the Byzantine Generals problem?
  24. What is BFT consensus (PBFT, Tendermint)?
  25. What is a distributed snapshot (Chandy-Lamport)?
  26. What is Spanner's TrueTime and how does it enable external consistency?
  27. How does Google Spanner achieve strong consistency at global scale?
  28. How does CockroachDB implement Spanner-like consistency without atomic clocks?
  29. How does DynamoDB handle global tables?
  30. How does Cassandra handle multi-datacenter replication?
  31. What are the trade-offs of synchronous cross-region writes?
  32. What is the role of a meta-data service (e.g., ZooKeeper)?
  33. How would you build a distributed lock service?
  34. How does etcd implement leader leases?
  35. How would you implement leader election with Redis (Redlock controversy)?
  36. What is the split-brain problem in leader election and how to avoid it?
  37. What are fence tokens and why are they needed for distributed locks?
  38. What is the difference between a strong leader and a weak leader?
  39. What is leader piggy-backing for heartbeats?
  40. Why is "exactly-once" actually "effectively-once with idempotency"?

๐ŸŒ Geo-Distribution & Multi-Region (541โ€“570)

  1. How do you architect for multi-region active-active?
  2. How do you architect for multi-region active-passive?
  3. What is RPO vs RTO?
  4. How do you replicate data across continents with bounded lag?
  5. How do you handle time-zone-sensitive workloads globally?
  6. What is "read local, write global" pattern?
  7. What is "follow-the-sun" architecture?
  8. How do you reroute traffic during a regional failover?
  9. What is GeoDNS and what are its limits?
  10. How do you implement consistent global IDs (Snowflake, ULID)?
  11. How does Twitter Snowflake assign IDs?
  12. What are the trade-offs of using a centralized ID service vs local IDs?
  13. How would you design a globally distributed counter?
  14. How would you implement a globally distributed rate limiter?
  15. What is the cost of cross-region writes in terms of latency?
  16. How would you replicate a write-heavy timeline to multiple regions?
  17. What is a follower read in Spanner-style systems?
  18. How do you handle clock skew across regions?
  19. What is the role of NTP/PTP in distributed systems?
  20. How would you design a multi-region disaster recovery plan?
  21. What is chaos failover testing across regions?
  22. How do you test for region-failover correctness?
  23. What is "graceful brownout" of a region?
  24. What is Anycast routing for global services?
  25. How does CloudFront/Akamai route a user to the nearest PoP?
  26. How does multi-region S3 replication work?
  27. How would you serve dynamic content from the edge (Cloudflare Workers)?
  28. What is the "eventual reachability" property in geo-distributed messaging?
  29. How would you design a global chat with read-after-write consistency?
  30. How do you handle data residency / data sovereignty laws?

๐Ÿ“ˆ Scalability Deep Dive (571โ€“610)

  1. How would you scale a "likes" counter to handle 1M writes/sec?
  2. How would you scale a feed-fanout system for 100M users?
  3. Compare push vs pull vs hybrid fanout for a social feed.
  4. How would you handle the "celebrity problem" in fanout?
  5. How would you build a typeahead serving 100K QPS?
  6. How would you scale a notification system to 1B users?
  7. How would you scale a real-time leaderboard to 10M players?
  8. Walk through scaling MySQL from 1 to 10M users.
  9. Walk through scaling Postgres for write-heavy workload.
  10. How would you scale a write-heavy time-series system (IoT)?
  11. How would you build a metrics ingestion system at the scale of Datadog?
  12. How would you architect a logs pipeline at the scale of Splunk?
  13. How would you design Pinterest's image pipeline?
  14. How would you design Instagram's feed for 500M MAU?
  15. How would you scale a chat system to 100M concurrent connections?
  16. How would you architect WhatsApp's E2E messaging?
  17. How would you design a global content moderation pipeline?
  18. How would you scale Stripe's payment ledger?
  19. How would you design Plaid-style financial data aggregation?
  20. How would you design Uber's geo-index (S2/H3)?
  21. How would you design Lyft's matching engine?
  22. How would you design DoorDash's dispatch service?
  23. How would you scale Airbnb's calendar / availability service?
  24. How would you scale Booking.com's pricing engine?
  25. How would you design Amazon's "prime now" inventory service?
  26. How would you architect a TikTok-scale recommendation feed?
  27. How would you design YouTube's view counter?
  28. How would you scale Reddit's voting/comments?
  29. How would you scale a video transcoding pipeline?
  30. How would you build a CDN like Cloudflare from scratch?
  31. How would you design a content moderation queue at scale?
  32. How would you build a fraud detection pipeline at scale?
  33. How would you design a real-time bidding (RTB) ad-auction system?
  34. How would you design Google AdSense at high level?
  35. How would you scale an analytics dashboard for billions of events?
  36. How would you design a multi-tenant log search (per-customer isolation)?
  37. How would you re-architect a monolith handling 50K RPS into microservices?
  38. How would you remove a single hot DB shard during peak traffic?
  39. How would you design a system to handle Black Friday spikes?
  40. How would you handle a 100x traffic spike with no advance warning?

๐Ÿงฐ Advanced Data Pipelines (611โ€“640)

  1. Compare Lambda vs Kappa architecture.
  2. When would you avoid Lambda architecture?
  3. How would you design a real-time analytics dashboard?
  4. How would you reconcile real-time and batch metrics?
  5. How would you build a near-real-time feature store?
  6. What is Apache Beam and where does it fit?
  7. What is exactly-once in Flink and how is it implemented?
  8. What is Flink checkpointing and savepointing?
  9. What is Spark structured streaming vs DStream?
  10. What is data lake vs data warehouse vs lakehouse?
  11. How would you architect an Iceberg/Delta lakehouse?
  12. What is medallion architecture (bronze/silver/gold)?
  13. What is reverse ETL?
  14. What is CDC (Debezium) at scale?
  15. What is the outbox pattern combined with Debezium?
  16. What is Kafka tiered storage?
  17. What is Pulsar and how does it differ from Kafka?
  18. What is the role of schema registry?
  19. How do you handle schema evolution across producers and consumers?
  20. How would you design a clickstream pipeline (Snowplow-like)?
  21. How would you architect an A/B testing platform end-to-end?
  22. How would you design an experiment platform with metrics + guardrails?
  23. How would you build a marketing event funnel pipeline?
  24. How would you build an attribution pipeline (multi-touch)?
  25. How would you architect a search-relevance feedback loop?
  26. How would you architect a vector search system (RAG-friendly)?
  27. How would you architect a real-time anomaly detector?
  28. How would you architect an ML feature pipeline (offline + online)?
  29. How would you architect a model-serving platform with shadow traffic?
  30. How would you architect a cost-aware data lifecycle (hot/warm/cold tiers)?

๐ŸŽฏ Trade-offs & Architecture Choices (641โ€“680)

  1. When would you pick microservices over a modular monolith and vice versa?
  2. When would you pick GraphQL over REST?
  3. When would you pick gRPC over REST/GraphQL?
  4. When would you pick eventual consistency over strong consistency?
  5. When would you pick at-least-once over at-most-once?
  6. When is exactly-once worth the cost?
  7. When would you build vs buy?
  8. When is a SaaS DB (Snowflake) better than self-managed Postgres?
  9. When is Postgres "good enough" instead of a NoSQL DB?
  10. When is JSON in Postgres better than Mongo?
  11. When is a bus (Kafka) better than a request/response API?
  12. When is HTTP/3 worth deploying?
  13. When does a service mesh add too much overhead?
  14. When is server-side rendering better than client-side?
  15. When is Redis a bad choice as a primary store?
  16. When does sharding become unavoidable?
  17. When is denormalization the right call?
  18. When should you avoid microservices entirely?
  19. When is a monolith actually the better long-term choice?
  20. Trade-offs of synchronous vs asynchronous APIs?
  21. Trade-offs of REST vs event-driven?
  22. Trade-offs of optimistic vs pessimistic locking at scale?
  23. Trade-offs of JWT vs opaque tokens?
  24. Trade-offs of JWT vs session in distributed services?
  25. Trade-offs of leader-based vs leaderless replication?
  26. Trade-offs of per-tenant DB vs shared DB?
  27. Trade-offs of synchronous vs asynchronous replication?
  28. Trade-offs of B-tree vs LSM-tree storage engines?
  29. Trade-offs of row-store vs column-store?
  30. Trade-offs of row-level vs document-level versioning?
  31. Trade-offs of soft deletes vs hard deletes?
  32. Trade-offs of in-DB vs out-of-DB joins?
  33. Trade-offs of schema-on-read vs schema-on-write?
  34. Trade-offs of async fanout vs synchronous notification?
  35. Trade-offs of pre-computing aggregates vs computing on read?
  36. Trade-offs of caching at edge vs at origin?
  37. Trade-offs of self-hosted Kafka vs MSK/Confluent?
  38. Trade-offs of using ELB vs nginx vs Envoy?
  39. Trade-offs of using a queue vs a stream?
  40. Trade-offs of static partitioning vs dynamic partitioning?

๐Ÿ” Advanced Security (681โ€“710)

  1. How do you design end-to-end encryption (Signal protocol)?
  2. How do you implement key rotation at scale?
  3. How does Zero Trust architecture work?
  4. How would you design SSO with OIDC across services?
  5. What is mTLS and how do you operate it at scale?
  6. How would you design secret management (HashiCorp Vault patterns)?
  7. How do you handle PII in a logging pipeline?
  8. How do you design field-level encryption for a SaaS DB?
  9. How do you implement audit logs that are tamper-evident?
  10. How do you implement data redaction for support staff?
  11. How do you design a permission system (RBAC vs ABAC vs ReBAC)?
  12. How would you design a Google Zanzibar-style authorization service?
  13. How do you implement API rate limiting per tenant?
  14. How do you mitigate DDoS at the edge?
  15. How do you implement a WAF with a CDN provider?
  16. How do you design account takeover prevention?
  17. How do you design device fingerprinting?
  18. How do you implement OAuth token revocation?
  19. How do you implement secure cookie strategies (HttpOnly, SameSite, Secure)?
  20. How do you implement CSP for a complex SaaS app?
  21. What is supply-chain security and how do you mitigate (SLSA, sigstore)?
  22. How do you handle CVE response across hundreds of microservices?
  23. What is a HSM and when do you need one?
  24. How do you implement client-side encryption for S3 data?
  25. How do you design a data lake with column-level access control?
  26. How do you handle GDPR right-to-be-forgotten across services?
  27. How do you design SOC2-compliant audit pipelines?
  28. How do you implement HIPAA-grade auditing?
  29. How do you securely share data with third parties (S3 presigned, JIT access)?
  30. How do you design a bug bounty / responsible disclosure intake system?

๐Ÿงช Performance & Internals (711โ€“740)

  1. Walk through what happens during a Postgres query (parser โ†’ planner โ†’ executor).
  2. How does Postgres VACUUM work and why is it necessary?
  3. How does PostgreSQL handle MVCC tuple bloat?
  4. What is a heap-only tuple (HOT) update?
  5. How does MySQL InnoDB clustered index differ from Postgres heap?
  6. What is the LSM tree and how does compaction work?
  7. How does Cassandra's read path work (memtable, SSTable, bloom filter)?
  8. How does Bloom filter improve read performance?
  9. What is a Cuckoo filter vs Bloom filter?
  10. How does B+ tree differ from B-tree?
  11. What is fractal tree?
  12. What is the Linux page cache and how does it interact with DB?
  13. What is "fsync" and how does it affect durability?
  14. What is a journaling file system?
  15. What is RDMA and when does it matter?
  16. What is io_uring and what problem does it solve?
  17. What is zero-copy networking?
  18. What is kernel bypass (DPDK, XDP)?
  19. How does TCP slow start and congestion control affect tail latency?
  20. What is BBR vs CUBIC congestion control?
  21. How does QUIC improve over TCP?
  22. What is the cost of DNS lookups in microservices?
  23. What is JIT and how does V8/JVM warm up affect deployment?
  24. What is JVM GC tuning (G1 vs ZGC vs Shenandoah)?
  25. What is Go GC behavior under high allocation rate?
  26. What is heap fragmentation and how to mitigate?
  27. What is profiling vs tracing vs sampling?
  28. What is flame graph and how to read it?
  29. What is the role of perf and eBPF in production diagnostics?
  30. How would you debug a production-only memory leak?

๐Ÿงฏ Failure & Recovery (741โ€“750)

  1. How would you respond to a global outage of a critical dependency?
  2. How would you handle a runaway query taking down the DB?
  3. How do you design a "kill switch" for a feature?
  4. How do you handle a cache layer outage gracefully?
  5. How do you handle a write outage when reads must continue?
  6. What is circuit-breaker fallback strategy for payments?
  7. How do you design a degraded-read mode?
  8. How do you design a degraded-write mode?
  9. How do you safely roll back a schema change that already replicated?
  10. How do you design a "fire drill" / disaster simulation calendar?

โ† Middle ยท README ยท Professional Level โ†’