CloudGuild · Blog · Cheat sheets · Lessons · Certifications

AWS Certified Solutions Architect - Associate Exam Question Walkthrough: Stateless Web Application Session Management

Understand how to manage user sessions in stateless web applications. Learn why ElastiCache for Redis is the best choice for AWS SAA-C03.

A common hurdle in the AWS Certified Solutions Architect - Associate exam is choosing the right service for session management in a stateless application. Candidates often get tripped up by the need for low latency and shared session data across instances.

The question

A stateless web application behind a load balancer must share user session data across instances with microsecond to millisecond latency. Which service fits BEST?

A. Store sessions on each instance local disk
B. Amazon ElastiCache for Redis
C. Amazon S3 Glacier
D. Amazon Athena

Think before you scroll

Before you look for the answer, consider the requirements: the application needs to share session data quickly across instances and remain stateless. Focus on services that provide low-latency access and are designed for shared session data.

The answer

The correct option is B. Amazon ElastiCache for Redis. It provides a fast, shared in-memory store that is ideal for session state management. This keeps the application stateless and allows for horizontal scalability, meeting the latency requirements.

Why the other options lose

The concept behind it

The principle at play here is the need for a stateless architecture in web applications. Stateless applications do not retain session data on individual instances. Instead, they rely on external services that can handle session management efficiently. In this case, an in-memory store like ElastiCache for Redis is optimal due to its speed and ability to share data across multiple instances.

Exam trap to remember

Remember: for low-latency session management in stateless applications, always consider in-memory data stores like ElastiCache for Redis. They ensure both speed and scalability, keeping your architecture clean and efficient.

Take the free SAA-C03 mock exam

Take a free mock exam →