Prepare and test your skills

Prepare and test your skills

Free sample question with answers and detailed explanation below. The Professional Cloud Database Engineer practice bank has an additional 769 practice questions.Try 10 free realistic questions: instant score, no credit card, and no account required.
A financial services company is deploying a Cloud Spanner database for a global payment processing platform. The architecture team has defined strict reliability and performance requirements:
Which replica placement strategy should the architecture team choose to meet these requirements?
In Cloud Spanner, read-write replicas store a full copy of the data, serve reads, participate in leader elections, and vote to commit writes. Read-only replicas store a full copy of the data and serve reads, but they never participate in write quorums or leader elections.
Instead of two read-only replicas in the third region and one read-write replica in the second region, the topology used two read-write replicas in each of the two read-write regions and a voting witness (or fifth read-write) replica in the third region.
A regional Cloud Spanner configuration places three read-write replicas across different zones within a single Google Cloud region. Adding optional read-only replicas in other regions creates asynchronous copies of the data outside the primary region to help scale read workloads and reduce latency for geographically distributed readers.
The company only needed to protect against single-zone failures within one region (99.99% availability) while offloading read traffic to distant regions, and did not require automatic survival during an entire regional outage.
A witness replica is a lightweight voting component used in dual-region and multi-region Cloud Spanner configurations. Its sole purpose is to participate in write quorums and leader elections so that the cluster can achieve a majority consensus across regions without the storage and compute overhead of maintaining a full data replica in the witness region.
There is no scenario where a witness replica alone can serve as a leader or failover target; witness replicas only provide an extra vote alongside read-write replicas in multi-region or dual-region configurations.
A multi-region Cloud Spanner configuration distributes five voting replicas across three geographically separated regions: two read-write regions (each containing two read-write replicas, with one region serving as the default leader region) and a third witness region containing a witness replica. Adding optional read-only replicas in a custom configuration places non-voting data copies in a distant region to serve local read traffic.
This architecture separates the voting quorum (placed within regional proximity to keep synchronous write latency low while surviving single-region failure) from distant read-only replicas (placed near remote users without impacting write performance).
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated Validated