Practice
1. In the request flow for generating a user's feed, at step 5 the Feed Aggregator receives multiple candidate posts from different microservices. What does the Feed Aggregator do at this step before sending the feed to the user?
easy
Solution
Step 1: Understand Feed Aggregator's role at Step 5
The Feed Aggregator must combine posts from multiple sources, remove duplicates, and rank them to personalize the feed.Step 2: Eliminate incorrect options
It immediately returns the raw posts without filtering or ranking skips ranking, leading to poor UX. It stores all posts in a persistent database before responding to the user delays response unnecessarily. It sends posts to the notification service to alert the user before aggregation misplaces notification logic before feed aggregation.Final Answer:
Option A -> Option AQuick Check:
Feed Aggregator merges and ranks posts -> personalized feed [check]
Hint: Aggregate, dedupe, rank before sending feed [OK]
Common Mistakes:
2. In a multi-CDN request flow, at Step 4 the Global Traffic Manager receives a health check failure from CDN Provider A. What is the immediate action taken by the Global Traffic Manager at this step?
easy
Solution
Step 1: Understand Global Traffic Manager health check handling
Upon receiving a health check failure, the manager marks the CDN as unhealthy to prevent routing new requests to it.Step 2: Eliminate other options
Immediate rerouting (A) may cause abrupt traffic shifts without grace. Origin server notifications (C) are not part of traffic management. Caching responses (D) is unrelated to health check handling.Final Answer:
Option A -> Option AQuick Check:
Health check failure -> mark CDN unhealthy, stop routing new requests [check]
Hint: Health check failure -> mark CDN unhealthy, pause routing [OK]
Common Mistakes:
3. For a video calling system targeting mobile clients with intermittent connectivity, which architecture best balances latency and reliability for media delivery?
medium
Solution
Step 1: Evaluate architectures for mobile intermittent connectivity
Pure peer-to-peer (A) suffers from connectivity issues; MCU (C) adds latency and CPU overhead; HLS (D) is high latency and not real-time.Step 2: SFU (B) relays streams selectively, reducing latency and handling network variability well.
Final Answer:
Option C -> Option CQuick Check:
SFU balances latency and reliability for mobile intermittent networks [check]
Hint: SFU relays selectively, best for mobile intermittent connectivity [check]
Common Mistakes:
4. 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:
5. At 10x scale, which component in the recommendation system is most likely to fail first due to stateful connection limits, and why?
hard
Solution
Step 1: Identify bottleneck at 10x scale
Kafka partitions limit throughput; increasing partitions is complex and causes rebalancing overhead.Step 2: Evaluate other components
Embedding DB (A) can shard by user ID; API servers (C) are typically stateless or use external session stores; embedding service caches (D) can be evicted or sharded. Kafka's partition limit causes producer backpressure and stalls event flow first.Final Answer:
Option A -> Option AQuick Check:
Kafka partition limit -> throughput bottleneck -> backpressure [check]
Hint: Kafka partitions limit throughput first at scale [check]
Common Mistakes:
