Practice
Solution
Step 1: Trace request router behavior on shard failure
Retrying the same shard (The router retries the same shard until it recovers before forwarding the request) blocks requests; returning error (The router returns an error immediately to the client indicating shard unavailability) reduces availability; next clockwise shard (The router uses the next clockwise shard on the hash ring as a fallback for the key) is correct only if the ring is intact and shard failure is handled by virtual nodes.Step 2: Understand fallback hashing
Rehashing with a different function (The router hashes the key again with a different hash function to find another shard) is a common fallback to find an alternate shard when the primary is down, ensuring availability without blocking or errors.Final Answer:
Option D -> Option DQuick Check:
Fallback hashing finds alternate shard on failure [check]
Solution
Step 1: Identify NAT traversal role
STUN/TURN servers help clients discover public IPs and relay media if direct peer-to-peer fails.Step 2: Eliminate other components
Media Server relays media but is not primarily for NAT traversal; Signaling Server handles session negotiation, not media encoding; WebRTC client manages connection but relies on STUN/TURN for NAT traversal.Final Answer:
Option A -> Option AQuick Check:
STUN/TURN enable NAT traversal, essential for peer connectivity [check]
Solution
Step 1: Understand Kafka's offset commit behavior
Kafka retains messages until consumers commit offsets. If the worker crashes before committing, messages remain available for reprocessing.Step 2: Analyze crash timing
Since the worker crashed before writing summaries and committing offsets, raw events remain in Kafka and will be reprocessed after restart.Final Answer:
Option A -> Option AQuick Check:
Kafka retains uncommitted messages for reprocessing [check]
Solution
Step 1: Understand retry queue role
The retry queue buffers failed deliveries to preserve order by retrying later.Step 2: Trace failure without retry queue
Without it, subsequent events may be sent immediately, causing out-of-order delivery.Final Answer:
Option D -> Option DQuick Check:
No retry queue -> out-of-order delivery possible [check]
Solution
Step 1: Identify bucket pattern scaling challenges
Bucket pattern creates many bucket documents requiring precise routing by mongos.Step 2: Mongos metadata overhead
Mongos maintains routing metadata and must route each write to correct shard and bucket, increasing load at scale.Step 3: Compare other components
Shard servers handle writes but document splits are less frequent; network saturates later; app server bottleneck unlikely.Final Answer:
Option B -> Option BQuick Check:
Mongos routing metadata load grows fastest at 10x scale [check]
