A system administrator needs to provision a production-grade PostgreSQL database on Cloud SQL using the Google Cloud CLI. The compliance policy mandates that the instance must be attached strictly to a custom Virtual Private Cloud (VPC) network without a public IP address, must be configured for High Availability (regional failover), and must support Point-in-Time Recovery (PITR) alongside daily automated backups. Which `gcloud sql instances create` command configuration satisfies all specified enterprise requirements?
- gcloud sql instances create prod-db --database-version=POSTGRES_15 --cpu=4 --memory=16GiB --region=us-central1 --network=custom-vpc --no-assign-ip --availability-type=REGIONAL --backup-start-time=02:00 --enable-point-in-time-recoveryCevap
- Bgcloud sql instances create prod-db --database-version=POSTGRES_15 --tier=db-custom-4-16384 --region=us-central1 --network=custom-vpc --authorized-networks=0.0.0.0/0 --availability-type=ZONAL --enable-bin-log
- Cgcloud sql instances create prod-db --database-version=POSTGRES_15 --tier=db-custom-4-16384 --region=us-central1 --private-ip-only --network=custom-vpc --high-availability=true --pitr=enabled
- Dgcloud sql instances create prod-db --database-version=POSTGRES_15 --tier=db-custom-4-16384 --region=us-central1 --network=custom-vpc --availability-type=REGIONAL --enable-point-in-time-recovery
Cevap
The command that uses `--network=custom-vpc` along with `--no-assign-ip`, `--availability-type=REGIONAL`, `--backup-start-time`, and `--enable-point-in-time-recovery` fully satisfies all requirement criteria.
The correct command explicitly suppresses public IP allocation using `--no-assign-ip` while attaching to the specified VPC network via `--network`. It also configures multi-zone regional failover using `--availability-type=REGIONAL` and enables continuous WAL archiving required for PostgreSQL point-in-time recovery via `--enable-point-in-time-recovery` and `--backup-start-time`.
Adım Adım Çözüm
Anahtar Kavram
Cloud SQL CLI Provisioning and Security Configuration