Practice
Solution
Step 1: Identify BGP route filtering role
BGP route filters and prefix limits on edge routers prevent invalid or excessive route announcements, containing route leaks.Step 2: Eliminate other options
DNS firewalls (A) do not control BGP routing; client-side validation (C) is ineffective for routing control; distributed caches (D) do not enforce routing policies.Final Answer:
Option B -> Option BQuick Check:
BGP route filters contain route leaks at the network edge [check]
Solution
Step 1: Identify rate limiting with burst support
The token bucket algorithm allows tokens to accumulate up to a max bucket size, enabling bursts beyond the steady refill rate.Step 2: Eliminate other options
Fixed window counters cause spikes at window boundaries and don't handle bursts well. Leaky bucket smooths traffic but disallows bursts. Simple queues drop excess requests without rate control.Final Answer:
Option D -> Option DQuick Check:
Token bucket allows bursts by token accumulation [check]
Solution
Step 1: Role of write-ahead log (WAL)
WAL ensures durability by recording changes before commit; without it, recovery cannot guarantee committed data.Step 2: Trace failure on crash without WAL
Database must block new transactions and perform full recovery to avoid inconsistent state, causing availability loss.Final Answer:
Option B -> Option BQuick Check:
No WAL -> recovery blocks new transactions to maintain consistency [check]
Solution
Step 1: Analyze rollback safety and rapid iteration needs
Canary deployment gradually exposes new versions, enabling quick rollback if issues arise, balancing speed and safety.Step 2: Evaluate other strategies
Blue-Green minimizes downtime but requires double infrastructure; Rolling updates lack gradual exposure and rollback granularity; Recreate causes downtime and no gradual rollback.Final Answer:
Option D -> Option DQuick Check:
Canary balances rapid deployment with rollback safety [check]
Solution
Step 1: Role of Kafka in delivery pipeline
Kafka buffers tweets asynchronously for fan-out; unavailability stops new fan-out events.Step 2: Trace failure impact
Tweets still persist in DB, but without Kafka, timeline caches don't get updated, causing stale timelines.Step 3: Eliminate other options
Immediate loss (A) is prevented by DB persistence; ingestion blocking (B) unlikely as writes decouple; synchronous RPC fallback (D) not implemented.Final Answer:
Option A -> Option AQuick Check:
Kafka outage stalls fan-out, causing stale timeline caches [check]
