Practice
1. In the request flow of the location tracking system, at step 4 the WebSocket Server receives a location update from a device. What does the WebSocket Server do immediately after receiving this update?
easy
Solution
Step 1: Trace WebSocket Server action at Step 4
The server must handle high throughput and avoid blocking; synchronous DB writes would cause latency.Step 2: Evaluate alternatives
Broadcasting to all clients wastes bandwidth; caching without persistence risks data loss.Final Answer:
Option C -> Option CQuick Check:
Publishing to Kafka decouples ingestion from processing [check]
Hint: WebSocket Server publishes updates asynchronously to Kafka [check]
Common Mistakes:
2. If the origin server becomes unreachable, what exactly breaks in a CDN using origin pull with TTL caching?
medium
Solution
Step 1: Understand origin pull with TTL caching failure
When origin is unreachable, edge nodes serve cached content until TTL expires.Step 2: Identify behavior after TTL expiry
After TTL expires, edge nodes cannot refresh content and must return errors for new requests.Final Answer:
Option C -> Option CQuick Check:
Origin down + expired TTL -> edge nodes return errors [check]
Hint: Expired TTL + origin down -> errors returned [check]
Common Mistakes:
3. If the distributed priority queue component fails and becomes unavailable, what is the immediate failure mode observed in the task scheduler?
medium
Solution
Step 1: Understand role of distributed priority queue
The queue is the source of truth for pending tasks; if unavailable, new tasks cannot be fetched.Step 2: Analyze failure impact
Without the queue, tasks submitted may be lost if not persisted elsewhere; workers cannot fetch tasks, so blocking (B) is unlikely if queue is down; cron scheduler (D) does not reschedule tasks automatically.Step 3: Evaluate silent drops (C)
Without queue durability, tasks may be lost silently if producers cannot enqueue or retries are not implemented.Final Answer:
Option B -> Option BQuick Check:
Queue failure causes silent task loss without retries [check]
Hint: Queue failure causes silent task loss without retries [check]
Common Mistakes:
4. If the Layer 7 load balancer's HTTP header inspection module fails, what is the most likely failure mode for incoming requests?
medium
Solution
Step 1: Understand failure impact on Layer 7 inspection
If HTTP header inspection fails, the load balancer may fallback to Layer 4 forwarding to maintain availability.Step 2: Eliminate options inconsistent with graceful degradation
Dropping all connections (B) is unlikely; forwarding blindly to default backend (A) loses load distribution; encryption errors (D) unrelated.Final Answer:
Option C -> Option CQuick Check:
Layer 7 failure -> fallback to Layer 4 forwarding without HTTP routing [check]
Hint: Layer 7 fail -> fallback to Layer 4 forwarding [check]
Common Mistakes:
5. At 10x traffic scale, which component in the cache warming architecture is most likely to become the bottleneck first, and why?
hard
Solution
Step 1: Identify coordinator role and scaling limits
The warming coordinator manages global warming state and task assignment, which is hard to shard.Step 2: Compare other components
Database can be scaled with replicas; cache servers scale horizontally; network scales with capacity upgrades.Step 3: Conclude bottleneck
Coordinator's centralized state causes it to fail first at 10x scale.Final Answer:
Option D -> Option DQuick Check:
Centralized coordinator state limits sharding, causing bottleneck [check]
Hint: Central coordinator state limits sharding, causing bottleneck [check]
Common Mistakes:
