A solutions architect is designing the database backend for a new multiplayer online game. The matchmaking system requires sub-millisecond read latency for fetching player state and matching profiles, and it must support a write throughput of writes per second during peak hours. Player profiles are updated frequently with new match statistics. The database must also support automatic failover across Multiple Availability Zones (Multi-AZ) with minimal downtime. Which database architecture should the solutions architect recommend to meet these requirements?
- Configure an Amazon DynamoDB table with DynamoDB Accelerator (DAX) for caching, utilizing a composite primary key consisting of a hashed player ID as the partition key and a game session ID as the sort key.Cevap
- BConfigure an Amazon DynamoDB table with DynamoDB Accelerator (DAX) using a partition key based on the player registration timestamp formatted as YYYY-MM-DD-HH.
- CConfigure an Amazon RDS for PostgreSQL database with a read replica in a second Availability Zone to serve as the primary automatic failover target, paired with Amazon ElastiCache for Redis.
- DConfigure an Amazon DynamoDB table with DynamoDB Accelerator (DAX) using Provisioned Capacity Mode set to a fixed Write Capacity Units (WCUs).
Cevap
Configure an Amazon DynamoDB table with DynamoDB Accelerator (DAX) for caching, utilizing a composite primary key consisting of a hashed player ID as the partition key and a game session ID as the sort key.
The configuration utilizing Amazon DynamoDB with DynamoDB Accelerator (DAX) and a composite key based on a hashed player ID is correct. DynamoDB natively replicates data across multiple Availability Zones, and DAX delivers sub-millisecond read latency for player profile lookups. A hashed partition key provides high cardinality, distributing the write load of writes per second evenly across partitions.
Adım Adım Çözüm
Anahtar Kavram
Selecting and configuring high-performance database architectures with appropriate caching and partition key strategies to avoid bottlenecks.
Tahmini Süre:2m 0s