A financial services firm runs a real-time card payment validation service. The platform performs verification checks against a database containing merchant validation rules, risk profiles, and transaction velocity limits. The database is hosted on a write-heavy Amazon RDS for PostgreSQL DB instance. During high-volume shopping events, validation read latency spikes to over milliseconds due to read contention, causing payment timeouts. The architecture requires a caching layer to reduce read latency to sub-millisecond levels. The validation data is highly dynamic, requiring key-value replication across Availability Zones, automated failover, and the ability to persist the cached data structures to disk to support rapid recovery. Which architecture should a solutions architect recommend to optimize the database performance and meet these caching requirements?
- ADeploy an Amazon ElastiCache for Memcached cluster with multiple nodes spanning across multiple Availability Zones, and configure the validation service to use it as a read-through cache.
- BConfigure the RDS PostgreSQL Multi-AZ DB instance to direct validation read traffic to the standby DB instance in the secondary Availability Zone, and enable pg_transport for caching.
- Deploy an Amazon ElastiCache for Redis cluster with Multi-AZ enabled and replication groups, and configure the validation service to query the cache before the database.Answer
- DDeploy an Amazon DynamoDB Accelerator (DAX) cluster to cache the PostgreSQL queries, and update the application code to use the DAX client for read operations.