Practice
Solution
Step 1: Identify failover requirements
Zero downtime and immediate failover require both sites to be active and data synchronized synchronously to avoid data loss.Step 2: Evaluate options
Active-Active with synchronous replication ensures both data centers serve traffic simultaneously and failover is automatic without data loss.Final Answer:
Option A -> Option AQuick Check:
Active-Active with sync replication -> zero downtime and instant failover [check]
Solution
Step 1: Identify zero downtime requirement
Blue-Green deployment uses two identical environments and switches traffic instantly, ensuring zero downtime.Step 2: Eliminate other options
Canary is gradual, not instant; Feature flags don't switch entire environments; Rolling updates cause partial downtime.Final Answer:
Option D -> Option DQuick Check:
Blue-Green switches environments instantly for zero downtime [check]
Solution
Step 1: Identify driver assignment requirements
Real-time, low-latency matching requires fast spatial queries and event-driven updates.Step 2: Evaluate component suitability
Relational DBs with spatial indexes (A) are too slow for high write/read concurrency; batch jobs (C) introduce unacceptable delay; client-side filtering (D) is inefficient and inconsistent.Final Answer:
Option D -> Option DQuick Check:
Distributed in-memory geospatial index with pub/sub -> real-time, scalable driver assignment [check]
Solution
Step 1: Trace quorum coordinator failure after majority ack
Coordinator crashes before responding, client waits but eventually times out.Step 2: Client retries write causing potential duplicates
Client retries due to timeout; duplicates possible if write was committed.Final Answer:
Option A -> Option AQuick Check:
Timeout triggers retry risking duplicate writes [check]
Solution
Step 1: Evaluate architectures for traffic spike handling
Centralized origin (Centralized origin server cluster with global load balancer) risks overload and latency spikes. Peer-to-peer (Peer-to-peer streaming where clients share video chunks directly) depends on client availability and is complex for global scale. Independent origins without caching (Multiple independent origin servers in each region without caching) lack scalability and increase origin load.Step 2: Assess hierarchical CDN benefits
Regional edge caches (Hierarchical CDN with regional edge caches and origin fallback) absorb traffic spikes locally, reducing origin load and latency, providing scalable and resilient delivery.Final Answer:
Option A -> Option AQuick Check:
Hierarchical CDN absorbs regional spikes with low latency [check]
