Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Google Associate Cloud Engineer Exam - Topic 1 Question 122 Discussion

Your company uses Pub/Sub for event-driven workloads. You have a subscription named email-updates attached to the new-orders topic. You need to fetch and acknowledge waiting messages from this subscription. What should you do?
C) Use the gcloud pubsub subscriptions pull email-updates ---auto-ack command.
A) Use the gcloud pubsub subscriptions seek email-updates command.
B) Use the gcloud pubsub topics describe new-orders command.
D) Use the gcloud pubsub topics list-subscriptions new-orders ---1ilter='email-updates' command.

Google Associate Cloud Engineer Exam - Topic 1 Question 122 Discussion

Actual exam question for Google's Associate Cloud Engineer exam
Question #: 122
Topic #: 1
[All Associate Cloud Engineer Questions]

Your company uses Pub/Sub for event-driven workloads. You have a subscription named email-updates attached to the new-orders topic. You need to fetch and acknowledge waiting messages from this subscription. What should you do?

Show Suggested Answer Hide Answer
Suggested Answer: C

The goal is to pull (fetch) messages from a subscription and acknowledge them.

The gcloud pubsub subscriptions **pull** command retrieves messages from a specified subscription.

The --auto-ack flag instructs the command to automatically acknowledge the messages after they are successfully retrieved, combining the two required actions into one command.


'Pulls one or more messages from the specified subscription. To acknowledge the pulled messages, use the --auto-ack flag.'

Contribute your Thoughts:

0/2000 characters
Theron
2 days ago
I practiced a question like this, and I feel like pulling messages is definitely the way to go. So, C seems like the best choice.
upvoted 0 times
...
Winifred
7 days ago
I'm not entirely sure, but I remember something about using the seek command in a similar question. Could that be relevant here?
upvoted 0 times
...
Stefania
12 days ago
I think option C sounds right because it mentions pulling messages and auto-acknowledging them, which is what we need to do.
upvoted 0 times
...

Save Cancel