
Explanation:
When users are unexpectedly prompted to log in multiple times, it typically indicates that the application is storing session data locally on individual EC2 instances rather than in a centralized store. As the ALB distributes subsequent requests across different instances, users land on servers where they are unauthenticated. Enabling sticky sessions (session affinity) on the ALB target group resolves this by ensuring that a given user's requests are consistently routed to the same EC2 instance, preserving their session state.
Ultimate access to all questions.
Question 42.
A company deployed a new web application on multiple Amazon EC2 instances behind an Application Load Balancer (ALB). The EC2 instances run in an Auto Scaling group. Users report that they are frequently being prompted to log in. What should a SysOps administrator do to resolve this issue?
A
Configure an Amazon CloudFront distribution with the ALB as the origin.
B
Enable sticky sessions (session affinity) for the target group of EC2 instances.
C
Redeploy the EC2 instances in a spread placement group.
D
Replace the ALB with a Network Load Balancer.
No comments yet.