Practice
1. In a Count-Min Sketch system, at step 3 the Update Worker hashes an incoming event key with the second hash function. What happens to the corresponding counter in the sketch at this step?
easy
Solution
Step 1: Understand Update Worker hashing
Each hash function maps the event key to an index in the sketch array.Step 2: Increment counter at hashed index
The Count-Min Sketch increments the counter at that index to record the event occurrence.Final Answer:
Option B -> Option BQuick Check:
Update increments counters at hash indices to track frequencies [check]
Hint: Update increments counters at hash indices, never resets or decrements [check]
Common Mistakes:
2. In the adaptive streaming request flow, at step 4 the CDN edge server checks the client's current bandwidth estimate. What does the CDN do if the bandwidth is below the threshold for HD quality?
easy
Solution
Step 1: Understand CDN adaptive streaming role at step 4
The CDN edge server uses bandwidth info to decide streaming quality dynamically.Step 2: Analyze adaptive streaming behavior on low bandwidth
Switching immediately to lowest bitrate (It immediately switches the stream to the lowest bitrate available without buffering) can cause playback stalls. Requesting new manifest (It requests the origin server to send a new manifest with lower bitrate options) is unnecessary at CDN edge. Serving lower bitrate chunk from cache (It serves the next video chunk at a lower bitrate from its cache if available) requires prior caching. The CDN typically pauses streaming to allow client buffering (It pauses the stream and waits for the client to buffer more data) to avoid playback interruption.Final Answer:
Option B -> Option BQuick Check:
CDN pauses streaming to buffer on low bandwidth [check]
Hint: Pause to buffer before switching bitrate [check]
Common Mistakes:
3. If the authentication service in a client-server system becomes unavailable, what is the exact failure mode experienced by clients attempting to log in?
medium
Solution
Step 1: Understand authentication dependency
The server relies on the authentication service for validating credentials; if unavailable, requests cannot be processed.Step 2: Trace failure impact
Without authentication service, login requests hang waiting for response until timeout, then fail with no automatic retry or fallback.Final Answer:
Option C -> Option CQuick Check:
Unavailable auth service causes login hang then failure [check]
Hint: No auth service -> login hangs then fails, no fallback [check]
Common Mistakes:
4. Without the retry queue component in the payment gateway's webhook delivery system, what exact failure occurs when a merchant's endpoint is temporarily down?
medium
Solution
Step 1: Understand retry queue role
The retry queue buffers failed webhook notifications for asynchronous retries, ensuring eventual delivery.Step 2: Consequence of missing retry queue
Without it, failed webhooks are dropped or lost, causing permanent notification loss and inconsistent merchant state.Final Answer:
Option D -> Option DQuick Check:
Missing retry queue -> permanent webhook loss on failure [check]
Hint: Retry queue prevents permanent webhook loss [check]
Common Mistakes:
5. At 10x scale, which component in a consistent hashing system with virtual nodes is most likely to fail first and why?
hard
Solution
Step 1: Identify scaling bottlenecks
Physical nodes scale horizontally; network and hash function scale well with optimizations.Step 2: Analyze token metadata service
Managing many virtual nodes and frequent node changes increases metadata complexity and update frequency, causing bottlenecks.Final Answer:
Option B -> Option BQuick Check:
Token metadata service complexity grows fastest, causing first failure [check]
Hint: Token metadata complexity grows fastest at scale [check]
Common Mistakes:
