Complete the code to create a pull subscription in Google Cloud Pub/Sub.
gcloud pubsub subscriptions create my-subscription --topic=my-topic --[1]The ack-deadline flag is used to set the acknowledgement deadline for a pull subscription. Pull subscriptions do not use the push flag.
Complete the code to create a push subscription with an endpoint URL.
gcloud pubsub subscriptions create my-push-sub --topic=my-topic --[1]=https://example.com/pushThe push-endpoint flag specifies the URL where messages are pushed in a push subscription.
Fix the error in the subscription creation command to correctly specify a push subscription.
gcloud pubsub subscriptions create my-sub --topic=my-topic --[1]=http://myservice.com/receiveThe correct flag to specify the push endpoint URL is push-endpoint. Other options are invalid or incorrect.
Fill both blanks to configure a pull subscription with a 20-second acknowledgement deadline.
gcloud pubsub subscriptions create my-pull-sub --topic=my-topic --[1]=[2]
The ack-deadline flag sets the acknowledgement deadline, and 20 seconds is the desired value.
Fill all three blanks to create a push subscription with a 10-second acknowledgement deadline and a push endpoint URL.
gcloud pubsub subscriptions create my-push-sub --topic=my-topic --[1]=[2] --[3]=https://service.example.com/push
Push subscriptions can have an acknowledgement deadline set with ack-deadline and require the push-endpoint flag to specify the URL.