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

A developer is building a high-performance web application that uses Amazon DynamoDB for its primary data store. The application experiences frequent read queries to a subset of its data, leading to increased latency and provisioned throughput consumption. The data is eventually consistent, and the application can tolerate slightly stale data for these read operations. Which AWS service or feature should the developer implement to reduce read latency and throughput costs?

  1. ADynamoDB Accelerator (DAX)
  2. BAmazon ElastiCache for Redis
  3. CDynamoDB Global Tables
  4. DDynamoDB On-Demand capacity mode
Show answer & explanation

Correct answer: A. DynamoDB Accelerator (DAX)

DynamoDB Accelerator (DAX) is a fully managed, highly available, in-memory cache specifically designed for DynamoDB. It provides microsecond response times for millions of requests per second and is ideal for read-heavy workloads that can tolerate eventually consistent data.

Why the other options are wrong

  • B. Amazon ElastiCache for Redis can be used as a general-purpose cache, but DAX is purpose-built and optimized for DynamoDB, offering simpler integration and better performance for DynamoDB-specific use cases.
  • C. DynamoDB Global Tables provide multi-region replication for high availability and disaster recovery, not primarily for reducing read latency and costs within a single region for read-heavy workloads.
  • D. DynamoDB On-Demand capacity mode adjusts throughput capacity automatically based on actual usage, which helps with cost efficiency for unpredictable workloads, but it doesn't directly reduce read latency like a cache.

DynamoDB Accelerator (DAX)

DynamoDB Accelerator (DAX) is a fully managed, highly available, in-memory cache for Amazon DynamoDB that delivers up to a 10x performance improvement for read-heavy workloads.

  • Microsecond response times.
  • Compatible with existing DynamoDB API calls.
  • Supports eventually consistent reads.
  • Reduces provisioned throughput consumption on DynamoDB tables.

Memory trick: DAX gives DynamoDB 'max' speed for reads.

More Development with AWS Services questions