A developer is building an application that runs on EC2 instances in an Auto Scaling group and needs to externalize session state so instances can be stateless. Which AWS services could be used to store session state? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: Amazon DynamoDB, Amazon ElastiCache.
Why this is the answer
Amazon DynamoDB is a fast, flexible NoSQL database service that can store session state as key-value pairs, providing high availability and scalability. Amazon ElastiCache offers in-memory caching services like Redis or Memcached, which are excellent for storing session data due to their low-latency access. Both services allow EC2 instances in an Auto Scaling group to remain stateless, as session information is stored externally and can be retrieved by any instance. Amazon Cognito is an identity service for user authentication and authorization, not for general session state storage. An Application Load Balancer distributes incoming traffic but does not store data. Amazon SQS is a message queuing service, unsuitable for persistent session state.
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