Practice
1. In a fraud detection system ingesting thousands of transactions per second, which component is best suited to decouple the high-throughput transaction ingestion from downstream real-time scoring to avoid backpressure?
easy
Solution
Step 1: Identify decoupling mechanism
Relational DB batch inserts (A) add latency and don't handle high write throughput well. Redis (C) lacks durability guarantees for buffering. Direct synchronous calls (D) cause backpressure and tight coupling.Step 2: Evaluate Kafka suitability
Kafka supports high-throughput, partitioned by user ID to maintain ordering per user, and durable storage, enabling asynchronous processing and backpressure handling.Final Answer:
Option D -> Option DQuick Check:
Kafka partitions decouple ingestion and scoring with durability and ordering [check]
Hint: Kafka partitions buffer high-throughput streams reliably [check]
Common Mistakes:
2. A messaging system must handle 925K message writes per second and fan-out delivery to millions of users with minimal latency. Which component best decouples message ingestion from fan-out delivery to ensure durability and scalability?
easy
Solution
Step 1: Identify Kafka's role in decoupling ingestion and delivery
Kafka partitions by conversation ID to guarantee ordering and durability, allowing high write throughput and asynchronous fan-out.Step 2: Eliminate other options
Relational DB with locking can't handle high write concurrency; Redis pub/sub lacks durability and persistence; HTTP polling adds latency and load.Final Answer:
Option D -> Option DQuick Check:
Kafka partitions -> durable, ordered, scalable message ingestion [check]
Hint: Kafka partitions ensure durable, ordered, scalable ingestion [OK]
Common Mistakes:
3. A global video streaming service wants to ensure uninterrupted content delivery even if one CDN provider experiences an outage. Which component in a multi-CDN strategy primarily manages failover between CDNs to maintain availability?
easy
Solution
Step 1: Identify role of Global Traffic Manager
The Global Traffic Manager monitors health of multiple CDNs and dynamically routes user requests to healthy CDNs, enabling failover.Step 2: Eliminate other options
Client-side DNS caching (A) is static and cannot adapt quickly to failures. Origin server redirects (C) add latency and single point of failure. Local edge caches (D) do not manage CDN selection or failover.Final Answer:
Option B -> Option BQuick Check:
Global Traffic Manager dynamically routes traffic based on CDN health [check]
Hint: Global Traffic Manager controls CDN failover dynamically [OK]
Common Mistakes:
4. A distributed messaging system must handle 1 million writes per second and guarantee message durability despite node failures. Which component best handles this requirement?
easy
Solution
Step 1: Identify durability and high write throughput needs
Redis without persistence (A) cannot guarantee durability on failure. Relational DB (C) cannot handle 1M writes/sec synchronously without bottlenecks. Simple queue without replication (D) risks message loss.Step 2: Recognize Kafka's replication and partitioning
Kafka provides durable, replicated logs with partitioning for high throughput and fault tolerance.Final Answer:
Option A -> Option AQuick Check:
Kafka replication + partitioning -> durability and scale [check]
Hint: Kafka replicates logs for durability and scales with partitions [check]
Common Mistakes:
5. At 10x traffic scale, which component of a global server load balancing system is most likely to fail first and why?
hard
Solution
Step 1: Analyze scaling challenges
Health monitoring (The health monitoring system, due to increased frequency of health checks overwhelming it) scales with checks but can be optimized; control plane (The GSLB control plane, as it struggles to process and update routing decisions for all data centers in real-time) is distributed and designed for scale; ingress routers (The data center ingress routers, since network bandwidth scales linearly and saturates quickly) scale with network upgrades.Step 2: Identify DNS bottleneck
DNS servers face query volume spikes and caching TTLs limit failover responsiveness, making them the first to fail under 10x load.Final Answer:
Option D -> Option DQuick Check:
DNS query volume and caching limits cause first failure at scale [check]
Hint: DNS query volume overloads servers first at scale [check]
Common Mistakes:
