A multiplayer gaming platform operates a matchmaking lobby service that frequently retrieves game mode configurations from an Amazon DynamoDB table. During peak traffic hours, player sign-ins spike, leading to high read latency and ProvisionedThroughputExceededException errors on the table due to the volume of read requests. The development team decides to deploy an Amazon DynamoDB Accelerator (DAX) cluster to cache these configurations. Which of the following implementation steps must the developers perform to successfully resolve the latency issue using DAX caching? (Select two.)
- Configure the application code to use the DAX SDK client instead of the standard DynamoDB SDK client.Answer
- Modify the application's query requests to use eventually consistent reads instead of strongly consistent reads.Answer
- CConvert the query operations to Scan operations to force DAX to populate its item cache for all game configurations.
- DScale up the DynamoDB table's provisioned read capacity units (RCUs) to handle the cache miss rate during peak hours.
- EHardcode the DAX cluster primary endpoint and IAM access key credentials directly in the application's SDK client initialization block.
Answer
To successfully optimize read latency using DAX, the application must instantiate the DAX SDK client instead of the standard DynamoDB SDK client, and all read queries must be configured as eventually consistent reads.
To cache query results using DAX, the application must point to the DAX cluster using the specialized DAX SDK client. Furthermore, DAX is designed to cache eventually consistent reads; executing queries with strong consistency forces DAX to bypass its cache and query DynamoDB directly, failing to resolve the latency bottleneck.
Step-by-Step Solution
Key Concept
Integrating the Amazon DynamoDB Accelerator (DAX) SDK and understanding the requirement of eventually consistent reads for caching behavior.
Estimated Time:2m 0s