A user has enabled session stickiness with ELB. The user does not want ELB to manage the cookie; instead he wants the application to manage the cookie. What will happen when the server instance, which is bound to a cookie, crashes?
A.
The response will have a cookie but stickiness will be deleted
B.
The session will not be sticky until a new cookie is inserted
C.
ELB will throw an error due to cookie unavailability
D.
The session will be sticky and ELB will route requests to another server as ELB keeps replicating the Cookie
Suggested Answer:B🗳️
With Elastic Load Balancer, if the admin has enabled a sticky session with application controlled stickiness, the load balancer uses a special cookie generated by the application to associate the session with the original server which handles the request. ELB follows the lifetime of the application-generated cookie corresponding to the cookie name specified in the ELB policy configuration. The load balancer only inserts a new stickiness cookie if the application response includes a new application cookie. The load balancer stickiness cookie does not update with each request. If the application cookie is explicitly removed or expires, the session stops being sticky until a new application cookie is issued.
B => If an instance fails or becomes unhealthy, the load balancer stops routing requests to that instance, and chooses a new healthy instance based on the existing load balancing algorithm. The request is routed to the new instance as if there is no cookie and the session is no longer sticky.
https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
xxxdolorxxx
5 months, 3 weeks agoTroyMcLure
6 months, 3 weeks agooriginaly
6 months, 3 weeks ago