A retail e-commerce company uses an Amazon DynamoDB table to store product inventory details. During a flash sale event, the product detail page experiences a huge spike in read traffic, resulting in `ProvisionedThroughputExceededException` errors on the DynamoDB table. To resolve this and reduce read latency, a developer deploys an Amazon DynamoDB Accelerator (DAX) cluster. However, despite deploying the DAX cluster, the table continues to experience throttling and read latency remains high. Analysis reveals that the DAX cache hit rate is .
Which two actions should the developer take to ensure the application successfully uses the DAX cache and resolves the throttling? (Select two.)
- Configure the application to use the DAX client SDK and point it to the DAX cluster endpoint instead of the standard DynamoDB endpoint.Cevap
- Ensure the application performs eventually consistent read requests rather than strongly consistent read requests.Cevap
- CConvert the application's Query operations into Scan operations to allow DAX to pre-fetch and store the entire table dataset in its query cache.
- DIncrease the provisioned Read Capacity Units (RCUs) on the DynamoDB table and enable auto-scaling to absorb the read spikes.
- EConfigure the application to authenticate with the DAX cluster by hardcoding the AWS access key and secret access key in the DAX client initialization code.
Cevap
To resolve the issue, the developer must configure the application to use the DAX client SDK pointing to the DAX cluster endpoint, and ensure that read requests are eventually consistent rather than strongly consistent.
The correct options state that the application should be configured to use the DAX client SDK pointed to the DAX cluster endpoint and perform eventually consistent read requests. Because DAX operates as a write-through cache, applications must actively direct their API calls to the DAX cluster endpoint using the API-compatible DAX SDK. Additionally, DAX only caches eventually consistent reads. Strongly consistent reads are always passed through to the DynamoDB table directly, which continues to consume table RCUs and leads to throttling if not changed.
Adım Adım Çözüm
Anahtar Kavram
DAX endpoint configuration and consistency caching rules