Q79 — AWS SAA-C03 Ch.4

Question 79 of 105 | ← Chapter 4

Q274. 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? (Select TWO.)

Correct Answer: A. Turn on the sticky sessions feature (session affinity) on the ALB, D. Deploy an Amazon ElastiCache for Redis cluster to store customer session information

Explanation

To optimize customer session management and store session data durably in an ecommerce application running on Amazon EC2 instances behind an ALB, a solutions architect should use an Amazon ElastiCache for Redis cluster to store customer session information and turn on the sticky sessions feature (session affinity) on the ALB. Therefore, options A and D are the correct answers. Option B suggests using an Amazon DynamoDB table to store customer session information. While this approach can work, it may not be optimal for optimizing session management during transactions. Option C suggests deploying an Amazon Cognito user pool to manage user session information. While Cognito can help manage user authentication and authorization, it is not designed for managing transient session data. Option E suggests using AWS Systems Manager Application Manager to manage user session information. While Systems Manager can help manage application configurations and software updates, it is not a session management solution. By using an Amazon ElastiCache for Redis cluster to store customer session information, the company can provide a durable and highly available storage layer that is optimized for quick read and write operations. Redis provides sub-millisecond response times, which is critical for optimizing session management during transactions. By turning on the sticky sessions feature (session affinity) on the ALB, the company can ensure that all requests from a particular client are routed to the same EC2 instance, which helps maintain session state and prevent errors due to inconsistent session data. This solution meets the requirements stated in the question while being cost-effective and scalable.