AWS Certified SysOps Administrator – Associate (legacy) — Question 591
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?
Answer options
- 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
Correct answer: B
Explanation
When application-controlled session stickiness is configured in ELB, the load balancer routes traffic based on the custom cookie generated by the backend application. If the instance bound to that cookie crashes, ELB redirects the client to a new healthy instance, meaning stickiness is lost until that new instance generates a new session cookie. ELB does not replicate application-level cookies across instances, making Option B the correct behavior.