Compare / Firestore vs Cloud SQL

Firestore vs Cloud SQL

Firestore is a serverless document database that scales automatically and syncs to mobile and web clients. Cloud SQL is managed relational databases with SQL, joins and the features of MySQL, PostgreSQL or SQL Server.

In 34 practice questions across 7 practice banks

Professional Cloud Developer Data Storage

You are developing a new mobile game that will be deployed on GKE and Cloud Run as a set of microservices. Currently, there are no projections for the game’s user volume. You need to store the following data types: • Data type 1: leaderboard data • Data type 2: player profiles, chats, and news feed • Data type 3: player clickstream data for BI You need to identify a data storage solution that is easy to use, cost-effective, scalable, and supports offline caching on the user’s device. Which data storage option should you choose for the different data types?

  1. Memorystore lacks offline-capable client libraries.

  2. Spanner has no offline caching, and Bigtable is wrong for BI feeds.

  3. Cloud SQL likewise cannot do device-side offline caching.

  4. Firestore covers leaderboard + profiles; BigQuery covers BI.

Pick an answer to see why each option is right or wrong.

Try 20 questions free

At a glance

FirestoreCloud SQL
Data modelDocuments in collectionsTables, rows, foreign keys
QueriesIndexed queries on fields; no joinsFull SQL with joins and aggregations
ScalingAutomatic, serverlessBigger instance and read replicas
Client accessMobile and web SDKs, real-time listeners, offline syncServer-side connections
SchemaFlexible per documentDefined up front

Choose Firestore when

  • The data is hierarchical or document-shaped and the schema evolves.
  • Mobile or web clients need real-time updates and offline support.
  • You want automatic scaling with no database server to manage.

Choose Cloud SQL when

  • The data is highly relational and queried with joins.
  • You are moving an existing SQL database or need a specific engine.
  • Reporting tools expect standard SQL over the same data.

Exam tip

Phrases like "flexible schema", "real-time sync" or "mobile app" point to Firestore. "Existing MySQL or PostgreSQL", "joins" or "transactions across tables" point to Cloud SQL.

Practice banks covering this comparison

Counts match names or aliases from both sides of the comparison in question text or answer options, including incorrect options. They do not measure how often a decision appears on the official exam.