Practice
Solution
Step 1: Trace edge node cache miss behavior at Step 4
If content is missing, the edge node must fetch it from the origin server.Step 2: Eliminate other options
Returning 404 is incorrect because content may exist; redirecting to another edge node is inefficient; serving stale content violates freshness guarantees.Final Answer:
Option A -> Option AQuick Check:
Cache miss -> edge node fetches from origin server [check]
Solution
Step 1: Identify rate limiting with burst support
The token bucket algorithm allows tokens to accumulate up to a max bucket size, enabling bursts beyond the steady refill rate.Step 2: Eliminate other options
Fixed window counters cause spikes at window boundaries and don't handle bursts well. Leaky bucket smooths traffic but disallows bursts. Simple queues drop excess requests without rate control.Final Answer:
Option D -> Option DQuick Check:
Token bucket allows bursts by token accumulation [check]
Solution
Step 1: Trace failure impact of message queue outage
The queue decouples upload and transcoding. Without it, upload service cannot enqueue transcoding jobs. Uploads succeed but transcoding workers receive no tasks, so no processed videos are generated. Blocking upload (B) is incorrect because upload is asynchronous. Duplicate transcoding (A) is unrelated. View count errors (D) happen downstream, not due to queue failure.Step 2: Confirm exact failure mode
Uploads accepted but stuck before transcoding is the precise failure.Final Answer:
Option A -> Option AQuick Check:
Queue failure causes transcoding jobs to be lost, no processed videos [check]
Solution
Step 1: Understand leak timer role
The leak timer controls the steady draining of the bucket, enforcing rate limiting.Step 2: Trace failure impact
If the timer stops, the bucket never leaks, so capacity is never freed, but since no leak occurs, requests bypass rate limiting and are processed immediately.Final Answer:
Option B -> Option BQuick Check:
Leak timer stops -> no rate limiting, immediate processing [check]
Solution
Step 1: Identify component capabilities
Load Balancers typically operate at transport layer and may support SSL termination but lack detailed HTTP header manipulation; API Gateways add overhead and are less optimized for raw throughput; DNS load balancing does not handle SSL termination.Step 2: Match requirement to component
Reverse Proxy operates at HTTP layer, supports SSL termination and header manipulation efficiently, suitable for high throughput.Final Answer:
Option A -> Option AQuick Check:
Reverse Proxy = HTTP layer control + SSL termination [check]
