Compare / Memorystore vs Firestore

Memorystore vs Firestore

Both are fast, but one is a cache and the other a database. Memorystore is managed Redis or Valkey (and Memcached) in memory, for sub-millisecond reads of data you can rebuild. Firestore is a durable, serverless document database.

In 9 practice questions across 3 practice banks

Professional Cloud Database Engineer Capacity Planning & Cost

Your application stores session documents in Firestore and queries them by steps, sessionDuration, and energyBurned. After a 30 day test period, latency is acceptable but costs are high. Which Firestore change would reduce cost while preserving performance and availability?

  1. Denormalizing duplicates data, so it increases storage and writes rather than cutting cost.

  2. A Memorystore cache adds a new paid service and more to operate.

  3. Removing unneeded indexes reduces index storage and write costs without affecting the queries in use.

  4. Batched writes group operations atomically but each document write is still billed.

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

Try 20 questions free

At a glance

MemorystoreFirestore
RoleIn-memory cache and fast data structuresSystem of record for application data
DurabilityIn memory; persistence options, but treat as a cacheDurable, replicated storage
AccessKey-value and Redis data structuresDocuments with indexed queries and transactions
Typical useSession state, caching query results, leaderboardsUser profiles, catalogues, app state, mobile sync

Choose Memorystore when

  • You need to cut latency or load on a database by caching hot data.
  • You store session data or counters that can be rebuilt.
  • Sub-millisecond reads matter more than durability.

Choose Firestore when

  • The data must persist and be queried by several fields.
  • Web or mobile clients need real-time updates and offline sync.
  • You want serverless scaling without managing capacity.

Exam tip

Reducing latency in front of an existing database points to Memorystore; storing the data itself points to Firestore (or another database).

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.