A solutions architect is designing a high-performance database solution for a social media application. The application must support a high volume of writes for user activities and requires sub-millisecond latency for reading popular user profiles. The workload experiences highly unpredictable, spiky traffic. Which combination of database configurations should the solutions architect select to meet these requirements? (Select TWO.)
- Create an Amazon DynamoDB table using a high-cardinality attribute such as a unique user ID for the partition key.Answer
- Deploy an Amazon DynamoDB Accelerator (DAX) cluster to cache read requests for the session and profile data.Answer
- CCreate an Amazon DynamoDB table using a monotonically increasing attribute such as a creation timestamp for the partition key.
- DDeploy Amazon RDS for PostgreSQL with multiple Read Replicas configured to automatically handle write failover during peak traffic.
- EConfigure Amazon DynamoDB in provisioned capacity mode with a static, low read/write limit to reduce overall service consumption.
Answer
Create an Amazon DynamoDB table using a high-cardinality attribute such as a unique user ID for the partition key, and deploy an Amazon DynamoDB Accelerator (DAX) cluster to cache read requests for the session and profile data.
Implementing Amazon DynamoDB with a high-cardinality partition key (such as a unique user ID) prevents write bottlenecks by distributing traffic evenly across physical partitions. Coupling this with Amazon DynamoDB Accelerator (DAX) provides the required sub-millisecond latency for hot read requests by serving them from an in-memory cache.
Step-by-Step Solution
Key Concept
High-performing database designs using DynamoDB partition scaling and caching strategies.