You must design a fault-tolerant system that preserves client session data if an Amazon EC2 instance fails. Which approach ensures session data is not lost when an instance goes down?
Choose an answer
Tap an option to check your answer.
Correct answer: Use Amazon DynamoDB for scalable session storage and handling..
Why this is the answer
Storing session data in Amazon DynamoDB ensures fault tolerance because DynamoDB is a highly available, durable, and scalable NoSQL database. If an EC2 instance fails, the session data persists in DynamoDB and can be retrieved by a new or different instance, allowing the client's session to continue uninterrupted. Enabling sticky sessions on an Elastic Load Balancer (ELB) only directs subsequent requests from a client to the same instance; it does not preserve session data if that instance fails. Amazon SQS is a message queuing service, not designed for persistent session storage. ELB connection draining helps gracefully remove instances but does not save in-memory session data from a failed instance.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed