QuestionQ39

VerifiedPlanning and implementing a cloud solution

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?

Explanation

The gcloud pubsub subscriptions pull command with --auto-ack retrieves available messages from a subscription and immediately acknowledges them, which is exactly what is needed to fetch and acknowledge waiting messages from the email-updates subscription. seek repositions a subscription's cursor, topics describe returns topic metadata, and list-subscriptions --filter merely lists subscription names rather than delivering message content.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!