Bird
0
0

Which of the following is the correct command snippet to create a Memorystore Redis instance with 1 GB memory in region us-central1?

easy📝 Configuration Q12 of 15
GCP - Cloud Firestore and Bigtable
Which of the following is the correct command snippet to create a Memorystore Redis instance with 1 GB memory in region us-central1?
Agcloud redis create instance my-redis --memory=1GB --region=us-central1
Bgcloud redis instances create my-redis --size=1 --region=us-central1
Cgcloud redis instances create my-redis --memory=1GB --zone=us-central1-a
Dgcloud redis instances new my-redis --size=1GB --region=us-central1
Step-by-Step Solution
Solution:
  1. Step 1: Recall correct gcloud command syntax

    The correct command uses 'gcloud redis instances create' with '--size' in GB and '--region'.
  2. Step 2: Check each option for syntax errors

    gcloud redis instances create my-redis --size=1 --region=us-central1 matches correct syntax. Options A, C, and D use wrong flags or commands.
  3. Final Answer:

    gcloud redis instances create my-redis --size=1 --region=us-central1 -> Option B
  4. Quick Check:

    Correct gcloud create syntax = B [OK]
Quick Trick: Use 'gcloud redis instances create' with --size and --region [OK]
Common Mistakes:
  • Using --memory instead of --size
  • Using 'create instance' instead of 'instances create'
  • Specifying zone instead of region

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes