A gaming application uses an Amazon DynamoDB table to store real-time player profiles. During a global tournament, the application experiences a massive spike in read traffic, resulting in `ProvisionedThroughputExceededException` errors due to hot partitions on popular player profiles. The development team decides to deploy an Amazon DynamoDB Accelerator (DAX) cluster to resolve the throttling and improve read latency.
Which actions must the developers take to ensure the application successfully utilizes the DAX cluster to resolve the read throttling? (Select two.)
- Update the application code to initialize and use the Amazon DynamoDB Accelerator (DAX) client SDK instead of the standard DynamoDB client.Cevap
- Configure the read requests to use eventually consistent reads so that the data is served from the DAX item cache.Cevap
- CIncrease the provisioned Read Capacity Units (RCUs) on the DynamoDB table to handle the overall peak load.
- DChange the application lookup mechanism to use Scan operations instead of Query operations to retrieve cached profiles.
- EInitialize the DAX client by hardcoding AWS access keys and secret keys directly in the initialization code to avoid authorization overhead.
Cevap
To successfully optimize read performance using DAX, the developers must use the DAX SDK client instead of the standard DynamoDB client, and configure read operations to use eventually consistent reads so that the results can be retrieved from the cache rather than bypassing it.
To successfully route and cache read operations through DAX, the standard DynamoDB client must be replaced with the DAX SDK client. In addition, the read requests must be configured as eventually consistent. Strongly consistent reads bypass the DAX cache and hit the DynamoDB table directly, which would fail to alleviate the hot partition throttling.
Adım Adım Çözüm
Anahtar Kavram
DAX Caching Requirements and SDK Client