PrepAway - Latest Free Exam Questions & Answers

The cookie is not found in the request

A sys admin is trying to understand the sticky session algorithm. Please select the correct sequence of steps, both when
the cookie is present and when it is not, to help the admin understand the implementation of the sticky session:
1. ELB inserts the cookie in the response
2. ELB chooses the instance based on the load balancing algorithm
3. Check the cookie in the service request
4. The cookie is found in the request
5. The cookie is not found in the request

PrepAway - Latest Free Exam Questions & Answers

A.
3,1,4,2 [Cookie is not Present] & 3,1,5,2 [Cookie is Present]

B.
3,4,1,2 [Cookie is not Present] & 3,5,1,2 [Cookie is Present]

C.
3,5,2,1 [Cookie is not Present] & 3,4,2,1 [Cookie is Present]

D.
3,2,5,4 [Cookie is not Present] & 3,2,4,5 [Cookie is Present]

Explanation:
Generally AWS ELB routes each request to a zone with the minimum load. The Elastic Load Balancer provides a feature
called sticky session which binds the user’s session with a specific EC2 instance. The load balancer uses a special loadbalancer-generated cookie to track the application instance for each request. When the load balancer receives a request,
it first checks to see if this cookie is present in the request. If so, the request is sent to the application instance specified
in the cookie. If there is no cookie, the load balancer chooses an application instance based on the existing load balancing
algorithm. A cookie is inserted into the response for binding subsequent requests from the same user to that application
instance.

5 Comments on “The cookie is not found in the request

    1. Daniele says:

      How can you say C? There is no correct answer according to me. C is the quite right one (the others very wrong) but in any case ‘3,4,2,1 [Cookie is Present]’ should not be like this. Step 2 is only when the Cookie is not found. I think there is a step missing that is ‘ELB chooses the instance based on the Cookie’




      0



      0

Leave a Reply

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