Soru

Zorluk: OrtaOptimizing Performance with Caching and DAX

A sports media website uses Amazon DynamoDB to store and retrieve live match statistics. During high-profile matches, a sudden surge in read requests for a small set of popular matches results in DynamoDB throttling and increased latency. A developer decides to implement an Amazon DynamoDB Accelerator (DAX) cluster to optimize read performance. Which of the following developer actions are required to successfully cache these read operations and resolve the bottleneck? (Select two.)

  1. Configure the application to use the DAX SDK client to route API calls to the DAX cluster endpoint.Cevap
  2. Ensure the application performs eventually consistent reads rather than strongly consistent reads for cached items.Cevap
  3. C
    Configure DynamoDB auto-scaling to dynamically increase the provisioned Read Capacity Units (RCUs) of the table during peak hours.
  4. D
    Refactor the read logic to perform a Scan operation with a filter expression instead of a Query to retrieve match statistics.
  5. E
    Implement AWS Systems Manager Parameter Store to manage and automatically rotate the IAM credentials used by the DAX cluster nodes.

Cevap

Configure the application to use the DAX SDK client to route API calls to the DAX cluster endpoint, and ensure the application performs eventually consistent reads rather than strongly consistent reads for cached items.
To cache DynamoDB read requests using DAX, the application must interact with the cluster via the DAX client SDK. Additionally, DAX is designed to cache eventually consistent read operations in its item cache, whereas strongly consistent reads are forwarded directly to DynamoDB, bypassing the cache.

Adım Adım Çözüm

1
Select the correct SDK client for caching operations.
The application code is updated to instantiate the DAX client SDK rather than the default DynamoDB client SDK, directing requests to the DAX cluster.
The standard SDK will bypass DAX entirely and communicate directly with DynamoDB, preventing caching from occurring.
2
Adjust the consistency model of read requests.
Ensure all read requests targeting cached items are set to eventually consistent (which is the default).
Strongly consistent reads are passed directly to the DynamoDB database by DAX and do not populate or read from the DAX item cache.

Anahtar Kavram

DynamoDB Accelerator (DAX) client configuration and read consistency caching rules
Bu soruyu puanla