AWS Certified SysOps Administrator SOA-C01 – Question886

A company has a three-tier stateful web application. The application is served through an Amazon CloudFront distribution with default configuration options and an Application Load Balancer (ALB) as the origin. Logged-in users get intermittently logged out and see inconsistent content.
Which action should the company take to ensure a stable user experience during a session?

A.
Enable session affinity (sticky sessions) on the ALB. Configure CloudFront to forward all cookies to the origin.
B. Restrict viewer access to signed cookies in CloudFront. Enable session affinity (sticky sessions) on the ALB.
C. Switch from duration-based session affinity (sticky sessions) to application-controlled session affinity (sticky sessions) on the ALB.
D. Configure the CloudFront TTL to be equal to or less than the ALB session duration.

Correct Answer: C