Google Cloud Digital LeaderInfrastructure modernization with Google CloudMedium
A small startup is building a new mobile application that requires a flexible, non-relational database. The application needs to store user profiles, game scores, and real-time chat messages. Data consistency is important, but the schema may evolve over time. The developers want a fully managed service that offers high availability and automatic scaling without requiring database administration. Which Google Cloud database product should they choose?
- ACloud Bigtable
- BCloud Spanner
- CCloud SQL
- DFirestore
Show answer & explanationAnswer & explanation
Correct answer: D. Firestore
Firestore is a fully managed, serverless NoSQL document database designed for mobile, web, and server development, offering flexible schema, real-time synchronization, and automatic scaling without database administration, perfectly suiting the startup's needs.
Why the other options are wrong
- A. Cloud Bigtable is a NoSQL wide-column database optimized for large analytical and operational workloads, not typically the best fit for general mobile app backends with flexible schemas and real-time chat needs.
- B. Cloud Spanner is a globally distributed relational database, overkill for a small startup's mobile app and not non-relational.
- C. Cloud SQL is a relational database, not non-relational, and requires some administration.
Firestore
A flexible, scalable NoSQL document database for mobile, web, and server development from Firebase and Google Cloud, offering real-time data synchronization.
- NoSQL document model (flexible schema)
- Real-time data synchronization
- Fully managed, serverless, automatic scaling
Memory trick: Firestore: Your flexible friend for mobile apps, real-time and free from ops.