Google Cloud Associate Cloud Engineer — Question 190
You are building a multi-player gaming application that will store game information in a database. As the popularity of the application increases, you are concerned about delivering consistent performance. You need to ensure an optimal gaming performance for global users, without increasing the management complexity. What should you do?
Answer options
- A. Use Cloud SQL database with cross-region replication to store game statistics in the EU, US, and APAC regions.
- B. Use Cloud Spanner to store user data mapped to the game statistics.
- C. Use BigQuery to store game statistics with a Redis on Memorystore instance in the front to provide global consistency.
- D. Store game statistics in a Bigtable database partitioned by username.
Correct answer: B
Explanation
The correct answer is B because Cloud Spanner provides global distribution and horizontal scalability, which are essential for optimal performance in a multiplayer gaming application. Option A, while beneficial for regional access, does not provide the same level of scalability. Option C introduces complexity by combining different technologies, and option D lacks the necessary performance characteristics for a large-scale application.