Soru

Zorluk: OrtaManaging Storage and Database Solutions

Your team manages a production Cloud SQL for PostgreSQL instance configured with High Availability (HA) across two zones in the us-central1 region. As part of a disaster recovery audit, you are required to perform a controlled failover test to verify that the standby instance takes over primary duties without destroying or re-creating the database instance. Which command or action should you execute to accomplish this operational task?

  1. Execute `gcloud sql instances failover INSTANCE_NAME` to initiate a manual failover to the standby instance.Cevap
  2. B
    Execute `gsutil failover gs://INSTANCE_NAME` to initiate the regional switch of database storage.
  3. C
    Change the instance persistent disk storage class to Coldline to force an automatic zonal rebalancing event.
  4. D
    Migrate the database to Cloud Bigtable clusters to enable automatic relational transaction failover.

Cevap

Execute the `gcloud sql instances failover INSTANCE_NAME` command to initiate a manual failover to the standby instance.
Executing `gcloud sql instances failover INSTANCE_NAME` triggers a controlled failover of a high-availability Cloud SQL instance to its secondary standby zone, making it the standard operational procedure for failover testing.

Adım Adım Çözüm

1
Identify the administrative operational requirement for testing Cloud SQL High Availability.
Recognize that a manual failover trigger is required to failover from primary to standby.
Google Cloud SQL provides a dedicated operational command to simulate zone failovers for testing purpose without service disruption.
2
Select the correct gcloud CLI command targeting Cloud SQL instances.
Target the command `gcloud sql instances failover` specifying the instance name.
This command initiates the failover process, shifting traffic to the standby instance.

Anahtar Kavram

Managing Cloud SQL High Availability and manual failover procedures
Bu soruyu puanla