Bird
0
0

Which is the correct way to create a pull subscription using gcloud CLI?

easy📝 Syntax Q3 of 15
GCP - Cloud Pub/Sub
Which is the correct way to create a pull subscription using gcloud CLI?
Agcloud pubsub subscriptions create my-sub --topic=my-topic --push-endpoint=https://example.com
Bgcloud pubsub subscriptions create --push-endpoint=https://example.com my-sub
Cgcloud pubsub subscriptions create my-sub --push
Dgcloud pubsub subscriptions create my-sub --topic=my-topic
Step-by-Step Solution
Solution:
  1. Step 1: Identify pull subscription creation syntax

    Pull subscriptions are created without specifying a push endpoint.
  2. Step 2: Check options

    gcloud pubsub subscriptions create my-sub --topic=my-topic creates a pull subscription by specifying topic only; others incorrectly add push parameters.
  3. Final Answer:

    gcloud pubsub subscriptions create my-sub --topic=my-topic -> Option D
  4. Quick Check:

    Pull subscription = No push-endpoint flag [OK]
Quick Trick: No push-endpoint flag means pull subscription [OK]
Common Mistakes:
  • Adding push-endpoint for pull subscription
  • Incorrect flag order
  • Using --push without endpoint

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes