An online auction platform experiences massive spikes in read and write traffic during the final minutes of high-profile auctions. The system requires sub-millisecond latency for retrieving item details, and must handle a write rate of over updates per second for bid submissions. The database architecture must scale dynamically to handle these bursts without throttling. Which combination of database configurations will meet these performance requirements? (Select TWO.)
- Store the auction item details in Amazon DynamoDB, and deploy an Amazon DynamoDB Accelerator (DAX) cluster to cache read requests.Cevap
- Implement write sharding on the bids table in Amazon DynamoDB by appending a random suffix to the partition key to distribute write operations across multiple physical partitions.Cevap
- CStore bid entries in Amazon DynamoDB using the bid submission timestamp as the partition key to guarantee chronological ordering of bids.
- DDeploy Amazon RDS for PostgreSQL with a Read Replica, and configure the application to use the Read Replica as the primary failover target to maintain write performance during an outage.
- EUtilize Amazon RDS for MySQL in a Multi-AZ DB cluster deployment, and route write requests to the reader DB instances during peak traffic windows.
Cevap
Use Amazon DynamoDB to store the auction item details with Amazon DynamoDB Accelerator (DAX) to cache read requests, and implement write sharding on the bids table by appending a random suffix to the partition key.
To achieve sub-millisecond read latency for DynamoDB, an in-memory caching layer like Amazon DynamoDB Accelerator (DAX) is required. To handle a write throughput of over updates per second without throttling, the write load must be evenly distributed across partitions. This is achieved by appending a random suffix to the partition key (write sharding) to prevent hot partitions.
Adım Adım Çözüm
Anahtar Kavram
Scaling read and write performance in DynamoDB using DAX and write sharding.