exam questions

Exam AWS Certified Solutions Architect - Associate SAA-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Associate SAA-C02 exam

Exam AWS Certified Solutions Architect - Associate SAA-C02 topic 1 question 306 discussion

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.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Alileva
Highly Voted 3 years, 8 months ago
Answer is B https://aws.amazon.com/blogs/database/building-a-real-time-gaming-leaderboard-with-amazon-elasticache-for-redis/
upvoted 64 times
...
syu31svc
Highly Voted 3 years, 8 months ago
https://aws.amazon.com/blogs/database/building-a-real-time-gaming-leaderboard-with-amazon-elasticache-for-redis/ AWS Blog title says it all B is the answer
upvoted 23 times
Jobair
2 years, 7 months ago
Indeed, Redis "Supports a data structure optimized to handle leaderboard use cases."
upvoted 1 times
...
...
sb555555
Most Recent 3 years, 1 month ago
Selected Answer: B
has to be redis
upvoted 3 times
...
envest
3 years, 4 months ago
IMO: of course B, https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/elasticache-use-cases.html
upvoted 1 times
...
Farsim
3 years, 4 months ago
Selected Answer: B
I think its B....Elasticache for Redis has sub millisecond latency when retrieving data
upvoted 2 times
...
jj22222
3 years, 5 months ago
BBBBBBBBBBBBB
upvoted 4 times
...
pikaflash
3 years, 5 months ago
Selected Answer: B
https://aws.amazon.com/blogs/database/building-a-real-time-gaming-leaderboard-with-amazon-elasticache-for-redis/
upvoted 3 times
...
Milan_S
3 years, 6 months ago
I am confused between choices A & B. Can anyone explain why memcached can't be an option ?
upvoted 2 times
Lotzy
3 years, 3 months ago
I think it's about persistence, with Redis you can persist the cache, while Memcached will be lost on a restart of the service (but even so you will still have the MySQL DB, so yes, a bit confusing). Also "Memcached is designed for simplicity while Redis offers a rich set of features that make it effective for a wide range of use cases." from here https://aws.amazon.com/elasticache/redis-vs-memcached/, so maybe is suitable for more complex data caching needed for game sessions and scores. And one more thing: B answer contains word "compute", which I suppose is needed for ranking.
upvoted 5 times
...
...
Ultron00
3 years, 6 months ago
B https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/elasticache-use-cases.html
upvoted 1 times
...
kernel1973
3 years, 6 months ago
C Redis lets you sort and rank data, allowing you to support, say, an online gaming application that maintains a leaderboard ranking the top users. The fact that Redis can persist data makes it possible to use Redis to maintain session caching, potentially improving performance.
upvoted 2 times
...
ecastilla
3 years, 7 months ago
I think it's D: "near real-time"
upvoted 1 times
...
Cotter
3 years, 7 months ago
B or D?
upvoted 1 times
jiaminjiamin
2 years, 10 months ago
One key difference between sorted sets and relational databases is when the tool sorts the list. During insert or update operations, sorted sets automatically position the item in the right order. Because of this pre-sorting, queries run significantly faster. You can quickly and efficiently query the middle of the list or get the rank of a specific member. Sorted sets finds specific rankings logarithmically, proportional to the number of members. By contrast, relational databases order items during querying, adding computational burden to the database. Obtaining the rank of a specific player involves quadratic time complexity. https://aws.amazon.com/blogs/database/building-a-real-time-gaming-leaderboard-with-amazon-elasticache-for-redis/
upvoted 1 times
...
...
IdrisAWS
3 years, 7 months ago
Answer is B Gaming leaderboards enable players to gauge their performance against each other. This important social feature increases players’ engagement and encourages competition. Leaderboard data can also inform in-game algorithms that match players against competitors of similar skill levels. In this post, I explore the challenges around building and scaling gaming leaderboards using traditional relational databases. I also examine how to leverage modern in-memory data stores such as Redis to provide a highly efficient and scalable solution. This proposed solution pushes leaderboard storage and querying away from the relational database toward the more versatile Amazon ElastiCache for Redis. The approach outlined here applies not only to gaming leaderboards, but generally to any situation for generating ranking within an application.
upvoted 8 times
...
NarikNinja
3 years, 7 months ago
Ans: D requirement is of reporting, so read replica will do. Preserving is distractor
upvoted 2 times
...
abdelrhman
3 years, 7 months ago
B for me https://aws.amazon.com/blogs/database/building-a-real-time-gaming-leaderboard-with-amazon-elasticache-for-redis/
upvoted 4 times
...
cryogenic007
3 years, 8 months ago
I was hesitant with A initially but looking at this on AWS portal it makes sense to go with A. https://aws.amazon.com/elasticache/redis/ Use cases: Amazon ElastiCache for Redis is a great choice for real-time transactional and analytical processing use cases such as caching, chat/messaging, gaming leaderboards, geospatial, machine learning, media streaming, queues, real-time analytics, and session store.
upvoted 3 times
cryogenic007
3 years, 7 months ago
My bad, I meant to say B instead of A.
upvoted 5 times
...
...
jkwek
3 years, 8 months ago
Answer is B. The url revealed the answer. https://aws.amazon.com/blogs/database/building-a-real-time-gaming-leaderboard-with-amazon-elasticache-for-redis/ Redis offers one highly efficient and scalable solution. Redis is an in-memory data store that supports basic key-value functionality. It also supports a variety of data structures such as hashes, lists, sets, sorted sets, range queries, and geospatial indexes. This suggests the potential advantages of storage and querying through ElastiCache for Redis instead of through relational databases.
upvoted 6 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...