Practice
Solution
Step 1: Trace Delivery Worker decision at Step 4 -- Bob's presence TTL
If the presence TTL expired, the system assumes the user is offline for push and falls back to alternative channels like SMS or email.Step 2: Eliminate other options
Immediate retry (A) wastes resources if device is offline; marking as delivered (C) loses notification; re-queuing (D) causes infinite retry loops.Final Answer:
Option B -> Option BQuick Check:
Expired presence TTL -> fallback to SMS/email [check]
Solution
Step 1: Understand Worker Node behavior at Step 4
The Worker Node must respect the scheduled execution time; executing early (A) violates correctness; re-queuing (B) risks duplicate tasks; skipping (C) ignores the task indefinitely.Step 2: Identify failure handling
Marking the task as failed (D) triggers retry or alert mechanisms, ensuring no premature execution and visibility into scheduling issues.Final Answer:
Option A -> Option AQuick Check:
Premature tasks are failed to prevent early execution [check]
Solution
Step 1: Understand recovery trade-offs
Immediate re-advertisement (A) risks routing loops and instability; static routes (C) don't scale globally; client retries (D) don't fix routing issues.Step 2: Evaluate gradual reintroduction
Route flap damping (B) prevents rapid route changes causing instability, balancing speed and safety during recovery.Final Answer:
Option A -> Option AQuick Check:
Route flap damping prevents loops during gradual route restoration [check]
Solution
Step 1: Analyze access and cost requirements
Data is infrequently accessed but needs retrieval within hours, so cold storage alone is too slow.Step 2: Evaluate tiering benefits
Warm storage offers moderate cost and latency; cold storage reduces cost further. Tiering balances cost and retrieval time.Final Answer:
Option A -> Option AQuick Check:
Warm + cold tiering balances cost and retrieval latency [check]
Solution
Step 1: Understand failure handling in sequence number loss
Some implementations fallback to UUID v4 to avoid duplicates when sequence state is lost.Step 2: Evaluate other options
Blocking causes latency; duplicate IDs cause collisions; resetting timestamp breaks ordering guarantees.Final Answer:
Option D -> Option DQuick Check:
Fallback to UUID v4 avoids duplicates despite losing ordering [check]
