DVA-C02 Question 67
Single answerYou are developing an e-commerce application hosted on AWS. The application needs to store user session data, such as shopping cart contents, which are frequently accessed and updated. The session data must persist even if the application restarts, and the solution should minimize latency during retrieval and updates. Which AWS service is the most appropriate choice for managing this session data?
- A
Amazon RDS
- B
Amazon DynamoDB
- C
Amazon ElastiCache
- D
Amazon S3
Show answer and explanation
Correct answer: C
Explanation
Amazon ElastiCache is the most suitable choice for storing user session data in this scenario because it provides in-memory caching, which ensures extremely low latency for frequent access and updates. While other services like Amazon RDS and DynamoDB are capable of storing data, they are not optimized for the high-speed, low-latency requirements of session management. Amazon S3 is designed for object storage and is not appropriate for session data storage in this case.
- A. Incorrect.
Amazon RDS is a managed relational database service. While it can store session data, it is not optimized for high-speed, low-latency access required for session management.
- B. Incorrect.
Amazon DynamoDB is a fast and flexible NoSQL database service. However, for session data that requires extremely low latency and in-memory storage, ElastiCache is a better fit.
- C. Correct.
Amazon ElastiCache is an in-memory data store and caching service, ideal for storing session data due to its low latency and high performance.
- D. Incorrect.
Amazon S3 is an object storage service designed for scalability and durability. It is not suitable for storing frequently accessed and updated session data due to higher latency.