Practice
Solution
Step 1: Trace cache miss handling at Step 4
On a miss, the node does not return immediately; it attempts to find the key elsewhere.Step 2: Broadcast vs forwarding
Forwarding to next node breaks consistent hashing guarantees; fetching from backing store happens after confirming absence in cache cluster.Final Answer:
Option C -> Option CQuick Check:
Cache node broadcasts to find key before fallback [check]
Solution
Step 1: Trace Delivery Worker behavior at Step 4
The Delivery Worker reads fan-out events from Kafka and attempts delivery. If the follower is offline, immediate retry (A) would block and reduce throughput. Dropping messages (C) causes data loss. Pushing directly to device cache (D) is impossible if offline.Step 2: Understand retry mechanism
The system marks the message as sent but not delivered, queues it for retry later when the follower reconnects, ensuring eventual delivery without blocking.Final Answer:
Option A -> Option AQuick Check:
Offline followers cause queued retries, not immediate blocking [check]
Solution
Step 1: Identify the role of conflict resolution in collaborative editing
Concurrent edits from multiple users require a mechanism to merge changes without overwriting or losing data. Simple serialization or ordering is insufficient due to network delays and offline edits.Step 2: Understand why OT or CRDT is needed
Operational Transformation (OT) and Conflict-free Replicated Data Types (CRDTs) are designed to transform or merge concurrent operations in real-time, ensuring eventual consistency without central locking.Final Answer:
Option B -> Option BQuick Check:
OT/CRDT engines merge concurrent edits without locking or strict ordering [check]
Solution
Step 1: Role of offset commit in consumer progress tracking
Offset commits mark messages as processed; without them, consumers reprocess the same messages repeatedly.Step 2: Consequence of missing offset commits
Consumers cannot advance their read position, causing duplicate deliveries; messages are not lost or reordered inherently.Final Answer:
Option C -> Option CQuick Check:
No offset commit -> infinite duplicates, no progress [check]
Solution
Step 1: Analyze component scaling characteristics
Backend servers (The backend servers, because they cannot horizontally scale beyond a fixed number) typically scale horizontally. DNS servers (The DNS server, due to increased domain resolution requests) are highly distributed and cacheable. Load balancers (The load balancer, because it maintains stateful TCP connections and cannot shard easily) can be scaled with multiple instances and sharding.Step 2: Identify database bottleneck
Databases (The database, due to increased query volume and connection limits) often face connection limits and query volume bottlenecks first at large scale, requiring sharding or caching to scale further.Step 3: Confirm failure mechanism
Without proper scaling, the database becomes the first component to fail under 10x load due to resource exhaustion.Final Answer:
Option D -> Option DQuick Check:
Database connection limits cause first failure at 10x scale [check]
