Intrigued by the art of cloud architecture? Discover how to design, develop, and manage robust, secure, scalable, and dynamic solutions on Google Cloud as you prepare for the Professional Cloud Architect exam!
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
A global gaming company is architecting a low-latency caching and state store on Google Cloud to handle millions of active sessions. The engineering team requires horizontal write scalability across multiple shards and needs to scale out read throughput across multiple zones while maintaining minimal client response times.
The team decides to deploy Memorystore for Redis Cluster (or Memorystore for Valkey) in Cluster Mode Enabled with read replicas provisioned for each shard, configuring client connections to issue the READONLY command to read directly from replica nodes.
According to distributed systems design trade-offs and the CAP theorem, what architectural trade-off must the team accept with this configuration?
In distributed in-memory data stores like Memorystore for Redis Cluster and Memorystore for Valkey, Cluster Mode Enabled partitions data across multiple primary shards (from 1 to 250 shards) to achieve horizontal scalability. To maximize write performance and provide sub-millisecond response times, replication from primary nodes to read replicas is performed asynchronously.
READONLY command, reads do not wait for synchronous replication acknowledgments. If a primary node accepts a write, there is a propagation delay before that write reaches every replica, meaning replica reads may serve stale data.For ephemeral session states, leaderboards, and caching layers, sacrificing immediate strict consistency in exchange for massive horizontal read/write scale and minimal network latency provides the best performance balance.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.