AWS Certified Developer Associate DVA-C01 – Question433

A developer wants to implement Amazon EC2 Auto Scaling for a web application The developer wants to nsure that sessions will not be lost during scale-in events.
How can the developer maintain the session state and share it across the EC2 instances?

A.
Write the sessions to an Amazon Elastic Block Store (Amazon EBS) volume. Mount the EBS volume to each EC2 instance in the group.
B. Store the sessions in an Amazon ElastiCache for Memcached cluster. Configure the application to use the Memcached API.
C. Publish the sessions to an Amazon Simple Notification Service (Amazon SNS) topic. Subscribe each EC2 instance in the group to the topic.
D. Write the sessions to an Amazon Redshift cluster. Configure the application to use the Amazon Redshift API.

Correct Answer: B

Explanation: