An application uses Amazon DynamoDB to store active user session data. During peak traffic hours, the application experiences latency spikes when retrieving session states. Which of the following are recommended best practices to optimize performance and prevent session state retrieval bottlenecks? (Select TWO)
- Enable DynamoDB Accelerator (DAX) to cache session data and provide microsecond read latency.Cevap
- Design partition keys with high entropy, such as a unique session ID, to distribute read and write operations evenly across partitions.Cevap
- CStore user session data in Systems Manager Parameter Store and enable automatic rotation of session parameters.
- DPerform a Scan operation with a filter expression on a custom session attribute to locate active session records.
- EScale up the table's overall provisioned read capacity units (RCUs) immediately upon encountering a ProvisionedThroughputExceededException.
Cevap
Enable DynamoDB Accelerator (DAX) to cache session data and design partition keys with high entropy, such as a unique session ID, to distribute operations evenly.
Enabling DynamoDB Accelerator (DAX) provides an in-memory cache that reduces read latency to microseconds. Additionally, designing high-entropy partition keys ensures even request distribution, which prevents hot partitions and scaling bottlenecks.
Adım Adım Çözüm
Anahtar Kavram
Caching DynamoDB read requests using DAX and avoiding hot partitions with high-entropy keys.