A cloud engineer must deploy a new relational database instance named `orders-db` for an e-commerce order management platform in the `us-central1` region. The database requires ACID transactional consistency, high availability across multiple zones within the region, automated daily backups, and strict security compliance prohibiting public IP addresses. The database must connect directly to an existing Virtual Private Cloud (VPC) named `production-vpc`. Which `gcloud` command should the engineer execute to provision this database instance?
- gcloud sql instances create orders-db --database-version=MYSQL_8_0 --tier=db-custom-4-15360 --region=us-central1 --availability-type=REGIONAL --network=projects/my-project/global/networks/production-vpc --no-assign-ip --backup-start-time=02:00Cevap
- Bgcloud sql instances create orders-db --database-version=MYSQL_8_0 --tier=db-custom-4-15360 --region=us-central1 --availability-type=REGIONAL --authorized-networks=0.0.0.0/0 --backup-start-time=02:00
- Cgcloud bigtable instances create orders-db --display-name="Orders DB" --cluster=orders-cluster --cluster-zone=us-central1-a --cluster-num-nodes=3 --cluster-storage-type=SSD
- Dgcloud compute instances create orders-db --zone=us-central1-a --machine-type=e2-standard-4 --metadata=database-engine=mysql,ha=true --network=production-vpc
Cevap
The command running `gcloud sql instances create orders-db` with `--availability-type=REGIONAL`, `--network=projects/my-project/global/networks/production-vpc`, and `--no-assign-ip` correctly provisions a managed, highly available Cloud SQL relational database connected exclusively via Private IP.
The correct response provisions a managed Cloud SQL for MySQL instance using `gcloud sql instances create`. Setting `--availability-type=REGIONAL` enables primary and standby instances across multiple zones within `us-central1` for automatic failover. Combining `--network` with `--no-assign-ip` ensures the instance is accessible strictly via Private IP over Private Service Access within the `production-vpc` network, fulfilling all security and functional mandates.
Adım Adım Çözüm
Anahtar Kavram
Cloud SQL Private IP and Regional High Availability Provisioning