Bird
0
0

Which gcloud command correctly creates a subscription named sub1 for the topic topic1?

easy📝 Syntax Q3 of 15
GCP - Cloud Pub/Sub
Which gcloud command correctly creates a subscription named sub1 for the topic topic1?
Agcloud pubsub subscriptions create topic1 --topic=sub1
Bgcloud pubsub topics create sub1 --subscription=topic1
Cgcloud pubsub subscriptions create sub1 --topic=topic1
Dgcloud pubsub subscriptions add sub1 topic1
Step-by-Step Solution
Solution:
  1. Step 1: Identify the command to create a subscription

    The correct command is gcloud pubsub subscriptions create.
  2. Step 2: Specify the subscription name and topic

    The subscription name is sub1 and the topic is specified with --topic=topic1.
  3. Final Answer:

    gcloud pubsub subscriptions create sub1 --topic=topic1 -> Option C
  4. Quick Check:

    Command syntax matches official documentation [OK]
Quick Trick: Use 'subscriptions create' with --topic flag [OK]
Common Mistakes:
  • Confusing topic creation with subscription creation
  • Using incorrect flags or command order
  • Trying to create subscription without specifying topic

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes