A SaaS-based marketing automation platform stores tenant campaign configurations in a single-instance Amazon RDS for PostgreSQL database. During peak campaign execution windows, read query volume increases significantly, causing the database CPU utilization to exceed 90% and campaign delivery latencies to rise. The Solutions Architect must implement a caching solution to reduce the database load. The cached configuration data must survive cache node failures without causing a cache miss storm on the database, and the cache layer must support automatic failover. Which of the following caching strategies should the Solutions Architect implement to meet these requirements?
- Deploy an Amazon ElastiCache for Redis cluster in a Multi-AZ replication group with automatic failover enabled, and configure the application to read from the cache before querying the database.Cevap
- BDeploy an Amazon ElastiCache for Memcached cluster across multiple Availability Zones, and configure the application to cache campaign configurations to distribute the read load.
- CModify the RDS for PostgreSQL database to a Multi-AZ deployment, and configure the application to route marketing campaign read queries to the standby database instance.
- DCreate an Amazon Aurora PostgreSQL Global Database secondary cluster in another AWS Region, and configure the application to route read queries to the secondary region to distribute the query load.
Cevap
Deploy an Amazon ElastiCache for Redis cluster in a Multi-AZ replication group with automatic failover enabled, and configure the application to read from the cache before querying the database.
The correct solution uses Amazon ElastiCache for Redis with Multi-AZ replication. This pattern offloads read queries from the backend database, handles failover automatically to prevent cache stampedes, and ensures cache availability.
Adım Adım Çözüm
Anahtar Kavram
Improving database efficiency by using an ElastiCache Redis cluster with Multi-AZ replication for resilient caching.