Google Cloud Professional Cloud Database Engineer — Question 23
You are building an Android game that needs to store data on a Google Cloud serverless database. The database will log user activity, store user preferences, and receive in-game updates. The target audience resides in developing countries that have intermittent internet connectivity. You need to ensure that the game can synchronize game data to the backend database whenever an internet network is available. What should you do?
Answer options
- A. Use Firestore.
- B. Use Cloud SQL with an external (public) IP address.
- C. Use an in-app embedded database.
- D. Use Cloud Spanner.
Correct answer: A
Explanation
The correct answer is A, as Firestore is designed for mobile applications and supports offline capabilities, allowing the game to sync data when the internet is available. Option B, Cloud SQL, requires a stable connection and is not ideal for intermittent connectivity. Option C, an in-app embedded database, would not sync data with the cloud effectively. Option D, Cloud Spanner, is more suited for large-scale applications and may be overly complex for this use case.