A gaming company is launching a multiplayer mobile game. The backend application requires a highly scalable data store to manage active player session states (such as scores and connection statuses) that are updated frequently and must expire after 24 hours of inactivity. The application also needs to cache static, read-heavy matchmaking lobby configurations to minimize database read latency.
Which combination of strategies should a developer implement to meet these requirements? (Select TWO.)
- Store player session states in an Amazon DynamoDB table with Time to Live (TTL) enabled, and retrieve session records using Query operations based on unique player IDs.Answer
- Deploy an Amazon ElastiCache for Memcached cluster to cache the static matchmaking configurations and game rule metadata.Answer
- CStore player session states in an Amazon DynamoDB table, and retrieve active sessions using periodic Scan operations filtered by session state.
- DStore session database access credentials in AWS Systems Manager Parameter Store and enable automatic credential rotation.
- EStore player session states in an Amazon DynamoDB table using a single partition key value for all active game lobbies to simplify partition management.
Answer
The correct strategies are to store player session states in an Amazon DynamoDB table with Time to Live (TTL) enabled, retrieving them using Query operations based on unique player IDs, and to deploy an Amazon ElastiCache for Memcached cluster to cache static matchmaking configurations.
The correct strategies involve using Amazon DynamoDB with Time to Live (TTL) enabled for player session states, retrieving them using Query operations based on unique player IDs, and deploying an Amazon ElastiCache for Memcached cluster to cache static matchmaking configurations. DynamoDB with TTL automatically deletes expired session data without consuming write capacity. Querying DynamoDB by player ID ensures low-latency single-item lookups. ElastiCache for Memcached is ideal for simple, read-heavy key-value configurations, which offloads read requests from the primary database.
Step-by-Step Solution
Key Concept
Application Caching and Session State Management