Practice
Solution
Step 1: Understand LFU eviction criteria
LFU evicts the cache entry with the lowest access frequency to keep frequently used items.Step 2: Analyze eviction candidate state at step 4
The candidate selected for eviction must have the lowest frequency count; frequency is not reset or ignored.Final Answer:
Option D -> Option DQuick Check:
LFU evicts lowest frequency count keys [check]
Solution
Step 1: Understand how tracing handles missing parent IDs
Spans without parent IDs are treated as root spans, starting new trace trees.Step 2: Eliminate other options
Discarding spans loses data unnecessarily; buffering indefinitely risks memory leaks; trace completeness requires all spans, so it's not complete yet.Final Answer:
Option B -> Option BQuick Check:
Missing parent ID -> new root span starts trace segment [check]
Solution
Step 1: Trace retrieval dependency on metadata service
The metadata service provides object location and version info; without it, retrieval cannot resolve where to fetch data.Step 2: Eliminate other options
Stale metadata retrieval is impossible without metadata service; blocking indefinitely is unlikely as client errors occur; silent integrity failures require data access, which fails first.Final Answer:
Option B -> Option BQuick Check:
Metadata service absence causes unresolved object location errors [check]
Solution
Step 1: Understand Kafka's role in decoupling
Kafka buffers messages asynchronously, preventing sender blocking. Without Kafka, Chat Server A must synchronously contact Bob's server.Step 2: Trace failure without Kafka
If Bob's server is slow or crashes, Alice's send blocks or message is lost with no retry, causing poor UX and data loss.Final Answer:
Option A -> Option AQuick Check:
No Kafka -> synchronous send blocks and message loss [check]
Solution
Step 1: Analyze read/write pattern for restaurant discovery
High read volume with frequent writes requires low-latency reads and near-real-time updates.Step 2: Evaluate architectures
Relational DB (A) can't handle query volume with low latency; batch ETL (C) is too stale; client filtering (D) is impractical for large data.Final Answer:
Option B -> Option BQuick Check:
Distributed cache with async sync -> low latency + fresh data [check]
