Cloud Digital Leader Practice Question: Google Cloud products, services, and solutions
A company is running a PostgreSQL database on Cloud SQL and needs to ensure high availability with automatic failover in the event of a zone failure. Which configuration should they use?
⚠ Common exam trap
Google Cloud often tests the distinction between high availability (automatic failover within a region) and disaster recovery (manual or cross-region failover), leading candidates to mistakenly choose cross-region read replicas for HA scenarios.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Enable regional persistent disk and configure a standby instance in a different zone.
Enabling regional persistent disk allows the primary and standby Cloud SQL instances to share the same underlying storage across zones. When a zone failure occurs, the standby instance in a different zone automatically takes over with no data loss, providing high availability with automatic failover.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Enable regional persistent disk and configure a standby instance in a different zone.
Why this is correct
Cloud SQL's high availability configuration uses a regional persistent disk, which synchronously replicates data between zones, combined with a standby instance in a different zone. In the event of a zonal outage, Cloud SQL automatically detects the failure and promotes the standby, typically within tens of seconds. Because replication is synchronous, the RPO is effectively zero, ensuring no committed transactions are lost. This is the correct choice for an availability requirement within a single region.
- ✗
Use point-in-time recovery.
Why it's wrong here
Point-in-time recovery (PITR) relies on WAL archiving and allows you to restore the database to any second within the configured retention window. However, this is a manual restoration process that creates a new instance from a backup plus archived WAL logs — it does not provide automatic failover. If the zone is down, the backup and archived logs may also be unreachable unless they are stored redundantly, and the RTO is typically minutes to hours. PITR is a data-recovery mechanism, not an availability feature.
- ✗
Configure connection pooling.
Why it's wrong here
Connection pooling, whether via pgBouncer or Cloud SQL's built-in pooler, reuses database connections to reduce the CPU and latency overhead of establishing new sessions. While pooling improves throughput and reduces connection churn, it has no effect on the underlying instance's resilience — if the primary instance becomes unavailable, the pool's endpoints also fail. Poolers don't track the health of the instance or trigger failover; they merely multiplex connections to the same backend. Thus, connection pooling addresses performance, not zone-level availability.
- ✗
Set up a cross-region read replica.
Why it's wrong here
A cross-region read replica is an asynchronous read-only copy of the primary instance in a different Google Cloud region. It is designed for geographic disaster recovery and offloading read traffic, but it does not serve as an automatic failover target for a zonal outage in the primary region. Promoting a read replica to primary requires manual intervention, and because replication is asynchronous, committed transactions that haven't yet been replicated could be lost. For a single-region availability requirement, a same-region HA standby with regional persistent disk is the appropriate mechanism, not a cross-region replica.
Go deeper
Related to this question
Learn chapter
Cloud Digital Transformation
Key term
High availability
High availability is a system design approach that aims to keep applications and services operational and accessible with minimal downtime, even when some components fail.
Key term
Cloud SQL
Cloud SQL is a fully managed relational database service that lets you set up, maintain, and scale SQL databases (like MySQL, PostgreSQL, and SQL Server) in the cloud without managing the underlying infrastructure.
About these practice questions
Courseiva writes every GCDL question from scratch — 829 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This GCDL practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the GCDL exam.