Practice
Solution
Step 1: Identify spatial indexing needs
Relational DBs with lat/lon indexes (Use a relational database with latitude and longitude columns and perform range queries with indexes) do not scale well for large radius queries and millions of points due to expensive range scans.Step 2: Evaluate Geohash suitability
Geohash (Use a Geohash-based spatial index to bucket locations into hierarchical grids) encodes locations into hierarchical grids enabling efficient prefix queries for nearby searches, making it ideal for large-scale spatial indexing.Final Answer:
Option B -> Option BQuick Check:
Geohash buckets locations into grids for fast proximity queries [check]
Solution
Step 1: Calculate daily storage
Multiply 500,000 objects by 2MB each = 1,000,000 MB = 1TB per day.Step 2: Eliminate other options
500GB per day, assuming 1MB average object size instead uses wrong object size; 2TB per day, assuming 4MB average object size instead doubles size incorrectly; Cannot estimate without knowing retention period ignores that retention affects total storage, not daily estimate.Final Answer:
Option B -> Option BQuick Check:
500K x 2MB = 1TB daily storage [check]
Solution
Step 1: Trace event arrival at read replica
Upon receiving the update event, the read replica has not yet applied it, so data is stale.Step 2: Understand read replica behavior
Read replicas serve stale data until the event is processed; they do not reject or queue reads.Final Answer:
Option D -> Option DQuick Check:
Read replicas serve stale data until update applied [check]
Solution
Step 1: Role of BGP monitoring
BGP monitoring detects anomalies and route changes; without it, routers may silently drop updates due to misconfigurations.Step 2: Eliminate other options
Delayed alerts (A) affect operators but don't cause silent drops; routers don't revert to static routes automatically (B); immediate client failover (D) unlikely without proper routing.Final Answer:
Option B -> Option BQuick Check:
Without monitoring, routers drop BGP updates silently causing partial visibility [check]
Solution
Step 1: Identify coordinator role and scaling limits
The warming coordinator manages global warming state and task assignment, which is hard to shard.Step 2: Compare other components
Database can be scaled with replicas; cache servers scale horizontally; network scales with capacity upgrades.Step 3: Conclude bottleneck
Coordinator's centralized state causes it to fail first at 10x scale.Final Answer:
Option D -> Option DQuick Check:
Centralized coordinator state limits sharding, causing bottleneck [check]
