A global logistics company tracks package delivery statuses using an Amazon Aurora MySQL database cluster. The database handles a steady write volume of transactions per second (TPS) from regional scanning devices. Customer queries for tracking updates create read spikes of up to queries per second (QPS), causing read query latency to exceed the target threshold of . The database writes remain stable. A solutions architect must design a high-performing and highly available database architecture that ensures read queries have low latency.
Which two actions should the solutions architect take to meet these requirements? (Select TWO.)
- Add Aurora Replicas to the database cluster and configure the application to use the reader endpoint for tracking query traffic.Answer
- Deploy an Amazon ElastiCache cluster to cache frequently accessed package shipment queries.Answer
- CMigrate the database to Amazon DynamoDB and use the package scan timestamp as the partition key.
- DConfigure a PostgreSQL Read Replica in a different AWS Region and configure it as the automatic failover target for the primary Aurora MySQL instance.
- EEnable Amazon DynamoDB Accelerator (DAX) to cache the queries coming from the Aurora database cluster.
Answer
To resolve the read latency issues and ensure high performance and availability, the solutions architect should add Aurora Replicas to the database cluster and use the reader endpoint, and deploy an Amazon ElastiCache cluster to cache frequently accessed queries.
The correct options involve adding Aurora Replicas to scale read operations horizontally and using the cluster's reader endpoint to load-balance queries. Additionally, introducing Amazon ElastiCache caches frequently requested package history, reducing latency to the sub-millisecond range and offloading the primary database cluster.
Step-by-Step Solution
Key Concept
Scaling database reads using read replicas (reader endpoints) and implementing in-memory caching (ElastiCache) are standard patterns for optimizing database read performance and achieving low latency.
Estimated Time:2m 0s