Q98 — AWS DVA-C02 Ch.1

Question 98 of 100 | ← Chapter 1

A stateful web application that shares session state locally is being migrated to AWS. The application must be fault-tolerant, highly scalable, and any service interruption must not impact the user experience. What is the best option for storing session state?

Correct Answer: A. Store session state in Amazon ElastiCache.

Explanation

Amazon ElastiCache is an in-memory data store service that provides fast data access and low latency, making it ideal for storing session state data requiring frequent read/write operations and rapid response. It offers fault tolerance and scalability to handle high concurrency and variable workloads. Amazon CloudFront is designed for content delivery acceleration, not session state storage. Amazon S3 is suitable for large volumes of static data but lacks the low-latency performance required for session state. Enabling session stickiness via Elastic Load Balancing does not store session state and fails to meet fault tolerance and scalability requirements. Therefore, option A is the best choice.