Practice
Solution
Step 1: Identify the role of consistent hashing
Consistent hashing distributes keys to nodes such that when nodes join or leave, only a small subset of keys need reassignment, minimizing reshuffling.Step 2: Eliminate other components
Vector clocks handle version conflicts but do not distribute keys. Gossip protocol manages cluster membership but not key distribution. Quorum replication ensures durability but does not affect key assignment.Final Answer:
Option C -> Option CQuick Check:
Consistent hashing minimizes key remapping on node changes [check]
Solution
Step 1: Identify deployment strategies for safe model updates
Batch inference (C) is offline and adds latency, so it doesn't support real-time rollout. Feature store (D) optimizes input features but doesn't handle rollout or rollback. A/B testing (A) splits live traffic, risking user experience if the new model is faulty.Step 2: Understand shadow mode benefits
Shadow mode (B) runs new models in parallel on live data without affecting production responses, enabling validation and instant rollback if issues arise.Final Answer:
Option A -> Option AQuick Check:
Shadow mode runs new models safely alongside production [check]
Solution
Step 1: Understand Delivery Worker behavior on expired presence TTL
If TTL expired, recipient is considered offline; message must be queued for later delivery, not marked delivered (A and D are incorrect). Retrying indefinitely (C) wastes resources.Step 2: Confirm queuing for offline delivery
Delivery Worker queues message for offline delivery and waits for recipient presence refresh.Final Answer:
Option B -> Option BQuick Check:
Expired TTL -> queue message, no delivery mark [check]
Solution
Step 1: Analyze warming strategies for unpredictable hot keys
Hybrid approach uses historical and real-time data to adaptively warm relevant keys.Step 2: Eliminate extremes
Preloading all keys wastes resources; ignoring recent changes misses new hot keys; lazy loading causes latency.Final Answer:
Option A -> Option AQuick Check:
Hybrid warming adapts to traffic changes balancing freshness and cost [check]
Solution
Step 1: Understand Market Data Feed failure impact
When Market Data Feed crashes, it stops pushing updates; clients detect connection loss and receive error events triggering reconnection.Step 2: Eliminate other options
Clients receive stale prices indefinitely with no indication of failure is wrong because clients detect connection loss; Clients receive partial updates but with delayed timestamps causing confusion is wrong because partial updates don't occur without feed; Clients continue receiving cached data from the Matching Engine without updates is wrong because Matching Engine doesn't serve cached market data.Final Answer:
Option C -> Option CQuick Check:
Feed crash -> clients get error + reconnect attempts [check]
