Complete the code to start the Cloud SQL Proxy with the correct instance connection name.
cloud_sql_proxy -instances=[1]=tcp:5432
The correct format for the instance connection name is project:region:instance.
Complete the command to specify the credentials file for Cloud SQL Proxy.
cloud_sql_proxy -instances=my-project:us-central1:my-instance=tcp:5432 -credential_file=[1]
The credentials file for Cloud SQL Proxy must be a JSON key file downloaded from the Google Cloud Console.
Fix the error in the command to run Cloud SQL Proxy on port 3306.
cloud_sql_proxy -instances=my-project:us-central1:my-instance=[1]Cloud SQL Proxy listens on TCP ports, so the correct prefix is tcp: followed by the port number.
Fill both blanks to create a command that runs Cloud SQL Proxy with instance connection and logs output to a file.
cloud_sql_proxy -instances=[1]=tcp:5432 > [2] 2>&1 &
The instance connection name must be in the correct format, and the log file is commonly named proxy.log.
Fill all three blanks to create a Python dictionary comprehension that maps instance names to their ports if the port is greater than 5000.
ports = { [1]: [2] for [1], [2] in instances if [2] > 5000 }The variable instance is used as the key, and port as the value and in the condition.