Selecting Cloud Spanner for global relational scale
Short answer
C Choose Cloud Spanner, the only listed service combining horizontal scaling, global consistency, and relational transactions.
Question
Key Takeaways
Global relational workloads with horizontal scaling point to Cloud Spanner, the only Google Cloud database combining sharded multi-region scale, TrueTime-backed global consistency, and full SQL transactions. Cloud SQL scales vertically within a region, Firestore in Datastore mode is a NoSQL document store without relational joins, and Cloud Bigtable is NoSQL without multi-row transactions. That combination of all three requirements makes Cloud Spanner the correct choice.
Expert Analysis
C. Cloud Spanner provides horizontal scaling, global consistency, and relational transactions - the only GCP DB with all three. Cloud SQL (A) is not horizontally scalable. Firestore (B) is NoSQL without joins. Bigtable (D) is NoSQL without transactions.
The deciding constraint is the combination of three requirements at once: horizontal scalability, global consistency, and relational transactions. Cloud Spanner is the only service in the option set that satisfies all three simultaneously. It is a fully relational, SQL-compatible database that scales out by splitting data across nodes and regions, and it uses TrueTime-backed externally consistent transactions, so a transaction committed in one region is immediately visible everywhere with serializable isolation. Because the application needs "globally consistent relational transactions," a database that drops any one of those three properties fails the requirement regardless of its other strengths.
Option A, Cloud SQL for PostgreSQL, delivers relational transactions and strong consistency within a single region, but its scaling ceiling is vertical: you raise the machine tier rather than adding nodes. It has read replicas for read throughput, yet writes still flow to the primary instance, so it does not offer horizontal write scalability and it is not a globally distributed system. A regional primary with asynchronous replicas also cannot promise global consistency across regions.
Option B, Firestore in Datastore mode, is a document database. It scales horizontally and offers multi-region entity group transactions with strong consistency for the entities it touches, but it models data as entities and properties rather than tables with joins, so it does not provide the relational transaction semantics the application requires. Choosing it would force the application to abandon joins and relational integrity.
Option D, Cloud Bigtable is a wide-column NoSQL store built for high-throughput analytical and time-series workloads. It scales horizontally across nodes, but it deliberately omits multi-row transactions and SQL joins; its data model is keyed row access, which is exactly the opposite of relational transactions.
One mechanism this question leans on but never spells out is the difference between vertical and horizontal write scaling: a Cloud SQL primary accepts writes on one instance, so capacity grows by resizing that instance, whereas Cloud Spanner distributes rows across a sharded, multi-region topology and adds throughput by adding nodes. That distinction is what makes "horizontally scalable" disqualify Cloud SQL even though it otherwise looks like the natural relational choice.
The remaining discriminator is the word "relational." Firestore and Bigtable can be made to scale globally, but neither offers relational schema and transaction semantics, so the answer must be Cloud Spanner, option C.
Exam Strategy
When a question stacks multiple non-negotiable requirements (here: horizontal scale, global consistency, relational transactions), score every option against the full list rather than the most prominent word. "Relational" alone tempts you toward Cloud SQL, but the horizontal-scaling clause eliminates it. Recognize the classic GCP distractor pattern: each wrong option satisfies exactly two of the three traits, leaving Cloud Spanner as the only complete match.
Related Analysis
Practice All PCD Questions
Access 84 questions with complete answers and detailed explanations.
View Full PCD Practice Test →