Q34 — AWS SAA-C03 Ch.5
Question 34 of 65 | ← Chapter 5
Q334. A company has developed a new video game as a web application. The application is in a three-tier architecture in a VPC with Amazon RDS for MySQL in the database layer. Several players will compete concurrently online. The game' s developers want to display a top-10 scoreboard in near-real time and offer the ability to stop and restore the game while preserving the current scores. What should a solutions architect do to meet these requirements?
- A. Set up an Amazon ElastiCache for Memcached cluster to cache the scores for the web application to display.
- B. Set up an Amazon ElastiCache for Redis cluster to compute and cache the scores for the web application to display. ✓
- C. Place an Amazon CloudFront distribution in front of the web application to cache the scoreboard in a section of the application.
- D. Create a read replica on Amazon RDS for MySQL to run queries to compute the scoreboard and serve the read traffic to the web application.
Correct Answer: B. Set up an Amazon ElastiCache for Redis cluster to compute and cache the scores for the web application to display.
Explanation
This solution meets the requirements mentioned in the question. Amazon ElastiCache for Redis is a fully managed, in-memory data store that can be used to implement high-performance applications. In this case, it can be used to compute and cache the scores for the top-10 scoreboard in near-real time. Additionally, ElastiCache for Redis allows for persistence of data, so the ability to stop and restore the game while preserving the current scores can be achieved.Option A (using ElastiCache for Memcached) would not be a good choice because Memcached does not support persistence of data. As a result, if the system is stopped, all cached data will be lost and the scoreboard will have to be recomputed.Option C (using CloudFront distribution) is more suited to caching static content like images, CSS files, and other web assets, rather than dynamic content like a scoreboard. Option D (creating a read replica on Amazon RDS) could work, but it would require additional effort to implement and manage the read replica, as well as the implementation of a caching mechanism to serve the read traffic to the web application.