Bird
0
0

Which command correctly starts the Cloud SQL Proxy for a Cloud SQL instance named my-instance in project my-project?

easy📝 Configuration Q12 of 15
GCP - Cloud SQL and Databases
Which command correctly starts the Cloud SQL Proxy for a Cloud SQL instance named my-instance in project my-project?
Agcloud sql proxy start --instance=my-instance
Bcloud_sql_proxy --instance=my-instance --project=my-project
Ccloud_sql_proxy -instances=my-project:us-central1:my-instance=tcp:5432
Dstart_sql_proxy --project=my-project --instance=my-instance
Step-by-Step Solution
Solution:
  1. Step 1: Recall correct Cloud SQL Proxy syntax

    The correct syntax uses -instances=project:region:instance=tcp:port format to specify the instance and port.
  2. Step 2: Evaluate options

    cloud_sql_proxy -instances=my-project:us-central1:my-instance=tcp:5432 matches the correct syntax. Options A, C, and D use incorrect commands or flags not supported by Cloud SQL Proxy.
  3. Final Answer:

    cloud_sql_proxy -instances=my-project:us-central1:my-instance=tcp:5432 -> Option C
  4. Quick Check:

    Correct proxy start command = cloud_sql_proxy -instances=my-project:us-central1:my-instance=tcp:5432 [OK]
Quick Trick: Use -instances=project:region:instance=tcp:port format [OK]
Common Mistakes:
  • Using gcloud instead of cloud_sql_proxy command
  • Wrong flag names like --instance instead of -instances
  • Omitting region in instance name

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes