AWS Certified DevOps Engineer – Professional — Question 89

A company is testing a web application that runs on Amazon EC2 instances behind an Application Load Balancer. The instances run in an Auto Scaling group across multiple Availability Zones. The company uses a blue/green deployment process with immutable instances when deploying new software.

During testing, users are being automatically logged out of the application at random times. Testers also report that, when a new version of the application is deployed, all users are logged out. The development team needs a solution to ensure users remain logged in across scaling events and application deployments.

What is the MOST efficient way to ensure users remain logged in?

Answer options

Correct answer: D

Explanation

Option D is correct because using Amazon ElastiCache allows for fast, in-memory data storage which can handle session data efficiently, ensuring users remain logged in during scaling events and deployments. Options A and B do not provide persistent storage solutions, while option C introduces latency with S3, which is not optimal for session management.