Store Session Data | Ideal Options for AWS Web Application | SAA-C03 Exam Answer

Best Options for Storing Session Data in AWS Web Applications

Prev Question Next Question

Question

A company is developing a web application to be hosted in AWS.

This application needs a data store for session data.

As an AWS Solution Architect, what would you recommend as an ideal option to store session data? (SELECT TWO)

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

Correct Answer - B and D.

DynamoDB and ElastiCache are perfect options for storing session data.

AWS Documentation mentions the following on Amazon DynamoDB:

Amazon DynamoDB is a fast and flexible NoSQL database service for all applications that need consistent, single-digit millisecond latency at any scale.

It is a fully managed cloud database and supports both document and key-value store models.

Its flexible data model, reliable performance, and automatic scaling of throughput capacity make it a great fit for mobile, web, gaming, ad tech, IoT, and many other applications.

For more information on AWS DynamoDB, please visit the following URL:

https://aws.amazon.com/dynamodb/

AWS Documentation mentions the following on AWS ElastiCache:

AWS ElastiCache is a web service that makes it easy to set up, manage, and scale a distributed in-memory data store or cache environment in the cloud.

It provides a high-performance, scalable, and cost-effective caching solution while removing the complexity associated with the deployment and management of a distributed cache environment.

For more information on AWS Elasticache, please visit the following URL:

https://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/WhatIs.html

Option A is incorrect.

AWS CloudWatch offers cloud monitoring services for the customers of AWS resources.

Option C is incorrect.

AWS Elastic Load Balancing automatically distributes incoming application traffic across multiple targets.

Option E is incorrect.

AWS Storage Gateway is a hybrid storage service that enables your on-premises applications to use AWS cloud storage seamlessly.

Out of the given options, the two ideal options to store session data in AWS are:

B. DynamoDB: Amazon DynamoDB is a fully managed NoSQL database service that can provide low-latency, high-scalability, and high-availability data storage for web applications. DynamoDB can be used to store session data as key-value pairs and can be accessed from anywhere in the world. DynamoDB offers consistent, single-digit millisecond latency, and can automatically scale up or down as per the traffic demands. DynamoDB also provides various features like data encryption at rest, backup and restore, and global tables for disaster recovery.

D. ElastiCache: Amazon ElastiCache is a fully managed, in-memory caching service that can provide high-performance data storage for web applications. ElastiCache can be used to store session data in a cache cluster, and the data can be accessed from anywhere in the world. ElastiCache supports two popular caching engines: Memcached and Redis. Memcached is a simple caching engine that is ideal for small data sets, whereas Redis is a more feature-rich caching engine that supports advanced data structures and features like replication and persistence.

CloudWatch (A) is a monitoring and logging service, and it is not ideal for storing session data. Elastic Load Balancing (C) is a service that helps distribute incoming traffic across multiple targets, and it is not designed for storing session data. Storage Gateway (E) is a hybrid storage service that can be used to connect on-premises environments with AWS cloud storage, and it is not designed for storing session data.

In summary, DynamoDB and ElastiCache are the ideal options to store session data in AWS, depending on the specific requirements of the application.