Practice
Solution
Step 1: Identify automatic expiration mechanism
TTL automatically expires cached content after a set time without manual action.Step 2: Eliminate manual and selective invalidation
Manual purge requires human action; surrogate keys target groups, not time-based expiry; client-side headers don't enforce server cache expiry.Final Answer:
Option A -> Option AQuick Check:
TTL auto-expires stale cache entries without manual purge [check]
Solution
Step 1: Understand Retriever fallback logic
Retriever cannot query vector index if unavailable; raw code files (A) are not indexed for fast retrieval; indefinite retries (C) would block latency budget; empty results (B) degrade quality but not typical fallback.Step 2: Recognize fallback to relational DB
System uses relational DB fallback (D) with keyword matching to maintain some retrieval capability under vector index failure.Final Answer:
Option A -> Option AQuick Check:
Fallback to keyword DB preserves retrieval under vector index failure [check]
Solution
Step 1: Identify the role of the local DNS resolver
The local DNS resolver (stub resolver) on the user's machine caches recent DNS lookups to avoid repeated network queries for the same domain within a short time.Step 2: Eliminate other options
Authoritative DNS servers provide domain data but do not cache queries for clients. Root servers do not cache all mappings globally and are rarely queried directly. Recursive DNS servers do cache results to improve performance, so The recursive DNS server, which never caches results and always queries authoritative servers is incorrect.Final Answer:
Option B -> Option BQuick Check:
Local resolver caches to reduce network calls [check]
Solution
Step 1: Identify ingestion requirements
High throughput and low latency ingestion require a scalable, partitioned system that can handle parallel writes.Step 2: Evaluate components
Relational DBs (A) can't handle this write volume with low latency; single-threaded queues (C) limit throughput; batch systems (D) increase latency.Final Answer:
Option C -> Option CQuick Check:
Kafka partitions enable parallel ingestion with low latency [check]
Solution
Step 1: Identify stateful components that limit horizontal scaling
The metrics aggregation service maintains counters and error budget state, which are hard to shard without losing accuracy.Step 2: Evaluate other components' scalability
Dashboards (A) are client-side and less critical; Kafka (C) scales well with partitions; alerting (D) can batch and scale horizontally.Final Answer:
Option A -> Option AQuick Check:
Stateful aggregation -> sharding limits -> bottleneck at scale [check]
