Soru

Zorluk: KolayDeploying and Configuring Managed Database Instances

An associate cloud engineer needs to deploy a Cloud SQL PostgreSQL instance configured exclusively with a Private IP address in a custom Virtual Private Cloud (VPC) network. Place the necessary configuration steps in the correct chronological order from first to last.

  1. 1Allocate an IP address range in the VPC network reserved for private service access.
  2. 2Create a private connection to the Service Networking API using the allocated IP range.
  3. 3Provision the Cloud SQL instance with the --network flag set and the --no-assign-ip flag enabled.
  4. 4Create the database users and configure database schemas on the instance.

Cevap

The correct deployment sequence is: 1) Allocate an IP address range in the VPC network, 2) Create a private connection to the Service Networking API, 3) Provision the Cloud SQL instance with the private network flags, and 4) Create database users and schemas.
Deploying a Cloud SQL instance with Private IP connectivity requires setting up Private Services Access first. You must first reserve an IP address block in your VPC, then establish a private service connection (VPC peering) to the Service Networking API. After peering is established, you create the Cloud SQL instance attached to that network without a public IP assigned. Finally, once the instance is running, you configure database users and application schemas.

Adım Adım Çözüm

1
Allocate an IP range for Private Services Access
Reserved IP range is ready in the VPC network for Google service networking.
Google Cloud SQL private IP instances rely on Private Services Access, which requires a reserved IP address range in your VPC.
2
Establish VPC Network Peering connection
VPC Network Peering is established between the target VPC network and the Google managed services network.
This private connection enables private IP routing between compute resources in the VPC and the Cloud SQL instance.
3
Provision the Cloud SQL instance with private IP settings
The instance is created with a private IP address within the peered network range.
Specifying the VPC network and suppressing public IP assignment ensures the database instance is isolated to private traffic.
4
Configure database users and initial schema
Database instance is populated with access credentials and ready for application connections.
User and schema configuration occurs after the underlying database infrastructure and networking are active.

Anahtar Kavram

Provisioning Cloud SQL with Private IP using Private Services Access
Tahmini Süre:1m 0s
Bu soruyu puanla