Original study notes for cloud certification exams — Google Cloud first, more clouds in build.

Firestore Study Notes

Firestore is a fully managed, serverless document database for building mobile, web, and server applications with real-time synchronization and offline support. Data is stored as documents in collections, queried with a flexible model, and scaled automatically without managing servers or clusters. Firestore also offers Datastore mode for compatibility with the legacy Datastore API and entity model.

Exam tip: Real-time listeners, offline sync, or mobile and web app backend in the question stem is a direct signal for Firestore in Native mode.

Key facts

What the exam expects you to know

Firestore vs Bigtable: when to use which

Use Firestore when building user-facing applications that need document storage, flexible queries, real-time updates, and offline sync for mobile and web clients with minimal operational management. Use Bigtable when ingesting massive volumes of time-series or operational data at millions of operations per second with access primarily by row key and no need for client SDK features. The exam distinction is audience and scale pattern: app developers and live user data point to Firestore, while backend data engineering at petabyte scale points to Bigtable. See also the Bigtable notes.

Useful gcloud commands

gcloud firestore databases create --location=us-central1 --type=firestore-native
gcloud firestore indexes composite create --database='(default)' --collection-group=orders --query-scope=COLLECTION
gcloud firestore export gs://my-bucket/backup --database='(default)'

Common exam traps

Frequently asked questions

What is the difference between Native mode and Datastore mode?

Native mode is the full Firestore experience with real-time listeners, offline client caching, and mobile and web SDKs for new applications. Datastore mode uses the Datastore API and client libraries for server applications, without real-time or offline features, mainly for existing Datastore users. You choose the mode when creating the database and cannot switch it later.

How does Firestore secure direct client access?

Firestore uses Security Rules written in a dedicated language that evaluates each read and write against the authenticated user and the document data. Rules can allow users to access only their own documents and reject all other requests by default. Combined with Firebase Authentication, this provides safe direct client access without a custom API layer.

Can Firestore replace a relational database?

Firestore can replace a relational database only when the application fits a document model with denormalized data and query-driven design. It does not provide joins, complex multi-table transactions in SQL style, or ad hoc relational reporting. For those needs the exam expects Cloud SQL for regional apps or Spanner for global transactional systems instead.

Study aid disclaimer: Cloud Cert Notes is an independent educational study aid. It is not affiliated with, endorsed by, or sponsored by Google, Microsoft, Amazon, Oracle, or Alibaba. Google Cloud, Associate Cloud Engineer, and Cloud Digital Leader are trademarks of Google LLC; all other certification names and product names are trademarks of their respective owners. Always confirm service details against the official provider documentation before sitting an exam.