SAP-C02 · Question #793
A SaaS web app runs on EC2 Linux behind an ALB. It storesuser sessionsin an RDS Multi-AZ database. During high traffic, the app suffers latency due to session read/write. What is the best way to…
The correct answer is D. Use ElastiCache for Redis to store sessions. A SaaS web application experiences high latency for user session read/write operations when using an RDS Multi-AZ database during high traffic.
Question
A SaaS web app runs on EC2 Linux behind an ALB. It storesuser sessionsin an RDS Multi-AZ database. During high traffic, the app suffers latency due to session read/write. What is the best way to reduce session latency?
Options
- AStore session data in Amazon S3.
- BUse FSx for Windows and mount it.
- CUse Multi-Attach EBS volumes.
- DUse ElastiCache for Redis to store sessions.
How the community answered
(29 responses)- A3% (1)
- C10% (3)
- D86% (25)
Why each option
A SaaS web application experiences high latency for user session read/write operations when using an RDS Multi-AZ database during high traffic.
Amazon S3 is object storage designed for high durability and scalability, but it is not optimized for low-latency, high-frequency read/write operations required for dynamic user sessions.
Amazon FSx for Windows File Server provides fully managed native Windows file systems, which is not suitable for storing session data for a Linux web application and lacks the low-latency caching characteristics.
Multi-Attach EBS volumes allow multiple EC2 instances to attach to a single block storage volume, primarily for shared storage in cluster scenarios, but it's not a solution for improving database read/write latency for application session data.
Amazon ElastiCache for Redis is an in-memory data store known for its extremely low-latency read and write performance, making it an ideal choice for storing frequently accessed, volatile data like user sessions. Moving session management to Redis offloads the relational database and significantly reduces session-related latency during high traffic.
Concept tested: Caching for session management
Source: https://aws.amazon.com/elasticache/redis/
Community Discussion
No community discussion yet for this question.