Google Cloud Engineer interview question · Most asked
Compare Google Cloud's database options: Cloud SQL, AlloyDB, Spanner, Firestore and Bigtable.
Comparison Asked in Cloud Engineer interviews
Summary
Cloud SQL: managed MySQL, PostgreSQL and SQL Server for typical relational apps. AlloyDB: PostgreSQL-compatible with higher performance and analytics acceleration. Spanner: relational and strongly consistent at global scale with very high availability. Firestore: serverless document database for app backends and mobile sync. Bigtable: wide-column store for huge, low-latency key-based workloads such as time series and IoT.
Longer Answer
| Need | Choose |
|---|---|
| Standard relational app, regional | Cloud SQL |
| Heavy PostgreSQL workloads, mixed OLTP/analytics | AlloyDB |
| Global relational scale, 99.999% multi-region | Spanner |
| Mobile/web documents, offline sync, serverless | Firestore |
| Massive throughput by row key, time series | Bigtable |
| Analytics over large datasets | BigQuery (a warehouse, not an OLTP store) |
| Cache | Memorystore (Redis or Valkey) |
Key Points
- Cloud SQL for typical relational apps.
- AlloyDB for demanding PostgreSQL.
- Spanner for global, strongly consistent scale.
- Firestore for documents; Bigtable for wide-column at scale.
- BigQuery for analytics.
Explanation
What interviewers look for
Picking by consistency, scale, data model and cost rather than naming everything.
More Google Cloud Engineer questions
- How do you design a Google Cloud landing zone for a company with several teams?
- How do you run Terraform for Google Cloud safely in a team?
- How does IAM work in Google Cloud, and why should you avoid basic roles?
- When would you choose Cloud Run, GKE or Compute Engine?
- What are service accounts, and how should workloads authenticate without service account keys?
- Explain Google Cloud's resource hierarchy: organisation, folders, projects and resources.
- How is networking in a Google Cloud VPC different from AWS?
- Design a highly available web application on Google Cloud.