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
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?
-
Memorystore lacks offline-capable client libraries.
-
Spanner has no offline caching, and Bigtable is wrong for BI feeds.
-
Cloud SQL likewise cannot do device-side offline caching.
-
Firestore covers leaderboard + profiles; BigQuery covers BI.
Pick an answer to see why each option is right or wrong.
Try 20 questions freeAt a glance
| Firestore | Cloud SQL | |
|---|---|---|
| Data model | Documents in collections | Tables, rows, foreign keys |
| Queries | Indexed queries on fields; no joins | Full SQL with joins and aggregations |
| Scaling | Automatic, serverless | Bigger instance and read replicas |
| Client access | Mobile and web SDKs, real-time listeners, offline sync | Server-side connections |
| Schema | Flexible per document | Defined 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.
- PCD Professional Cloud Developer · 9 questions
- PCDE Professional Cloud Database Engineer · 8 questions
- ACE Associate Cloud Engineer · 7 questions
- CDL Cloud Digital Leader · 4 questions
- PCA Professional Cloud Architect · 3 questions
- PDE Professional Data Engineer · 2 questions
- ADP Associate Data Practitioner · 1 question
More comparisons
- Spanner vs Cloud SQL
- Firestore vs Bigtable
- Memorystore vs Firestore
- BigQuery vs Cloud SQL
- BigQuery vs Bigtable
- Dataflow vs Dataproc
- Cloud Run vs GKE
- Cloud Composer vs Workflows
- Cloud SQL for PostgreSQL vs AlloyDB
- Shared VPC vs VPC Network Peering
- Cloud VPN vs Cloud Interconnect
- Cloud Storage classes: Standard, Nearline, Coldline or Archive?
- Cloud Run functions vs Cloud Run services
- Cloud Armor vs VPC firewall rules
- Looker vs Looker Studio
- Pub/Sub vs Cloud Tasks
- App Engine vs Cloud Run
- Google-managed keys vs Customer-managed keys (CMEK)
- Identity-Aware Proxy vs VPN
- Compute Engine vs GKE
- Spanner vs Bigtable
- Dataproc vs BigQuery
- GKE Autopilot vs Standard: which mode to choose?
- Vertex AI vs BigQuery ML
- VPC Service Controls vs IAM
- Private Google Access vs Cloud NAT