Soru

Zorluk: OrtaManaging Storage and Database Solutions

A Cloud Engineer is responsible for verifying the disaster recovery preparedness of a production Cloud SQL for PostgreSQL instance configured with High Availability (HA). The engineer needs to perform a scheduled manual failover test to switch traffic to the standby instance with minimal operational disruption. Which gcloud command should the engineer execute to initiate this test?

  1. Execute gcloud sql instances failover INSTANCE_NAME to trigger an explicit failover to the standby replica.Cevap
  2. B
    Execute gcloud sql instances restart INSTANCE_NAME --failover to force the primary instance to reboot onto the secondary zone.
  3. C
    Execute gcloud sql instances promote-replica INSTANCE_NAME to convert the failover standby node into a standalone primary instance.
  4. D
    Execute gcloud storage instances failover gs://INSTANCE_NAME to initiate the failover process.

Cevap

Execute gcloud sql instances failover INSTANCE_NAME to trigger an explicit failover to the standby replica.
The correct option executes `gcloud sql instances failover INSTANCE_NAME`, which is the official Google Cloud CLI command designed specifically to initiate a manual failover test on a High Availability Cloud SQL instance.

Adım Adım Çözüm

1
Identify the requirement for testing High Availability (HA) failover on a Cloud SQL instance.
The operation target is an existing Cloud SQL instance configured for High Availability.
Standard operational testing requires executing an explicit failover to verify standby responsiveness.
2
Select the correct gcloud CLI command group and subcommand designed for Cloud SQL failover.
The sub-command `gcloud sql instances failover` is identified as the dedicated action.
This command instructs Cloud SQL to switch active operation from the primary zone to the secondary standby zone.

Anahtar Kavram

High Availability failover operation for Cloud SQL instances
Bu soruyu puanla