Services Español / Spanner

Spanner for Google Cloud certification exams

Spanner is a relational database that scales horizontally with strong, externally consistent transactions, within a region or across continents. It is the answer when relational data outgrows a single server.

In 133 practice questions across 10 practice banks

Professional Cloud Database Engineer High Availability & DR

You are migrating your company’s critical ecommerce platform from an on-premises PostgreSQL database (utilizing PostgreSQL stored procedures) to a highly available solution on Google Cloud. The platform requires an extremely low downtime (Recovery Time Objective (RTO) – 5 minutes) and minimal data loss (Recovery Point Objective – 30 seconds). The platform serves a global customer base with peak traffic distributed across multiple continents, though the primary transactional data resides in a single geographic region for regulatory compliance. You need to design a cloud database solution that meets the RTO/RPO requirements while optimizing for global read access and local transactional integrity. What should you do?

  1. 'Single-instance multi-region Spanner' is a contradiction, and moving off PostgreSQL breaks the stored-procedures constraint.

  2. HA AlloyDB in-region + cross-region replicas meets RTO/RPO and global-read/local-write needs.

  3. A same-zone replica gives no regional resilience.

  4. 'Multi-regional Cloud SQL' deployment doesn't exist; Cloud SQL is regional with manual cross-region failover.

Pick an answer to see why each option is right or wrong.

Try 20 questions free

Key concepts for practice

  • Regional and multi-region configurations trade latency against availability.
  • Choose primary keys that spread writes; avoid monotonically increasing keys.
  • Interleaved tables and secondary indexes shape query performance.
  • It supports GoogleSQL and a PostgreSQL interface.