Practice
Solution
Step 1: Understand Delivery Worker role at Step 4
It checks recipient online status cache to decide delivery method.Step 2: Behavior on expired cache entry
Expired cache means unknown status; system falls back to persistent queue to ensure message is not lost.Final Answer:
Option A -> Option AQuick Check:
Expired cache triggers fallback to persistent queue [check]
Solution
Step 1: Trace offset commit role at Step 4
Offset commit marks messages as processed; if not committed, Kafka considers them unprocessed.Step 2: Understand crash impact
If consumer crashes before commit, on restart it reprocesses messages from last committed offset, causing duplicates.Final Answer:
Option A -> Option AQuick Check:
Uncommitted offsets cause message reprocessing [check]
Solution
Step 1: Understand Kafka's role in event streaming
Kafka streams photo upload events to downstream processors like metadata extraction and feed generation.Step 2: Trace failure impact
If Kafka is down, photo uploads still succeed because upload service writes to storage directly. Feed generation depends on Kafka events for stories update; without Kafka, stories updates stop, but feed generation for photos continues from DB. Metadata extraction is delayed but not necessarily indefinite. Notifications are handled separately.Final Answer:
Option B -> Option BQuick Check:
Kafka outage stops stories update but feed photo generation continues [check]
Solution
Step 1: Compare ULID and KSUID timestamp and encoding
ULID uses 48-bit timestamp; KSUID uses 32-bit timestamp but encodes IDs in base62, making KSUIDs more compact and supporting a larger time range.Step 2: Evaluate encoding and uniqueness claims
ULID uses base32 (less compact); KSUID does not embed UUIDv4 (D is false); ULID's timestamp is longer but KSUID's design suits global scale better.Final Answer:
Option A -> Option AQuick Check:
KSUID's 32-bit timestamp + base62 encoding -> compact, sortable IDs [check]
Solution
Step 1: Analyze scaling challenges
Health monitoring (The health monitoring system, due to increased frequency of health checks overwhelming it) scales with checks but can be optimized; control plane (The GSLB control plane, as it struggles to process and update routing decisions for all data centers in real-time) is distributed and designed for scale; ingress routers (The data center ingress routers, since network bandwidth scales linearly and saturates quickly) scale with network upgrades.Step 2: Identify DNS bottleneck
DNS servers face query volume spikes and caching TTLs limit failover responsiveness, making them the first to fail under 10x load.Final Answer:
Option D -> Option DQuick Check:
DNS query volume and caching limits cause first failure at scale [check]
