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

Memorystore Study Notes

Memorystore is Google Cloud's fully managed in-memory data store service offering Memorystore for Redis, for Valkey, and for Memcached. It provides sub-millisecond data access for caching, session management, gaming leaderboards, and real-time analytics without managing your own cache servers. Instances run inside your VPC for private, low-latency connectivity from Compute Engine, GKE, and other services.

Exam tip: Session cache, leaderboard with sorted sets, or sub-millisecond cache in the stem means Memorystore for Redis; simple ephemeral caching means Memcached.

Key facts

What the exam expects you to know

Memorystore vs Cloud SQL: when to use which

Use Memorystore when you need extremely fast, in-memory access to frequently read data such as sessions, cached queries, or leaderboards, and you can tolerate rebuilding that data from a source system. Use Cloud SQL when you need durable, transactional, relational storage as the system of record with backups and strong consistency. In most architectures they are used together: Cloud SQL stores the truth and Memorystore accelerates reads in front of it. The exam expects this layered pattern rather than treating a cache as a replacement for the database. See also the Cloud SQL notes.

Useful gcloud commands

gcloud redis instances create my-cache --size=5 --region=us-central1 --tier=standard --redis-version=redis_7_0
gcloud redis instances list --region=us-central1
gcloud memcache instances create my-memcache --nodes=1 --node-cpu=1 --node-memory=1GB --region=us-central1

Common exam traps

Frequently asked questions

When should I pick Redis over Memcached in Memorystore?

Pick Redis when you need persistence options, replication with failover, or rich data structures like sorted sets, lists, and pub/sub messaging. Pick Memcached when you only need a simple, distributed key-value cache that scales across many nodes and losing cached data is acceptable. The exam uses features mentioned in the scenario to distinguish the two engines.

How does Memorystore connect to my applications?

Memorystore instances receive a private IP address in your VPC and applications connect from resources in the same network, such as Compute Engine VMs or GKE clusters, using the Redis or Memcached protocol. Private Service Access or Private Service Connect establishes the private path. There is no public endpoint by default, which keeps cache traffic secure and low latency.

Can Memorystore replace my main database?

No, Memorystore is designed as a fast caching and real-time layer in front of a durable database, not as the sole system of record. Redis persistence reduces risk but eviction, failover, and memory limits mean authoritative data should live in Cloud SQL, Firestore, or another persistent store. Exam architectures pair Memorystore with a primary database for this reason.

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.