A financial technology company is launching a global peer-to-peer payment application. The application requires a database backend that can handle two distinct workloads. First, it must record millions of transaction ledger entries per day in Amazon DynamoDB with low latency, avoiding partition write bottlenecks. Second, it must support a reporting database using Amazon RDS for PostgreSQL that requires high availability, automatic low-latency failover, and offloading read queries to optimize primary database performance. Which two database design configurations should the solutions architect select to meet these performance and high availability requirements? (Select two.)
- Design the Amazon DynamoDB table using a partition key with high cardinality, such as a combination of transaction UUID and user ID, to distribute write operations evenly across partitions.Cevap
- Configure Amazon RDS for PostgreSQL in a Multi-AZ deployment to provide automatic failover to a standby instance, and deploy RDS read replicas to offload read-heavy query traffic.Cevap
- CDesign the Amazon DynamoDB table using the transaction date formatted as YYYY-MM-DD as the partition key to group daily transactions and maximize sequential write performance.
- DConfigure Amazon RDS for PostgreSQL with read replicas in a different Availability Zone, and configure the application client to automatically promote a read replica to the primary role during an outage to minimize write downtime.
Cevap
The solutions architect should design the Amazon DynamoDB table using a partition key with high cardinality, such as a transaction UUID and user ID, to distribute writes evenly. Additionally, they should configure Amazon RDS for PostgreSQL in a Multi-AZ deployment and deploy read replicas to offload read traffic.
Designing the DynamoDB table with a high-cardinality partition key distributes write operations evenly across multiple partitions, preventing hot keys. Deploying Amazon RDS in a Multi-AZ configuration enables synchronous replication and automated, low-latency failover, while read replicas offload read operations from the primary instance.
Adım Adım Çözüm
Anahtar Kavram
High-performance database architectures require designing high-cardinality partition keys for Amazon DynamoDB to avoid write throttling, and deploying Amazon RDS in a Multi-AZ configuration with read replicas to achieve automated failover and read scaling.
Tahmini Süre:2m 0s