PROFESSIONAL-CLOUD-DATABASE-ENGINEER · Question #16
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…
The correct answer is A. Use Firestore. Firestore is the correct choice because it has built-in offline persistence support for mobile SDKs (iOS, Android, web). When a device loses connectivity, Firestore automatically caches data locally; when connectivity is restored, it seamlessly syncs the locally cached changes…
Question
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?
Options
- AUse Firestore.
- BUse Cloud SQL with an external (public) IP address.
- CUse an in-app embedded database.
- DUse Cloud Spanner.
How the community answered
(55 responses)- A84% (46)
- B5% (3)
- C7% (4)
- D4% (2)
Explanation
Firestore is the correct choice because it has built-in offline persistence support for mobile SDKs (iOS, Android, web). When a device loses connectivity, Firestore automatically caches data locally; when connectivity is restored, it seamlessly syncs the locally cached changes to the backend. This makes it purpose-built for the intermittent connectivity scenario described. Cloud SQL (B) is a relational managed database with no native mobile offline/sync capability. An in-app embedded database (C) stores data only on the device and does not sync to a serverless backend on its own. Cloud Spanner (D) is a globally distributed relational database optimized for enterprise workloads and has no built-in mobile offline sync support.
Topics
Community Discussion
No community discussion yet for this question.