Practice
Solution
Step 1: Trace CDN cache miss handling at Step 4
When the asset is missing in the edge cache, the CDN must retrieve it from the origin server.Step 2: Confirm CDN forwards request to origin server for fresh content
The CDN edge server acts as a proxy, fetching the asset from origin to serve the client.Final Answer:
Option D -> Option DQuick Check:
Cache miss triggers origin fetch, not error or redirect [check]
Solution
Step 1: Analyze requirement
Fast traversal with frequent updates demands low-latency graph traversals and quick writes.Step 2: Evaluate architectures
Relational DBs have high JOIN cost; batch pipelines add latency; key-value stores lack flexible traversal.Step 3: Choose architecture
In-memory graph DBs with eventual consistency balance fast traversals and update throughput.Final Answer:
Option D -> Option DQuick Check:
In-memory graph DBs optimize traversal speed and handle frequent updates well [check]
Solution
Step 1: Understand role of token assignment metadata
Token metadata maps virtual nodes to physical nodes; losing it breaks new node integration.Step 2: Trace failure impact
Existing nodes continue serving keys assigned before loss; new nodes cannot be assigned tokens properly.Final Answer:
Option A -> Option AQuick Check:
Token metadata loss blocks new node assignment; existing nodes unaffected [check]
Solution
Step 1: Analyze write frequency and freshness needs
High-read, low-write favors lazy loading and invalidation to avoid cache update overhead.Step 2: Evaluate caching strategies
Write-through adds write latency; write-back risks stale data; cache-aside balances freshness and performance.Final Answer:
Option D -> Option DQuick Check:
Cache-aside suits high-read, low-write with freshness [check]
Solution
Step 1: Analyze query and write patterns
Queries filter by device and time ranges; writes are high volume per device.Step 2: Evaluate partitioning strategies
Partitioning by device ID localizes writes and queries; clustering by timestamp supports efficient range scans. Single partition key causes hotspots; partitioning by timestamp scatters device data, hurting queries; relational DBs can't handle high write scale.Final Answer:
Option B -> Option BQuick Check:
Partition by device ID + cluster by timestamp -> balanced writes and efficient queries [check]
