D1: Caching Solutions
Google Cloud Professional Cloud Developer exam practice questions · 10 flashcards
Question
Why cache?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Caching Solutions practice questions and answers
- Why cache?Reduce latency and backend load for frequently read data.
- Memorystore options?Redis, Redis Cluster, Valkey and Memcached.
- What is cache-aside?App checks cache first; on miss reads DB and populates cache.
- What is write-through caching?Writes go to cache and database together.
- What is TTL?Time-to-live after which cached data expires.
- How to cache static content?Cloud CDN with an external Application Load Balancer.
- Cache invalidation strategies?TTL expiry, explicit delete on update, versioned keys.
- How do apps reach Memorystore from Cloud Run?Direct VPC egress or Serverless VPC Access connector.
- When not to cache?Highly volatile data needing strong consistency.
- Redis vs Memcached?Redis: data structures, persistence, replication. Memcached: simple, multithreaded key-value cache.