SAA-C03 Question 39
Single answerA company is designing a web application that will be hosted on Amazon EC2 instances behind an Application Load Balancer (ALB). The application needs to store session data for users, ensuring high availability and fault tolerance. Which solution best meets these requirements?
- A
Store session data in Amazon RDS with Multi-AZ enabled.
- B
Store session data in Amazon ElastiCache using Redis with cluster mode enabled.
- C
Store session data on the EC2 instance's instance store.
- D
Store session data in an Amazon S3 bucket.
Show answer and explanation
Correct answer: B
Explanation
Amazon ElastiCache using Redis with cluster mode enabled is well-suited for session management due to its ability to provide low-latency, high-throughput access to data. It also ensures fault tolerance and high availability through clustering and replication, making it the best choice for this scenario.
- A. Incorrect.
Amazon RDS with Multi-AZ enabled provides high availability for relational databases but is not optimized for session data, which often requires low-latency reads and writes.
- B. Correct.
Amazon ElastiCache using Redis with cluster mode enabled is the best solution for storing session data as it is designed for fast, low-latency data access and can provide high availability through replication and clustering.
- C. Incorrect.
Instance stores on EC2 instances are ephemeral and not fault-tolerant. If the instance is stopped or fails, all session data would be lost.
- D. Incorrect.
Amazon S3 is ideal for object storage but is not optimized for low-latency data access required for session management.