Google
ASSOCIATE-CLOUD-ENGINEER · Question #402
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 subscr
The correct answer is C. Use the gcloud pubsub subscriptions pull email-updates --auto-ack command.. The subscriptions pull command actually retrieves (pulls) any pending messages on the specified subscription. Adding --auto-ack causes each message to be acknowledged immediately upon retrieval, removing it from the subscription’s backlog.
Submitted by minji_kr· Mar 30, 2026Ensuring successful operation of a cloud solution
Question
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?
Options
- AUse the gcloud pubsub subscriptions seek email-updates command.
- BUse the gcloud pubsub topics describe new-orders command.
- CUse the gcloud pubsub subscriptions pull email-updates --auto-ack command.
- DUse the
How the community answered
(68 responses)- A6% (4)
- B1% (1)
- C90% (61)
- D3% (2)
Explanation
The subscriptions pull command actually retrieves (pulls) any pending messages on the specified subscription. Adding --auto-ack causes each message to be acknowledged immediately upon retrieval, removing it from the subscription’s backlog.
Topics
#Pub/Sub#gcloud CLI#subscription pull#message acknowledgment
Community Discussion
No community discussion yet for this question.