Practice
Solution
Step 1: Trace Delivery Worker decision at Step 4 -- message visibility timeout
If the message is not acknowledged within the visibility timeout, it becomes visible again for redelivery to ensure no message loss.Step 2: Eliminate incorrect options
Immediate deletion (A) risks message loss; archiving without retry (C) breaks availability; blocking (D) reduces throughput and availability.Final Answer:
Option C -> Option CQuick Check:
Visibility timeout expiry -> message re-queued for retry [check]
Solution
Step 1: Understand visibility timeout semantics
Visibility timeout hides the message during processing; if not acknowledged, it reappears for redelivery.Step 2: Analyze options
Immediate deletion (A) risks data loss; archiving without retry (C) prevents recovery; dead-letter queue (D) is for failed retries, not timeout expiry.Final Answer:
Option D -> Option DQuick Check:
Visibility timeout expiry -> message reappears for retry [check]
Solution
Step 1: Identify the role of the distributed log
Kafka partitions by user ID to preserve ordering and durability, decoupling ingestion from delivery.Step 2: Eliminate other options
Relational DB triggers (A) cause synchronous blocking and don't scale; Redis (C) lacks durability and persistence; synchronous RPC (D) blocks on follower availability.Final Answer:
Option B -> Option BQuick Check:
Kafka partitions ensure durable, ordered, asynchronous fan-out [check]
Solution
Step 1: Understand Query Coordinator's merge logic
The coordinator merges partial results from all shards; if a shard times out, its data is excluded to avoid blocking the entire query.Step 2: Eliminate other options
Returning an error breaks availability; marking missing facets as zero is inaccurate; synchronous retries would increase latency.Final Answer:
Option A -> Option AQuick Check:
Timeout shard data excluded -> partial but available results [check]
Solution
Step 1: Identify component capabilities
Load Balancers typically operate at transport layer and may support SSL termination but lack detailed HTTP header manipulation; API Gateways add overhead and are less optimized for raw throughput; DNS load balancing does not handle SSL termination.Step 2: Match requirement to component
Reverse Proxy operates at HTTP layer, supports SSL termination and header manipulation efficiently, suitable for high throughput.Final Answer:
Option A -> Option AQuick Check:
Reverse Proxy = HTTP layer control + SSL termination [check]
