AWS Certified Developer - Associate Exam: Ideal Data Store for Session Management

Ideal Data Store for Session Management

Prev Question Next Question

Question

You've been instructed to develop a mobile application that will make use of AWS services.

You need to decide on a data store to store the user sessions.

Which of the following would be an ideal data store for session management?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Answer - B.

DynamoDB is an alternative solution that can be used for the storage of session management.

The latency of access to data is less.

Hence, this can be used as a data store for session management.

Option A is incorrect since this service is used for object-level storage.

Option C is incorrect since this service is used for storing relational data.

Option D is incorrect since this service is used as a data warehousing solution.

For more information on an example on this, please refer to the below link-

https://aws.amazon.com/blogs/aws/scalable-session-handling-in-php-using-amazon-dynamodb/

Out of the options provided, AWS DynamoDB would be an ideal data store for session management.

AWS Simple Storage Service (S3) is an object storage service that is used to store and retrieve any amount of data. While it is a cost-effective and reliable storage option for objects such as files, it is not suitable for session management. S3 is designed for storing and retrieving large files or objects such as images, videos, and backups.

AWS Relational Database Service (RDS) is a managed relational database service that allows users to run a fully managed database in the cloud. RDS supports popular relational database engines such as MySQL, Oracle, and PostgreSQL. Although RDS is suitable for storing data that requires a relational model, it is not the best option for session management. Session data is usually small and does not require complex database queries, so using a relational database could be an overkill.

AWS Redshift is a data warehouse service that is designed for analytics workloads. It is optimized for querying large datasets and performing complex joins between tables. Redshift is not suitable for session management as it is designed for analytics and reporting purposes, and not for storing and retrieving session data.

AWS DynamoDB is a fully managed NoSQL database service that is designed for fast and flexible document and key-value data storage. DynamoDB is a good option for session management as it can handle high volume, low latency requests and supports fast read and write operations. DynamoDB can also scale easily to accommodate changes in traffic volume, making it suitable for applications that experience fluctuating traffic patterns.

In summary, AWS DynamoDB is the ideal data store for session management because it is designed for fast and flexible data storage, can handle high volume, low latency requests, and can scale easily to accommodate changes in traffic volume.