A logistics company runs a real-time fleet tracking platform on AWS. The application uses an Amazon RDS for PostgreSQL Multi-AZ DB instance to store active delivery vehicle telemetry (current coordinates, speed, and status) and historical trip logs. During high-demand delivery windows, the platform experiences significant write latency because of lock contention on the database, while dispatchers report that dashboard queries for active vehicle locations take several seconds to load. The database CPU utilization routinely spikes to 95%. A solutions architect must optimize the database and caching layer. The new solution must achieve sub-millisecond read latency for active vehicle queries, scale to handle high-frequency telemetry writes, reduce database connection overhead, and guarantee high availability with replication for the cached telemetry data. Which two actions should the solutions architect take to resolve the bottlenecks? (Select TWO.)
- Deploy an Amazon ElastiCache for Redis cluster with Multi-AZ replication enabled to cache the latest active vehicle coordinates, serving dashboard reads directly from the cache.Answer
- BDeploy an Amazon ElastiCache for Memcached cluster to store active vehicle locations, configuring replication to a standby node in another Availability Zone.
- Implement Amazon RDS Proxy between the application servers and the PostgreSQL database, and create an RDS Read Replica to offload dispatcher dashboard reads from the primary DB instance.Answer
- DConfigure the application to route dispatcher dashboard read queries directly to the Multi-AZ standby instance of the RDS for PostgreSQL DB instance to offload the primary writer.
- EDeploy Amazon DynamoDB Accelerator (DAX) directly in front of the RDS for PostgreSQL DB instance to cache SQL queries and write telemetry updates using a write-through strategy.