Practice
1. In a PACELC-based system, at step 4 the Write Coordinator checks the network partition status before committing a write. What happens if the network is partitioned but latency is prioritized?
easy
Solution
Step 1: Trace Write Coordinator behavior at Step 4
When partitioned and latency prioritized, writes commit locally without waiting for replicas.Step 2: Understand asynchronous replication impact
Local commit allows low latency; replication happens later, risking temporary inconsistency.Final Answer:
Option C -> Option CQuick Check:
Local commit + async replication -> low latency under partition [check]
Hint: Local commit first, replicate later under partition and latency [check]
Common Mistakes:
2. 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:
3. A company needs to store user data with the highest read/write speed for active sessions, but cost must be balanced for less frequently accessed data. Which storage tier is best suited for the active session data?
easy
Solution
Step 1: Identify storage tier characteristics
Hot storage provides the lowest latency and highest throughput, suitable for active session data requiring fast reads/writes.Step 2: Eliminate other tiers based on latency and cost
Cold and archive tiers have high latency and are optimized for cost, not speed. Warm storage has moderate latency but is slower than hot storage.Final Answer:
Option B -> Option BQuick Check:
Hot storage = fastest access, ideal for active sessions [check]
Hint: Hot tier = fastest access for active data [check]
Common Mistakes:
4. For a large-scale code repository system supporting millions of users, which branching strategy best balances performance and user flexibility?
medium
Solution
Step 1: Analyze branching strategies for scale
Lightweight branch pointers referencing immutable commits allow fast branch creation and merges without locking, supporting high concurrency.Step 2: Evaluate other options
Centralized locking serializes operations, hurting performance; full branch copies waste storage and complicate merges; synchronous replication adds latency and reduces availability.Final Answer:
Option B -> Option BQuick Check:
Immutable commits + lightweight pointers -> scalable branching [check]
Hint: Immutable commits enable lightweight, scalable branches [check]
Common Mistakes:
5. At 10x traffic scale, which component in a Layer 7 load balancing architecture is most likely to become the bottleneck first, and why?
hard
Solution
Step 1: Identify Layer 7 load balancer workload at scale
Layer 7 load balancers perform CPU-intensive tasks like HTTP header parsing and SSL termination, which scale poorly with traffic.Step 2: Compare with other components
Backend servers can be scaled horizontally; network switches handle packet forwarding efficiently; DNS servers are less impacted by traffic volume.Final Answer:
Option A -> Option AQuick Check:
Layer 7 LB CPU bottleneck due to HTTP parsing and SSL termination [check]
Hint: Layer 7 LB CPU chokes first at high traffic scale [check]
Common Mistakes:
