A digital document management and e-signature platform uses an Amazon RDS for PostgreSQL DB instance to track active user signing sessions, signer verification states, and document metadata. During peak business hours at the end of the fiscal quarter, the database CPU utilization exceeds due to a surge in read-heavy queries verifying session tokens and user permissions. The application requires session data to be highly available, replicate across multiple Availability Zones to prevent data loss during failovers, and maintain sub-millisecond retrieval times. The solutions architect must optimize the database layer to resolve the performance bottleneck while meeting these availability and persistence requirements.
Which of the following database and caching strategies should the solutions architect implement?
- AEnable Multi-AZ deployment on the RDS PostgreSQL database. Configure the application to split read and write queries, directing read queries for session states and tokens to the standby replica to reduce CPU load on the primary database instance.
- Deploy an Amazon ElastiCache for Redis cluster with replication enabled across multiple Availability Zones. Configure the application to store session tokens and verification states in the Redis cluster utilizing a cache-aside pattern, and query the RDS PostgreSQL database only on cache misses.Cevap
- CDeploy an Amazon ElastiCache for Memcached cluster with nodes distributed across multiple Availability Zones. Enable automated snapshots and cross-AZ replication for the Memcached nodes, and configure the application to cache session validation states in Memcached to offload the database.
- DMigrate the session table to a single-node Amazon ElastiCache for Redis instance. Configure the database replication parameter group to synchronize the Redis database directly with the RDS PostgreSQL instance using an AWS Database Migration Service (AWS DMS) task.