Practice
Solution
Step 1: Role of event ingestion pipeline
This pipeline persists raw metric data for downstream alerting components.Step 2: Consequence of pipeline failure
Without persistence, threshold and anomaly detectors get incomplete or missing data, leading to missed alerts or false positives.Final Answer:
Option A -> Option AQuick Check:
Missing data -> detectors miss or misfire alerts [check]
Solution
Step 1: Understand Write-Behind failure impact
Buffered writes are not yet persisted; if cache crashes, writes are lost.Step 2: Analyze system behavior
Database does not block writes; writes are lost, causing inconsistency. Automatic retries require explicit mechanisms.Final Answer:
Option D -> Option DQuick Check:
Write-Behind crash causes lost buffered writes, no DB blocking [check]
Solution
Step 1: Identify purge API role
Purge API triggers immediate invalidation; TTL expirations are independent and continue.Step 2: Analyze failure impact
Without purge API, manual or programmatic immediate invalidations fail; TTL still expires cache eventually; surrogate key invalidations may be separate.Final Answer:
Option C -> Option CQuick Check:
TTL expirations unaffected; purge requests fail causing delayed invalidation [check]
Solution
Step 1: Analyze memory constraints and burst tolerance
Sliding window counters require storing timestamps, which grows with request volume, unsuitable for strict memory limits.Step 2: Fixed window counters use constant memory by counting requests per fixed interval, allowing bursts at window edges but fitting memory constraints
Token and leaky buckets smooth bursts but require token state management and may not tolerate bursts as well.Final Answer:
Option D -> Option DQuick Check:
Fixed window uses constant memory, tolerates bursts, fits strict memory limits [check]
Solution
Step 1: Analyze client connectivity constraints
Mobile clients often have intermittent connectivity and poor support for HTTP/2 streaming.Step 2: Evaluate streaming options
Direct gRPC streaming (A) is unreliable on mobile. WebSockets (C) add complexity and JSON is less efficient. REST long polling (D) is less efficient and higher latency. Unary calls with polling and backoff (B) handle intermittent connectivity gracefully.Final Answer:
Option B -> Option BQuick Check:
Mobile intermittent -> unary calls + polling with backoff [check]
