AWS Certified Developer – Associate (DVA-C02)Development with AWS ServicesEasy
A developer is building a new microservice that needs to store session data for web users. This data must be highly available, low-latency, and capable of handling millions of requests per second. The session data is simple key-value pairs and does not require complex querying or relational integrity. Which AWS service should the developer choose to meet these requirements?
- AAmazon DynamoDB
- BAmazon Redshift
- CAmazon S3
- DAmazon RDS for PostgreSQL
Show answer & explanationAnswer & explanation
Correct answer: A. Amazon DynamoDB
Amazon DynamoDB is a fully managed, serverless NoSQL database service that provides single-digit millisecond performance at any scale, making it ideal for high-throughput, low-latency session data storage.
Why the other options are wrong
- B. Amazon Redshift is a data warehousing service optimized for analytic queries on large datasets, not for transactional, low-latency session storage.
- C. Amazon S3 is object storage, suitable for large files and backups, but not optimized for low-latency key-value access patterns required for session data.
- D. Amazon RDS is a relational database, which is overkill for simple key-value session data and typically has higher latency than DynamoDB for this use case.
Amazon DynamoDB
A fast, flexible NoSQL database service for all applications that need consistent, single-digit millisecond latency at any scale.
- Fully managed, serverless NoSQL database.
- Supports key-value and document data models.
- Offers consistent, low-latency performance at any scale.
Memory trick: Different needs, different databases, DynamoDB for speed.