AWS Certified Solutions Architect – ProfessionalDesign for New SolutionsEasy
A company is developing a new serverless web application using AWS Lambda and Amazon API Gateway. The application needs to store user session data and preferences, which must be highly available, provide sub-millisecond latency for reads and writes, and scale automatically to handle millions of concurrent users without requiring manual provisioning or scaling. Which AWS service should be used for storing this data?
- AAmazon ElastiCache for Redis.
- BAmazon RDS for PostgreSQL.
- CAmazon DynamoDB.
- DAmazon S3.
Show answer & explanationAnswer & explanation
Correct answer: C. Amazon DynamoDB.
Amazon DynamoDB is a fully managed, serverless NoSQL database that offers single-digit millisecond performance at any scale. It automatically scales to accommodate traffic fluctuations and provides high availability, making it ideal for storing user session data and preferences in a serverless application.
Why the other options are wrong
- A. Amazon ElastiCache for Redis is an in-memory data store that provides sub-millisecond latency but requires manual provisioning and scaling of cache nodes. It is not a serverless solution and adds operational overhead.
- B. Amazon RDS for PostgreSQL is a relational database that requires instance provisioning and does not scale automatically in a serverless fashion. It also cannot guarantee sub-millisecond latency at extreme scale without complex sharding.
- D. Amazon S3 is object storage, suitable for static assets or large files, not designed for frequently updated, low-latency transactional data like user session information.
DynamoDB for Serverless Data
Utilizing Amazon DynamoDB as the primary data store for serverless applications, leveraging its fully managed, scalable, and low-latency NoSQL capabilities.
- Fully managed and serverless.
- Scales automatically to handle varying loads.
- Single-digit millisecond performance for reads and writes.
- High availability and durability.
- Ideal for user profiles, session data, and real-time application data.
Memory trick: Serverless, fast, scalable data: DynamoDB is the way.