professional-cloud-data-engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
An enterprise runs a mission-critical Cloud SQL for PostgreSQL database deployed across multiple Google Cloud regions:
db-central): Deployed in us-central1 with High Availability (HA) enabled.db-west): Cross-region read replica in us-west1.db-east): Cross-region read replica in us-east1.A catastrophic outage renders the entire us-central1 region unavailable. You need to execute an emergency failover to promote db-west to the new primary while minimizing data loss, redirecting application traffic with minimal downtime, and restoring read and HA topology.
Which operational procedure should you execute?
In Cloud SQL for PostgreSQL, cross-region replication operates asynchronously. When an unplanned regional disaster incapacitates the primary instance in us-central1, disaster recovery requires manually or programmatically promoting a designated cross-region read replica to assume the read-write primary role.
db-west via a PostgreSQL client to check pg_catalog.pg_last_wal_receive_lsn() and pg_catalog.pg_last_wal_replay_lsn() verifies that the replica has fully applied all write-ahead log (WAL) transactions received from the primary before the outage, preventing stale or partially applied state upon promotion.us-west1 without necessitating application redeployment.db-east replica of the failed primary must be deleted and recreated pointing to the new us-west1 primary using a distinct instance name.This procedure correctly addresses data consistency verification, dynamic application routing via DNS endpoints, and the architectural requirement to rebuild orphaned sibling read replicas from the new primary.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.