
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
A company runs a web application on Amazon EC2 instances in an Auto Scaling group behind an Application Load Balancer that has sticky sessions enabled. The web server currently hosts the user session state. The company wants to ensure high availability and avoid user session state loss in the event of a web server outage.
Which solution will meet these requirements?
A
Use an Amazon ElastiCache for Memcached instance to store the session data. Update the application to use ElastiCache for Memcached to store the session state.
B
Use Amazon ElastiCache for Redis to store the session state. Update the application to use ElastiCache for Redis to store the session state.
C
Use an AWS Storage Gateway cached volume to store session data. Update the application to use AWS Storage Gateway cached volume to store the session state.
D
Use Amazon RDS to store the session state. Update the application to use Amazon RDS to store the session state.
Explanation:
Correct Answer: B - Use Amazon ElastiCache for Redis to store the session state.
High Availability Requirement: ElastiCache for Redis supports Multi-AZ with automatic failover, which provides high availability. If the primary node fails, it automatically fails over to a replica.
Session State Management: Redis is specifically designed for in-memory data storage with persistence options, making it ideal for session state storage. It offers:
Comparison with other options:
By moving session state to ElastiCache Redis:
This solution provides the high availability and session persistence required by the company while maintaining low latency for user experience.