A developer needs to improve the read performance of an application that frequently queries an Amazon DynamoDB table. The application requires sub-millisecond response times for these queries with minimal modifications to the application's existing database query code. Which solution should the developer implement?
- APerform a DynamoDB Scan operation instead of a Query to retrieve all items into application memory during start-up.
- BConfigure AWS Systems Manager Parameter Store to store the query results and retrieve them during each request.
- Enable Amazon DynamoDB Accelerator (DAX) and configure the application to use the DAX client SDK.Answer
- DIncrease the provisioned read capacity units (RCUs) on the DynamoDB table and use an IAM role to authorize the additional capacity.
Answer
Enable Amazon DynamoDB Accelerator (DAX) and configure the application to use the DAX client SDK.
Amazon DynamoDB Accelerator (DAX) is an API-compatible in-memory cache designed specifically for DynamoDB. It provides sub-millisecond response times for read operations and requires only updating the client configuration rather than rewriting query logic.
Step-by-Step Solution
Key Concept
Using Amazon DynamoDB Accelerator (DAX) for sub-millisecond caching with minimal application code modifications