
Ultimate access to all questions.
How can you design an Android game to synchronize data with a Google Cloud serverless database—logging user activity, storing preferences, and receiving updates—while accommodating users in developing countries with unreliable internet connectivity?
A
Use Firestore.
B
Use Cloud SQL with an external (public) IP address.
C
Use an in-app embedded database.
D
Use Cloud Spanner.
Explanation:
The correct answer is A. Use Firestore. Firestore is a serverless database that is part of Google's Firebase platform, designed to store and sync data for client- and server-side development. It is particularly well-suited for mobile applications like the Android game described, as it offers offline data persistence. This means the game can continue to function and collect data even when the internet connection is intermittent, and then sync the data to the backend once the connection is restored. Cloud SQL with an external (public) IP address (B) is not serverless and would not provide the offline capabilities needed. An in-app embedded database (C) would not synchronize data to a backend database. Cloud Spanner (D) is a globally distributed database service designed for large-scale applications and does not offer the offline synchronization features that Firestore does.