AWS Certified Developer – Associate (DVA-C02)Development with AWS ServicesMedium

A developer is building a web application that needs to store persistent user session data. The application requires very low latency access (single-digit milliseconds) to this data, and it must be highly available and scalable to handle millions of concurrent users. The session data is frequently read and written. Which AWS service is the MOST appropriate choice for this use case?

  1. AAmazon DynamoDB
  2. BAmazon Redshift
  3. CAmazon S3
  4. DAmazon RDS for MySQL
Show answer & 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. Its key-value and document data model, combined with high availability and scalability, make it an excellent choice for storing frequently accessed, low-latency session data.

Why the other options are wrong

  • B. Amazon Redshift is a data warehouse service optimized for analytical queries on large datasets, not for low-latency transactional operations on individual session data.
  • C. Amazon S3 is object storage, not designed for low-latency, transactional reads/writes of structured data like session information.
  • D. Amazon RDS for MySQL is a relational database. While it can store session data, achieving single-digit millisecond latency at massive scale for frequently changing data is challenging and often more expensive than DynamoDB.

Amazon DynamoDB for Session Data

Amazon DynamoDB is a fully managed NoSQL database service that delivers single-digit millisecond performance at any scale, making it ideal for storing transient or persistent user session data due to its low-latency, high availability, and automatic scaling capabilities.

  • Single-digit millisecond latency.
  • Scales to millions of requests/second.
  • Fully managed, serverless.
  • Highly available and durable.
  • Cost-effective for high-volume, low-latency access patterns.

Memory trick: DynamoDB 'Drives' sessions 'Directly' with speed.

More Development with AWS Services questions