Practice
Solution
Step 1: Identify the role of Edge CDN Nodes
Edge CDN nodes cache video segments near users to reduce latency and offload origin servers.Step 2: Eliminate other options
Origin servers handle storage but not low-latency delivery; load balancers distribute requests but don't cache content; databases store metadata, not video segments.Final Answer:
Option D -> Option DQuick Check:
Edge CDN caches segments closest to users for low latency [check]
Solution
Step 1: Identify requirements for sortable, distributed unique IDs
Centralized DB auto-increment (A) is a bottleneck and not distributed; UUIDv4 (C) is unique but not sortable; timestamp+node ID without collision prevention (D) risks duplicates.Step 2: Recognize ULID/KSUID properties
ULID and KSUID provide time-sortable, collision-resistant IDs generated independently on nodes.Final Answer:
Option A -> Option AQuick Check:
ULID/KSUID generate sortable unique IDs without coordination [check]
Solution
Step 1: Evaluate Kafka transactions for mobile clients
Kafka's transactional exactly-once requires stable connections and complex coordination, unsuitable for mobile clients with intermittent connectivity.Step 2: Assess idempotent consumers with client deduplication
Idempotent consumers combined with client-side deduplication handle retries and duplicates gracefully, fitting mobile constraints and ensuring exactly-once delivery.Final Answer:
Option D -> Option DQuick Check:
Idempotency + client deduplication -> practical exactly-once for mobile [check]
Solution
Step 1: Analyze artifact registry scaling challenges
At 10x scale, artifact volume grows massively, increasing storage needs and retrieval latency, stressing the registry's throughput and storage backend.Step 2: Compare other components
Test runner scales with parallelism; orchestrator is stateless or sharded; rollback manager writes are less frequent and can be batched.Final Answer:
Option A -> Option AQuick Check:
Artifact registry storage and latency bottleneck at scale [check]
Solution
Step 1: Analyze statefulness and scalability
Trie servers hold large in-memory state and are difficult to shard due to pointer-based node structures, limiting horizontal scaling.Step 2: Compare other components
Elasticsearch scales horizontally with shards; prefix hash map can be partitioned or replaced; client UI is less likely the first bottleneck at backend scale.Final Answer:
Option A -> Option AQuick Check:
Trie statefulness limits sharding -> bottleneck at scale [check]
