Your team runs a nightly Dataflow ETL job that reads transactional data from a Cloud SQL for PostgreSQL instance and writes aggregates back into the same database. Last month a zonal outage in the instance's zone caused the job to fail and delayed reporting. You must harden the database against a single-zone failure while minimizing application changes and operational overhead. Which approach best meets the requirement?
Create a cross-region read replica and direct Dataflow to use the replica; Cloud SQL will automatically promote it and redirect traffic during a failure.
Provision a second single-zone Cloud SQL instance in a different zone, configure logical replication, and switch the job's connection string to this replica during an outage.
Export the database to Cloud Storage each night and have the Dataflow job read from the export if the primary instance is unavailable.
Convert the database to a Cloud SQL regional high-availability configuration so a synchronous standby in another zone can take over automatically while keeping the same private IP.
A Cloud SQL high-availability (regional) configuration keeps a primary and a synchronous standby instance in different zones of the same region. If the primary zone becomes unavailable, Cloud SQL automatically promotes the standby, retains the same private IP address, and requires no changes to client connection strings or manual intervention-meeting the need for resiliency with minimal operational effort.
A cross-region read replica provides disaster-recovery for regional outages, but it is asynchronous, read-only, and requires manual promotion and connection updates. Exporting data to Cloud Storage does not protect the live database or support in-place writes. Building a second single-zone instance with logical replication would need manual failover and application reconfiguration, increasing operational burden.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a Cloud SQL high-availability (HA) configuration?
Open an interactive chat with Bash
How does Cloud SQL HA configuration retain the same private IP during failover?
Open an interactive chat with Bash
What is the difference between synchronous and asynchronous replication?
Open an interactive chat with Bash
What is a Cloud SQL high-availability (HA) configuration?
Open an interactive chat with Bash
How does synchronous replication work in Cloud SQL?
Open an interactive chat with Bash
Why is a cross-region read replica not suitable for handling zonal outages?
Open an interactive chat with Bash
GCP Professional Data Engineer
Maintaining and automating data workloads
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .