AWS Certified Solutions Architect – Associate (SAA-C02) — Question 651
A company hosts a three-tier ecommerce application on a fleet of Amazon EC2 instances. The instances run in an Auto Scaling group behind an Application Load
Balancer (ALB). All ecommerce data is stored in an Amazon RDS for MariaDB Multi-AZ DB instance.
The company wants to optimize customer session management during transactions. The application must store session data durably.
Which solutions will meet these requirements? (Choose two.)
Answer options
- A. Turn on the sticky sessions feature (session affinity) on the ALB.
- B. Use an Amazon DynamoDB table to store customer session information.
- C. Deploy an Amazon Cognito user pool to manage user session information.
- D. Deploy an Amazon ElastiCache for Redis cluster to store customer session information.
- E. Use AWS Systems Manager Application Manager in the application to manage user session information.
Correct answer: A, B
Explanation
Enabling sticky sessions on the ALB ensures that client requests are consistently routed to the same EC2 instance, facilitating seamless session management during transactions. Storing session information in Amazon DynamoDB provides a highly durable, scalable, and managed NoSQL storage solution that persists session data even if individual EC2 instances are terminated. Other options like Amazon Cognito and AWS Systems Manager are not designed for raw session state storage, while DynamoDB offers superior durability compared to standard cache configurations.