Practice Test 4 | Google Cloud Certified Professional Data Engineer | Dumps | Mock Test
You work as a data engineer in a gaming organization with a large amount of data. They use Cloud Pub/Sub topics to store the events from each player every 2 seconds. Which command you will use to retrieve messages with your subscription named “alertlogSub1”?
A. gcloud pubsub pull –auto-ack alertlogSub1
B. gcloud pubsub subscriptions pull –auto-ack alertlogSub1
C. gcloud pubsub subscriptions pull –ack alertlogSub1
D. gcloud pubsub pull subscriptions –auto-ack alertlogSub1
Correct Answer: B
- Option B is CORRECT because the correct command is :
gcloud pubsub subscriptions pull –auto-ack alertlogSub1
Sample output :
DATA | MESSAGEID | ATTRIBUTES |
Hi This is Whizlabs | 1425642542586412 |
–auto-ack used to automatically acknowledge every message pulled from the subscriptions named as “alertlogSub1”
For more information on the Cloud PubSub, please visit the below URL:
https://cloud.google.com/sdk/gcloud/reference/pubsub/subscriptions/pull
Comments are closed, but trackbacks and pingbacks are open.