Complete the code to create a Pub/Sub topic named 'my-topic'.
gcloud pubsub topics create [1]The command gcloud pubsub topics create my-topic creates a new Pub/Sub topic named 'my-topic'.
Complete the code to create a subscription named 'my-subscription' for the topic 'my-topic'.
gcloud pubsub subscriptions create [1] --topic=my-topicThe command gcloud pubsub subscriptions create my-subscription --topic=my-topic creates a subscription named 'my-subscription' for the topic 'my-topic'.
Fix the error in the command to publish a message 'Hello' to the topic 'my-topic'.
gcloud pubsub topics publish my-topic --message=[1]The message should be passed without quotes in the command line. So --message=Hello is correct.
Fill both blanks to pull messages from subscription 'my-subscription' and acknowledge them.
gcloud pubsub subscriptions pull [1] --auto-ack --limit=[2]
The command pulls 5 messages from the subscription 'my-subscription' and automatically acknowledges them.
Fill all three blanks to create a push subscription named 'push-sub' for topic 'my-topic' with endpoint 'https://example.com/push'.
gcloud pubsub subscriptions create [1] --topic=[2] --push-endpoint=[3]
This command creates a push subscription named 'push-sub' for the topic 'my-topic' with the specified push endpoint URL.