0
0
GCPcloud~10 mins

Pull vs push subscriptions in GCP - Interactive Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a pull subscription in Google Cloud Pub/Sub.

GCP
gcloud pubsub subscriptions create my-subscription --topic=my-topic --[1]
Drag options to blanks, or click blank then click option'
Apush-endpoint
Bno-ack
Cpush
Dack-deadline
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'push' flag when creating a pull subscription
Omitting the acknowledgement deadline
2fill in blank
medium

Complete the code to create a push subscription with an endpoint URL.

GCP
gcloud pubsub subscriptions create my-push-sub --topic=my-topic --[1]=https://example.com/push
Drag options to blanks, or click blank then click option'
Apush-endpoint
Back-deadline
Cpush-url
Dendpoint
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'ack-deadline' instead of 'push-endpoint'
Using incorrect flag names like 'push-url'
3fill in blank
hard

Fix the error in the subscription creation command to correctly specify a push subscription.

GCP
gcloud pubsub subscriptions create my-sub --topic=my-topic --[1]=http://myservice.com/receive
Drag options to blanks, or click blank then click option'
Aack-deadline
Bpush
Cpush-endpoint
Dendpoint-url
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'push' instead of 'push-endpoint'
Using 'ack-deadline' for push subscriptions
4fill in blank
hard

Fill both blanks to configure a pull subscription with a 20-second acknowledgement deadline.

GCP
gcloud pubsub subscriptions create my-pull-sub --topic=my-topic --[1]=[2]
Drag options to blanks, or click blank then click option'
Aack-deadline
Bpush-endpoint
C20
D10
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'push-endpoint' for pull subscription
Setting acknowledgement deadline to 10 instead of 20
5fill in blank
hard

Fill all three blanks to create a push subscription with a 10-second acknowledgement deadline and a push endpoint URL.

GCP
gcloud pubsub subscriptions create my-push-sub --topic=my-topic --[1]=[2] --[3]=https://service.example.com/push
Drag options to blanks, or click blank then click option'
Aack-deadline
B10
Cpush-endpoint
Dpush-url
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'push-url' instead of 'push-endpoint'
Omitting the acknowledgement deadline
Setting wrong acknowledgement time