Complete the code to create a Pub/Sub topic named 'my-topic'.
gcloud pubsub topics create [1]The command creates a Pub/Sub topic named 'my-topic'. This is the first step to enable messaging.
Complete the code to publish a message 'Hello' to the topic 'my-topic'.
gcloud pubsub topics publish my-topic --message=[1]The message 'Hello' is published to the topic 'my-topic'. Quotes are needed around the message.
Fix the error in the command to subscribe to 'my-topic' with subscription name 'my-sub'.
gcloud pubsub subscriptions create [1] --topic=my-topicThe subscription name should be 'my-sub' as specified. Using the topic name or other names causes errors.
Fill both blanks to pull messages from subscription 'my-sub' and acknowledge them.
gcloud pubsub subscriptions pull [1] --auto-ack --limit=[2]
The command pulls 5 messages from subscription 'my-sub' and acknowledges them automatically.
Fill all three blanks to create a push subscription named 'push-sub' for topic 'my-topic' with endpoint URL.
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 given HTTPS endpoint.