Q19 — AWS SAA-C03 Ch.15

Question 19 of 100 | ← Chapter 15

Q1119. A company runs a mobile game app on AWS. The app stores data for every user session. The data updates frequently during a gaming session. The app stores up to 256 KB for each session. Sessions can last up to 48 hours.The company wants to automate the deletion of expired session data. The company must be able to restore all session data automatically if necessary.Which solution will meet these requirements?

Correct Answer: A. Use an Amazon DynamoDB table to store the session data.Enable point-in-time recovery (PITR) and TTL for the table. Select the corresponding attribute for TTL in the session data.

Explanation

The best solution to meet the requirements for storing and managing session data for a mobile game appis:A. Use an Amazon DynamoDB table to store the session data. Enable point-in-time recovery (PITR) and TTL for the table. Select the corresponding attribute for TTL in the session data.Explanation:Amazon DynamoDB can efficiently store session data with low latency and supports TTL (Time to Live), which allows automatic deletion of expired items based on a timestamp attribute. This meets the requirement for automating the deletion of expired session data.- Enabling point-in-time recovery (PITR) provides the ability to restore the table to any point in time within the last 35 days, ensuring that all session data can be restored if necessary.Why Other Options Are Not Suitable:B: While Amazon MemoryDB provides in-memory data storage, it is not designed for automatic TTL deletion like DynamoDB and lacks PITR capabilities.C: Using Amazon S3 with the S3 Standard storage class and S3 Lifecycle configuration could expire objects, but it does not provide point-in-time recovery for individual objects. Additionally, managing session data with frequent updates is less efficient in S3 compared to DynamoDB.D: Similar to option C, storing session data in S3 (even with Intelligent-Tiering and versioning) does not meet the requirement for efficient updates and automatic deletion with TTL, nor does it provide the same level of data recovery options as DynamoDB.Thus, option A is the most effective solution for handling user session data in this scenario.