Practice
Solution
Step 1: Trace coordinator behavior at Step 4
The coordinator detects conflicting writes from partitions and cannot commit both safely.Step 2: Understand conflict resolution
It marks writes as conflicting and delays commit until partitions heal to avoid inconsistency.Final Answer:
Option A -> Option AQuick Check:
Coordinator defers conflicting writes until partition resolution [check]
Solution
Step 1: Trace backend session cache check
If session cache expired, backend must retrieve fresh session data to maintain stateful context.Step 2: Understand fallback mechanism
Fetching from centralized session store ensures consistent session state before processing request.Final Answer:
Option A -> Option AQuick Check:
Expired cache triggers centralized session fetch -> consistent state [check]
Solution
Step 1: Identify requirement for immediate feedback
Immediate success/failure feedback requires synchronous communication to confirm delivery.Step 2: Evaluate synchronous HTTP calls
Synchronous HTTP with timeouts and retries provides immediate response and error handling.Final Answer:
Option A -> Option AQuick Check:
Synchronous calls provide immediate feedback required by the system [check]
Solution
Step 1: Understand B-Tree root node role
All searches start at the root node, which must be accessed for every lookup, making it a hotspot under high concurrency.Step 2: Analyze scaling impact
At 10x scale, root node contention increases as many threads compete to read/update it, limiting throughput before leaf or internal nodes become bottlenecks.Final Answer:
Option B -> Option BQuick Check:
Root node hotspot causes contention first at scale [check]
Solution
Step 1: Identify stateful bottlenecks at scale
Feed delivery servers maintain WebSocket connections statefully, limiting horizontal scaling and resharding.Step 2: Compare other components
Graph DB (The graph database, because it cannot handle the increased number of connection queries) and model training (The recommendation model training cluster, because training data volume grows exponentially) can be scaled horizontally or asynchronously. Cache layer (The feed cache layer, because cache invalidation becomes too frequent and inconsistent) faces challenges but is less critical than stateful connection limits.Final Answer:
Option C -> Option CQuick Check:
Stateful WebSocket servers -> scaling bottleneck at 10x [check]
