A collaborative document editing platform stores document metadata and change logs in Amazon DynamoDB. The platform experiences write bottlenecks during active collaboration sessions, causing throttling, while users also experience latency greater than milliseconds when retrieving the latest document updates. The database currently uses a low-cardinality attribute, the project creation date, as the partition key. Which two actions should the solutions architect take to resolve these performance issues? (Select two.)
- Change the partition key to a high-cardinality attribute, such as a unique document UUID, to distribute write traffic evenly across partitions.Cevap
- BUse the project creation date as the partition key and a sequential timestamp as the sort key to order the write operations.
- CMigrate the workload to Amazon RDS and configure a Read Replica to automatically accept write requests during peak write times.
- Deploy an Amazon DynamoDB Accelerator (DAX) cluster to cache read responses and reduce retrieval latency to microseconds.Cevap
- EConfigure the DynamoDB table to use provisioned capacity mode with a fixed high value of Write Capacity Units (WCUs) to handle the spikes, while disabling auto-scaling.
Cevap
Changing the partition key to a high-cardinality attribute like a unique document UUID, and deploying an Amazon DynamoDB Accelerator (DAX) cluster to cache read responses.
The correct options recommend changing the partition key to a high-cardinality attribute like a unique document UUID and deploying Amazon DynamoDB Accelerator (DAX). Changing the partition key distributes the write workload evenly across physical partitions, eliminating the partition-level bottlenecks that cause throttling. Deploying DAX introduces an in-memory caching layer that handles frequent read requests, reducing retrieval latency from milliseconds to microseconds and offloading read traffic from the database.
Adım Adım Çözüm
Anahtar Kavram
High-performing DynamoDB database design relies on choosing high-cardinality partition keys to prevent hot partitions, and using in-memory caching layers like DAX to achieve microsecond read latency.
Tahmini Süre:2m 0s