Complete the code to create a managed SQL instance in Google Cloud.
gcloud sql instances create [1] --database-version=POSTGRES_14 --tier=db-f1-micro --region=us-central1The instance name must be a valid identifier. 'my-instance' is a typical example.
Complete the code to connect to a managed database using the Cloud SQL Proxy.
./cloud_sql_proxy -instances=[1]=tcp:5432
The format for Cloud SQL Proxy instances is project:region:instance.
Fix the error in the command to create a Cloud SQL user with a password.
gcloud sql users create [1] --instance=my-instance --password='securePass123'
The username should be a valid user name like 'user1'. 'my-instance' is the instance name, not a user.
Fill both blanks to configure automatic backups and high availability for a managed database instance.
gcloud sql instances patch my-instance --backup-start-time=[1] --availability-type=[2]
Backups typically start early morning like 03:00. 'REGIONAL' enables high availability across zones.
Fill all three blanks to create a read replica for a Cloud SQL instance with the correct flags.
gcloud sql instances create [1] --master-instance-name=[2] --region=[3]
The replica name is 'my-replica', the master instance is 'my-instance', and the region is 'us-central1'.