A solutions architect is configuring an Application Load Balancer (ALB) and an Auto Scaling group to host a stateful web application. The application requires user session state to be maintained on the specific Amazon EC2 instance where the session was established. Which of the following configurations should the solutions architect implement to meet these requirements? (Select two.)
- Enable sticky sessions (session affinity) on the Application Load Balancer target group.Cevap
- Configure the target group to use duration-based cookies or application-based cookies.Cevap
- CCreate a Route 53 Latency routing policy to direct users to the nearest EC2 instance.
- DModify the Network ACLs of the public subnets to allow stateful return traffic to specific EC2 instances.
- EConfigure the target group health check port to match the custom session state port.
Cevap
To maintain user session state on specific instances, enable sticky sessions (session affinity) on the Application Load Balancer target group and configure the target group to use duration-based or application-based cookies.
To maintain user session state on specific EC2 instances, the solutions architect must enable sticky sessions (session affinity) on the target group associated with the Application Load Balancer. Sticky sessions use cookies to bind a client session to a specific instance. Consequently, configuring the target group to use duration-based or application-based cookies is also required to manage the cookie lifecycle and affinity behavior.
Adım Adım Çözüm
Anahtar Kavram
Session stickiness (session affinity) allows an Application Load Balancer to bind a user's session to a specific target instance by using cookies.
Tahmini Süre:1m 0s