Practice
Solution
Step 1: Understand Cache Aside flow
On cache miss, application queries DB and updates cache explicitly.Step 2: Eliminate other options
Cache Aside does not auto-load cache (A); it does not return null or stale data (C, D).Final Answer:
Option A -> Option AQuick Check:
Application loads DB and updates cache on miss [check]
Solution
Step 1: Understand GeoDNS behavior at step 3
GeoDNS inspects the user's IP to determine geographic location and returns the IP of the nearest data center accordingly.Step 2: Rule out other options
Forwarding without modification (B) ignores GeoDNS's purpose. Caching regardless of location (C) breaks geographic routing. Health checks (D) are done asynchronously, not per query.Final Answer:
Option A -> Option AQuick Check:
GeoDNS returns location-based IP at query time [check]
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]
Solution
Step 1: Analyze false positive rate constraints
False positive rate depends on number of hash functions and bit array size; multiple hash functions reduce false positives effectively.Step 2: Evaluate memory and insert rate trade-offs
Multiple hash functions with optimized bit array size balance memory use and false positive rate better than single hash or counting filters.Final Answer:
Option A -> Option AQuick Check:
Multiple hashes + sized bit array minimize false positives under memory limits [check]
Solution
Step 1: Analyze memory constraints and burst tolerance
Sliding window counters require storing timestamps, which grows with request volume, unsuitable for strict memory limits.Step 2: Fixed window counters use constant memory by counting requests per fixed interval, allowing bursts at window edges but fitting memory constraints
Token and leaky buckets smooth bursts but require token state management and may not tolerate bursts as well.Final Answer:
Option D -> Option DQuick Check:
Fixed window uses constant memory, tolerates bursts, fits strict memory limits [check]
