An organization is migrating its high-frequency financial ledger application to AWS. The system must meet two performance criteria: it must retrieve current transaction states with microsecond latency for active sessions, and it must write audit logs at a rate exceeding writes per second. The audit logs are queried chronologically by day. Which combination of database design and architectural strategies will meet these requirements? (Select TWO.)
- Store transaction states in Amazon DynamoDB and deploy Amazon DynamoDB Accelerator (DAX) to cache reads.Cevap
- For the audit log table, use a composite primary key consisting of a transaction UUID partition key and a timestamp sort key.Cevap
- CConfigure the audit log DynamoDB table with a timestamp partition key to align with chronological query patterns.
- DStore transaction states in an Amazon RDS Multi-AZ DB cluster, using RDS Read Replicas as the primary target for application write operations during peak load periods.
- ESet the audit log DynamoDB table to Provisioned Capacity Mode with static write capacity units scaled to peak workload values to manage unpredictable, spiky traffic.
Cevap
The optimal strategy is to cache transaction state reads with DynamoDB Accelerator (DAX) to achieve microsecond latency, and to use a high-cardinality partition key (such as a transaction UUID) with a timestamp sort key for the audit logs to distribute write traffic evenly across DynamoDB partitions.
Caching transaction states using Amazon DynamoDB Accelerator (DAX) provides the required microsecond latency for active session lookups. Additionally, using a transaction UUID as the partition key and a timestamp as the sort key for the audit log table ensures write operations are evenly distributed across multiple physical partitions, preventing write bottlenecks while still supporting chronological queries.
Adım Adım Çözüm
Anahtar Kavram
Designing high-performing AWS database architectures requires combining in-memory caching (such as DAX) for microsecond reads with proper partition key design (avoiding monotonically increasing attributes) to scale write throughput uniformly.