Question #1067
A company's web application uses an Amazon EC2 instance store to store temporary session data. The company wants to ensure that the session data is highly available across multiple instances and durably stored. What should a solutions architect recommend to meet these requirements?
Move the session data to Amazon ElastiCache for Memcached.
Migrate the session data to an Amazon EBS volume and attach it to each EC2 instance.
Store the session data in Amazon S3 Standard-Infrequent Access.
Move the session data to an Amazon Elastic File System (Amazon EFS) file system.
Explanation
The correct answer is D. Amazon EFS is designed for scenarios requiring shared access to durable, highly available storage across multiple EC2 instances. It replicates data across multiple Availability Zones (AZs), ensuring high availability and durability.
- Option A (ElastiCache for Memcached): While ElastiCache offers low-latency in-memory storage, it is not durable because data is lost if nodes fail.
- Option B (EBS volume): EBS volumes are bound to a single EC2 instance and cannot be shared across multiple instances simultaneously.
- Option C (S3 Standard-IA): S3 is object storage with high latency, making it unsuitable for session data requiring frequent, low-latency access.
- Option D (EFS): EFS provides a shared file system with multi-AZ durability and concurrent access, meeting both high availability and durability requirements.
Key Points: EFS supports shared storage across instances, durability via multi-AZ replication, and seamless scalability—critical for session data in distributed applications.
Answer
The correct answer is: D