Practice
1. In a chat system using asynchronous messaging, at step 4 the Delivery Worker reads a message from the queue and attempts to deliver it to the recipient's server. What happens if the recipient's server is temporarily unreachable at this step?
easy
Solution
Step 1: Understand Delivery Worker's role in asynchronous delivery
It reads messages from the queue and attempts delivery without blocking the sender.Step 2: Analyze failure handling at delivery
If recipient is unreachable, the worker retries later, ensuring eventual delivery without blocking upstream.Final Answer:
Option C -> Option CQuick Check:
Delivery Worker retries asynchronously, preserving sender non-blocking [check]
Hint: Delivery Worker retries asynchronously, never blocks sender [check]
Common Mistakes:
2. If the health check module fails to run, what is the exact failure observed in the load balancer's routing behavior?
medium
Solution
Step 1: Understand health check module role
Health checks detect unhealthy servers; without them, no updates occur to remove bad servers.Step 2: Trace routing behavior without health checks
Load balancer routes to all servers indiscriminately, including unhealthy ones, causing client errors.Final Answer:
Option D -> Option DQuick Check:
No health checks -> no removal of unhealthy servers -> client errors [check]
Hint: No health checks means no unhealthy server removal [check]
Common Mistakes:
3. If the Key Management Service (KMS) becomes unavailable, what exactly breaks in the system's encryption-at-rest workflow?
medium
Solution
Step 1: Understand KMS role in key lifecycle
KMS generates and manages encryption keys; if unavailable, new keys can't be created but existing keys cached locally allow decryption.Step 2: Eliminate incorrect failure modes
Encryption doesn't stop immediately; decryption continues with cached keys; system does not fallback to unencrypted storage automatically.Final Answer:
Option A -> Option AQuick Check:
KMS outage blocks new key generation, existing keys still usable [check]
Hint: KMS down -> no new keys, existing keys still decrypt [check]
Common Mistakes:
4. If Zookeeper's session timeout mechanism fails to detect a crashed leader node promptly, what is the most likely failure observed in the leader election process?
medium
Solution
Step 1: Understand session timeout role
Session timeout detects leader failure by ephemeral node removal.Step 2: Failure of timeout detection
If timeout fails, ephemeral node remains, so followers do not start election; no split-brain occurs.Final Answer:
Option B -> Option BQuick Check:
Backup election mechanisms prevent split-brain despite timeout failure [check]
Hint: Session timeout failure -> ephemeral node stays -> no immediate election [check]
Common Mistakes:
5. At 10x scale, which component in a NoSQL cluster handling user sessions fails first and why?
hard
Solution
Step 1: Identify storage node bottlenecks at high write volume
Disk I/O can saturate under 10x writes, limiting storage node throughput.Step 2: Compare other components' scalability
Session management can shard state; load balancers and network switches scale with hardware upgrades.Final Answer:
Option C -> Option CQuick Check:
Disk I/O saturation -> storage node bottleneck at 10x scale [check]
Hint: Disk I/O saturates first at 10x writes [check]
Common Mistakes:
