PrepAway - Latest Free Exam Questions & Answers

What will happen when the server instance, which is bou…

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?

PrepAway - Latest Free Exam Questions & Answers

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

Explanation:
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.

One Comment on “What will happen when the server instance, which is bou…

  1. raduf says:

    D
    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 load balancer treats the session as now “stuck” to the new healthy instance, and continues routing requests to that instance even if the failed instance comes back.




    2



    10

Leave a Reply

Your email address will not be published. Required fields are marked *