Practice
Solution
Step 1: Trace Delivery Worker decision at Step 4 -- follower cache TTL expired
If the cache is expired, the Delivery Worker must fetch fresh data to ensure the follower receives the latest feed snapshot.Step 2: Evaluate other options
Skipping (A) causes missed updates; retrying without cache update (C) delays delivery; sending stale data (D) violates freshness guarantees.Final Answer:
Option A -> Option AQuick Check:
Expired cache triggers DB fetch for fresh feed [check]
Solution
Step 1: Understand traffic variability
Clients open varying numbers of connections, so servers can become unevenly loaded if requests are assigned blindly.Step 2: Evaluate load balancing algorithms
Round Robin ignores current load, IP Hash pins clients to servers (may cause imbalance), Weighted Round Robin uses static weights ignoring dynamic load. Least Connections dynamically balances based on active connections.Final Answer:
Option D -> Option DQuick Check:
Least Connections adapts to real-time load, balancing uneven client connections [check]
Solution
Step 1: Understand TTL behavior in NoSQL key-value stores
TTL expiration means the key is deleted or inaccessible, so session data is invalid.Step 2: Trace Session Manager's response to expired TTL
Session Manager cannot extend TTL automatically; queuing for manual review is a fallback for expired sessions.Final Answer:
Option A -> Option AQuick Check:
Expired TTL -> session queued for review [check]
Solution
Step 1: Understand role of seat lock expiration
Expiration releases seats if payment or booking is abandoned, preventing indefinite holds.Step 2: Trace failure without expiration
Locks never expire, so seats remain reserved even if users abandon payment, reducing available seats and causing booking stalls.Final Answer:
Option B -> Option BQuick Check:
No TTL -> stale locks -> seats unavailable indefinitely [check]
Solution
Step 1: Identify stateful bottleneck
The saga coordinator holds per-saga state in memory, limiting horizontal scaling and sharding.Step 2: Compare other components
Message brokers scale with partitions; DB scales with sharding; relay is stateless and network-bound.Final Answer:
Option A -> Option AQuick Check:
Saga coordinator's in-memory state limits scaling first [check]
