A financial technology company is launching a new ledger application that records transactions for millions of active accounts. The application requires a database tier that can handle a sustained write volume of transactions per second with a write latency of less than milliseconds. Additionally, the application must support read queries of account balances with a latency of less than millisecond for hot accounts during peak hours. The database must scale automatically to handle sudden spikes in traffic. Which of the following database design and caching configurations should a solutions architect implement to meet these requirements? (Select TWO.)
- Design the Amazon DynamoDB table using a high-cardinality attribute, such as `AccountID`, as the partition key to distribute write requests evenly across partitions.Answer
- Deploy an Amazon DynamoDB Accelerator (DAX) cluster to cache read requests for hot accounts, reducing read response times to microseconds.Answer
- CDesign the Amazon DynamoDB table using `TransactionDate` as the partition key to store and query transactions chronologically.
- DProvision an Amazon RDS for PostgreSQL DB instance with a Multi-AZ deployment, and configure a Read Replica to serve as the primary automated failover target during database outages.
- EConfigure the DynamoDB table with Provisioned Capacity Mode using fixed Write Capacity Units (WCUs) and Read Capacity Units (RCUs) calibrated for average load to minimize cost during traffic spikes.
Answer
To meet the requirements, the database must be designed with a high-cardinality partition key like the account identifier in Amazon DynamoDB to distribute writes, and a DynamoDB Accelerator (DAX) cluster must be deployed to provide microsecond read latency for hot accounts.
Designing the DynamoDB table with a high-cardinality partition key ensures writes are distributed evenly, avoiding partition bottlenecks. Deploying a DynamoDB Accelerator (DAX) cluster addresses the microsecond read latency requirement for hot accounts by serving read queries directly from an in-memory cache.
Step-by-Step Solution
Key Concept
Scaling database write throughput via partition key design in Amazon DynamoDB and optimizing read latency for hot keys using DynamoDB Accelerator (DAX).