A solutions architect is designing a high-performance database tier for a web application. The application requires a caching layer to reduce read latency of frequently accessed database queries to sub-milliseconds. Additionally, the application requires a key-value database to store user session data that can scale dynamically to support high write volume without performance degradation. Which two actions should the solutions architect take to meet these requirements? (Select TWO.)
- Deploy an Amazon ElastiCache cluster to cache frequently accessed read queries.Answer
- Design Amazon DynamoDB tables using partition keys with high cardinality, such as a unique user ID.Answer
- CCreate Amazon RDS Read Replicas and configure them as the primary targets for automatic disaster recovery write failover.
- DDesign Amazon DynamoDB tables using a monotonically increasing sequence or timestamp as the partition key.
- EConfigure AWS Lambda functions to run continuously to buffer and write incoming session data to Amazon S3.
Answer
Deploying an Amazon ElastiCache cluster to cache read queries and designing Amazon DynamoDB tables using a partition key with high cardinality.
The correct options are deploying an Amazon ElastiCache cluster and using partition keys with high cardinality for DynamoDB tables. ElastiCache is an in-memory caching service that reduces read latency to sub-milliseconds. High cardinality partition keys in DynamoDB ensure even write distribution across partitions, avoiding write throttling.
Step-by-Step Solution
Key Concept
High-performing database architectures using in-memory caching (ElastiCache) and proper partitioning strategies in NoSQL databases (DynamoDB) to optimize read and write latency.