Q49 — AWS SAA-C03 Ch.5

Question 49 of 65 | ← Chapter 5

Q349. A company runs a web application on Amazon EC2 instances in an Auto Scaling group behind an Application Load Balancer that has sticky sessions enabled.The web server currently hosts the user session state.The company wants to ensure high availability and avoid user session state loss in the event of a web server outage.Which solution will meet these requirements?

Correct Answer: B. Use Amazon ElastiCache for Redis to store the session state. Update the application to use ElastiCache for Redis to store the session state

Explanation

B. Use Amazon ElastiCache for Redis to store the session state. Update the application to use ElastiCache for Redis to store the session state:By using Amazon ElastiCache for Redis, the company can ensure high availability of session data in case of web server outages. ElastiCache for Redis provides an in-memory data store that is highly available and durable. The data is automatically saved to disk, so it does not get lost in case of a cache node failure. By updating the application to use ElastiCache for Redis to store the session state, the company can ensure that user sessions are preserved even if the web server instance handling the session goes down. Option A involves using ElastiCache for Memcached, which may not be as suitable as Redis for storing session state due to lack of persistence and other features. Option C involves using AWS Storage Gateway cached volumes, which are intended for long-term storage rather than caching, and may not be as performant or cost-effective as ElastiCache. Option D involves using Amazon RDS to store the session state, which may introduce additional latency compared to using a caching solution like ElastiCache, and may not be as scalable or cost-effective.