Practice
Solution
Step 1: Identify replication strategy matching majority confirmation
Synchronous replication with quorum writes requires majority replicas to acknowledge before success.Step 2: Eliminate asynchronous and single-leader without ack
Asynchronous replication and single-leader without acknowledgments do not guarantee majority confirmation before success.Final Answer:
Option C -> Option CQuick Check:
Quorum writes ensure majority ack before success [check]
Solution
Step 1: Identify low-latency requirement for online inference
Online inference demands sub-millisecond feature retrieval, which batch systems or heavy SQL queries cannot provide efficiently.Step 2: Evaluate component suitability
Distributed file systems and batch processing are optimized for throughput, not low latency. Relational DBs struggle with scale and latency at 100K QPS. In-memory key-value stores like Redis provide fast, scalable lookups ideal for this use case.Final Answer:
Option C -> Option CQuick Check:
In-memory key-value stores enable low-latency feature serving [check]
Solution
Step 1: Identify the need for asynchronous buffering
Millions of concurrent updates require decoupling ingestion from processing to avoid bottlenecks.Step 2: Evaluate component suitability
Relational DB (A) causes high contention and latency; Redis (C) is volatile and not durable; synchronous API calls (D) block and reduce throughput. Kafka (B) provides durable, ordered, and scalable buffering.Final Answer:
Option D -> Option DQuick Check:
Kafka buffers high-throughput writes asynchronously with durability [check]
Solution
Step 1: Understand role of commit metadata DB
Commit metadata DB stores branch pointers; without it, server cannot persist new branches.Step 2: Trace branch creation failure
Client may create branch locally, but server cannot persist it, so branch is effectively lost or inconsistent.Step 3: Eliminate other options
Queuing without notification hides failure; immediate error is possible but not typical if client allows local ops; marking unverified branches requires metadata DB access.Final Answer:
Option D -> Option DQuick Check:
Metadata DB down -> branch created locally but not persisted [check]
Solution
Step 1: Evaluate architectures for mobile intermittent connectivity
Pure peer-to-peer (A) suffers from connectivity issues; MCU (C) adds latency and CPU overhead; HLS (D) is high latency and not real-time.Step 2: SFU (B) relays streams selectively, reducing latency and handling network variability well.
Final Answer:
Option C -> Option CQuick Check:
SFU balances latency and reliability for mobile intermittent networks [check]
