A sports media company is building a real-time leaderboard and voting system for a global event. The application needs to handle millions of concurrent users. The system must support sub-millisecond latency for retrieving leaderboard data, up to write operations per second during peak voting windows, and the ability to scale capacity dynamically to handle spiky workloads. The system must also mitigate write bottlenecks for highly popular candidates. Which TWO strategies should a solutions architect implement to design a high-performing database architecture? (Select TWO.)
- AConfigure the primary database table in Amazon DynamoDB using a monotonically increasing timestamp as the partition key to ensure chronological ordering of write operations.
- Deploy Amazon DynamoDB Accelerator (DAX) in front of the database table to cache read requests and offload query volume.Cevap
- CDeploy an Amazon Aurora MySQL database cluster and configure secondary Aurora Replicas to dynamically scale write capacity during peak voting windows.
- Implement write sharding by appending a random integer suffix to the candidate ID partition key when writing voting transactions to Amazon DynamoDB.Cevap
- EConfigure the Amazon DynamoDB table in Provisioned Capacity Mode with static read and write capacity units to handle the sudden, highly irregular spikes in voting traffic.
Cevap
The correct strategies are to deploy Amazon DynamoDB Accelerator (DAX) to cache read requests and implement write sharding by appending a random integer suffix to the candidate ID partition key when writing voting transactions.
The correct strategies are implementing DynamoDB Accelerator (DAX) and write sharding. Caching with DAX offloads read traffic and provides microsecond-level latency, meeting the sub-millisecond retrieval requirement. Write sharding by appending a random suffix to the candidate ID distributes the voting writes across multiple partitions, preventing a write bottleneck on the popular candidate keys.
Adım Adım Çözüm
Anahtar Kavram
Mitigating hot partitions via write sharding and caching read-heavy tables using DAX to achieve low-latency, high-throughput scaling.