Hard1 markMultiple Choice
Domain 1: Designing and Planning a Cloud Solution ArchitectureDomain 1Cloud SpannerMulti-regionDatabase Architecture

GCP PCA · Question 36 · Domain 1: Designing and Planning a Cloud Solution Architecture

You are designing a global financial application using Cloud Spanner. The application requires strong consistency and high availability across the US and Europe. You have chosen a multi-region Spanner configuration. Which TWO statements accurately describe how Cloud Spanner handles data replication and leader election in a multi-region setup? (Select TWO)

Answer options:

A.

Spanner uses the Paxos algorithm to achieve consensus across regions.

B.

Read-only replicas can participate in leader election.

C.

One region is designated as the default leader region, which processes all write requests.

D.

If the leader region fails, the database becomes read-only until manual intervention occurs.

E.

Data is replicated asynchronously to ensure low write latency.

How to approach this question

Recall the underlying architecture of Cloud Spanner: Paxos consensus, synchronous replication, and default leader regions.

Full Answer

Cloud Spanner achieves its unique combination of global scale and strong relational consistency using the Paxos consensus algorithm. In a multi-region setup, one region is designated as the default leader. All writes go to the leader, which uses Paxos to synchronously replicate the data to voting replicas in other regions before acknowledging the write. Read-only replicas exist to serve local reads but do not vote.

Common mistakes

Believing replication is asynchronous (E). Asynchronous replication would lead to eventual consistency, but Spanner guarantees strong consistency.

Practice the full GCP Professional Cloud Architect Practice Exam 3

50 questions · hints · full answers · grading

More questions from this exam