Soru

Zorluk: KolayOptimizing Performance with Caching and DAX

A digital library application retrieves book metadata from an Amazon DynamoDB table. During a reading campaign, a few popular books receive a high volume of read requests, causing DynamoDB read throttling. The developer wants to implement a caching solution to reduce read latency to sub-milliseconds for these popular books with minimal changes to the application code.

Which two actions should the developer take to resolve the throttling and meet the performance requirements? (Select two.)

  1. Create an Amazon DynamoDB Accelerator (DAX) cluster.Cevap
  2. Configure the application to use the DAX SDK client instead of the standard DynamoDB client.Cevap
  3. C
    Increase the provisioned Read Capacity Units (RCUs) on the DynamoDB table to handle the peak request rate.
  4. D
    Modify the application code to perform Scan operations with filter expressions on the book details table.
  5. E
    Use AWS Secrets Manager to store the DynamoDB table credentials and retrieve them dynamically on every query.

Cevap

To resolve read throttling and achieve sub-millisecond read latency with minimal application changes, the developer should create an Amazon DynamoDB Accelerator (DAX) cluster and configure the application to use the DAX SDK client.
Creating an Amazon DynamoDB Accelerator (DAX) cluster and configuring the application to use the DAX SDK client is the correct approach. DAX is an in-memory, write-through cache that is API-compatible with DynamoDB. Replacing the standard client with the DAX client requires minimal code changes and routes read operations through the cache, reducing read latency to sub-milliseconds and offloading the read volume from the database table.

Adım Adım Çözüm

1
Identify the caching solution that integrates with DynamoDB with minimal code changes.
Amazon DynamoDB Accelerator (DAX) is selected as the dedicated, API-compatible caching service for DynamoDB.
Unlike general-purpose caching systems, DAX does not require application logic to manage cache population or invalidation.
2
Provision the cache cluster.
A DAX cluster is created in the same region as the DynamoDB table.
The DAX cluster will serve as the read cache in front of the DynamoDB table.
3
Configure the client application.
The application code is updated to instantiate the DAX client library instead of the default AWS SDK DynamoDB client.
The DAX client routes read and write operations directly to the DAX cluster, fallbacking to DynamoDB automatically.

Anahtar Kavram

DynamoDB Accelerator (DAX) caching implementation
Tahmini Süre:1m 0s
Bu soruyu puanla