Practice
Solution
Step 1: Trace Cache Loader timeout behavior
On timeout, Cache Loader skips warming that key to avoid blocking the entire warming process.Step 2: Eliminate retry and fallback options
Indefinite retries block warming; fallback cache is not part of warming design; null writes risk stale data.Final Answer:
Option C -> Option CQuick Check:
Timeout causes skipping key warming to maintain overall progress [check]
Solution
Step 1: Identify low-latency retrieval need
Relational DBs (A) have high query latency for vector similarity; distributed file systems (C) are for storage, not fast retrieval; message queues (D) buffer requests but don't serve retrieval.Step 2: Recognize vector search role
ANN-based in-memory vector search engines (B) provide fast approximate nearest neighbor lookups, ideal for sub-100ms latency code snippet retrieval.Final Answer:
Option B -> Option BQuick Check:
ANN vector search enables fast similarity queries [check]
Solution
Step 1: Trace Download Manager behavior at Step 4
It checks local cache to avoid redundant downloads and save bandwidth.Step 2: Determine action on cache hit
On cache hit, it skips network fetch and marks segment ready for playback. Re-downloading (A) wastes resources; deleting (C) is unnecessary; background validation (D) is not immediate playback behavior.Final Answer:
Option C -> Option CQuick Check:
Cache hit -> skip fetch, mark ready [check]
Solution
Step 1: Understand subscriber offset semantics
The subscriber offset tracks the last consumed message. If behind, the Delivery Worker must deliver pending messages to catch up.Step 2: Delivery Worker behavior
It delivers the message at the subscriber's offset and then updates the offset to the next message. Skipping or deleting messages (Options A and C) breaks delivery guarantees. Blocking (The Delivery Worker blocks until the subscriber catches up) is unnecessary and stalls the system.Final Answer:
Option C -> Option CQuick Check:
Delivery Worker delivers and advances subscriber offset [check]
Solution
Step 1: Role of message queue in gRPC server
The queue buffers messages for slow or disconnected clients, enabling retries and flow control.Step 2: Effect of removing the queue
Without the queue, messages sent to slow/disconnected clients are dropped immediately, causing message loss without retries.Final Answer:
Option C -> Option CQuick Check:
No queue -> message loss on slow/disconnected clients [check]
