Practice
Solution
Step 1: Understand Step 4 role
At Step 4, Canary Controller monitors metrics to decide if rollout continues or aborts.Step 2: Analyze error threshold breach
If error rates exceed threshold, rollback is triggered to prevent faulty version promotion.Final Answer:
Option B -> Option BQuick Check:
Canary Controller triggers rollback on error threshold breach [check]
Solution
Step 1: Identify fallback routing requirements
The fallback must be reliable and decoupled from real-time intent classification to avoid blocking user queries.Step 2: Evaluate component suitability
A message queue decouples processing, enabling asynchronous fallback handling and retry mechanisms. Relational DB synchronous writes (A) cause latency. REST API direct calls (C) block the main flow. In-memory cache (D) lacks durability and reliability.Final Answer:
Option D -> Option DQuick Check:
Message queue decouples and buffers fallback reliably [check]
Solution
Step 1: Evaluate single Redis instance
Single Redis can't handle millions of writes with low latency due to CPU and memory limits.Step 2: Consider partitioning by region
Partitioning reduces load per cluster, allows parallel writes, and merging asynchronously balances latency and consistency.Step 3: Distributed SQL and NoSQL drawbacks
Distributed SQL has high write latency; NoSQL batch ranking delays real-time queries.Final Answer:
Option C -> Option CQuick Check:
Partitioned Redis clusters with async merge balance scale and latency [check]
Solution
Step 1: Role of message broker
Broker decouples sender and receiver, enabling asynchronous delivery and retries.Step 2: Consequence of missing broker
Without it, messages are sent synchronously causing sender blocking; if receiver crashes, messages are lost; encryption (A) unaffected; blocking and loss (C) is exact failure; batch mode (D) not automatic.Final Answer:
Option A -> Option AQuick Check:
Broker removal causes blocking sends and message loss on receiver failure [check]
Solution
Step 1: Analyze routing strategies for cost and latency
Weighted routing that factors both latency and cost optimizes user experience and budget.Step 2: Eliminate other options
Routing only by cost (A) ignores latency, hurting performance. Single largest CDN (C) may not cover all regions well. Random selection (D) ignores both cost and latency, causing unpredictable performance.Final Answer:
Option C -> Option CQuick Check:
Weighted routing balances latency and cost for optimal multi-CDN use [check]
