AWS Certified SysOps Administrator – Associate (legacy) — Question 260
A sys admin has created a shopping cart application and hosted it on EC2. The EC2 instances are running behind ELB. The admin wants to ensure that the end user request will always go to the EC2 instance where the user session has been created. How can the admin configure this?
Answer options
- A. Enable ELB cross zone load balancing
- B. Enable ELB cookie setup
- C. Enable ELB sticky session
- D. Enable ELB connection draining
Correct answer: C
Explanation
The correct answer is C, as enabling ELB sticky sessions ensures that all requests from a user during a session are routed to the same EC2 instance. Option A does not address session persistence; option B is related to cookies but does not guarantee session stickiness; option D refers to managing connections during instance termination and does not impact session routing.