Bird
0
0

Which of the following is the correct way to create a managed Cloud SQL instance using gcloud CLI?

easy📝 Configuration Q12 of 15
GCP - Cloud SQL and Databases
Which of the following is the correct way to create a managed Cloud SQL instance using gcloud CLI?
Agcloud sql instances create my-instance --tier=db-f1-micro --region=us-central1
Bgcloud sql create instance my-instance --size=small --zone=us-central1-a
Cgcloud sql instances new my-instance --machine=db-n1-standard-1
Dgcloud sql setup my-instance --type=managed --region=us-central1
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct gcloud command syntax

    The correct command to create a Cloud SQL instance is 'gcloud sql instances create' with tier and region flags.
  2. Step 2: Check each option for syntax correctness

    gcloud sql instances create my-instance --tier=db-f1-micro --region=us-central1 matches the official syntax; others use incorrect verbs or flags.
  3. Final Answer:

    gcloud sql instances create my-instance --tier=db-f1-micro --region=us-central1 -> Option A
  4. Quick Check:

    Correct gcloud create syntax = B [OK]
Quick Trick: Use 'gcloud sql instances create' to make managed instances [OK]
Common Mistakes:
  • Using 'create instance' instead of 'instances create'
  • Wrong flags like --size or --machine
  • Confusing region and zone flags

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes