Practice
Solution
Step 1: Trace Delivery Worker decision at Step 4 -- follower cache TTL expired
If the cache is expired, the Delivery Worker must fetch fresh data to ensure the follower receives the latest feed snapshot.Step 2: Evaluate other options
Skipping (A) causes missed updates; retrying without cache update (C) delays delivery; sending stale data (D) violates freshness guarantees.Final Answer:
Option A -> Option AQuick Check:
Expired cache triggers DB fetch for fresh feed [check]
Solution
Step 1: Identify proxy role in hiding client IPs
A forward proxy acts on behalf of clients, masking their IP addresses from external servers.Step 2: Eliminate other options
Reverse proxies hide backend servers, not clients; load balancers distribute load but don't hide clients; DNS proxies only resolve names.Final Answer:
Option D -> Option DQuick Check:
Forward proxy hides client IPs from external servers [check]
Solution
Step 1: Evaluate architectures for latency and availability
Monolithic (A) and single server batch reload (C) block requests during reload, increasing latency. Client-side loading (D) adds complexity and inconsistent versions.Step 2: Understand blue-green deployment benefits
Blue-green (B) runs two clusters; new model loads on inactive cluster, then traffic switches atomically, ensuring zero downtime and minimal latency impact.Final Answer:
Option C -> Option CQuick Check:
Blue-green enables atomic switch with zero downtime [check]
Solution
Step 1: Analyze write scalability and read patterns
High write throughput and millions of users require scalable writes and efficient feed reads.Step 2: Evaluate referencing with denormalization
Referencing separates concerns; denormalizing popular posts into feeds optimizes read performance without large documents.Final Answer:
Option D -> Option DQuick Check:
Referencing plus denormalization balances write scale and read speed [check]
Solution
Step 1: Identify stateful bottlenecks at scale
Personalization retraining (Personalization service because recommendation model retraining becomes too slow) can be scaled horizontally with distributed training. Origin storage (Origin servers because storage I/O bandwidth saturates under high request volume) can be scaled with sharding and CDN caching. Client devices (Client devices because decoding multiple bitrate streams consumes excessive CPU) are outside server control.Step 2: Analyze CDN edge server scaling challenges
WebSocket connections for adaptive streaming are stateful and bound to specific edge servers, limiting horizontal scaling and resharding, causing edge server overload at 10x scale.Final Answer:
Option C -> Option CQuick Check:
Stateful WebSocket limits CDN edge server scalability [check]
