
Answer-first summary for fast verification
Answer: Configure cookie forwarding in the CloudFront distribution cache behavior., Enable sticky sessions on the ALB target group.
To resolve the random logout issue in a stateful web application running behind an ALB and CloudFront, sticky sessions must be enabled on the ALB target group. Since sticky sessions rely on cookies to route requests from the same user back to the same instance, CloudFront must be configured to forward those cookies to the origin.
Author: Ritesh Yadav
Ultimate access to all questions.
Question #42 A company has a stateful web application that is hosted on Amazon EC2 instances in an Auto Scaling group. The instances run behind an Application Load Balancer (ALB) that has a single target group. The ALB is configured as the origin in an Amazon CloudFront distribution. Users are reporting random logouts from the web application. Which combination of actions should a CloudOps engineer take to resolve this problem? (Choose two.)
A
Change to the least outstanding requests algorithm on the ALB target group.
B
Configure cookie forwarding in the CloudFront distribution cache behavior.
C
Configure header forwarding in the CloudFront distribution cache behavior.
D
Enable group-level stickiness on the ALB listener rule.
E
Enable sticky sessions on the ALB target group.
No comments yet.