Bird
0
0

A developer tries to pull messages but receives none, even though messages were published. What could be the problem?

medium📝 Debug Q7 of 15
GCP - Cloud Pub/Sub
A developer tries to pull messages but receives none, even though messages were published. What could be the problem?
AThe topic has no messages published.
BThe subscriber is using the wrong project ID.
CThe subscription is a push subscription, so pull won't work.
DThe messages were acknowledged automatically.
Step-by-Step Solution
Solution:
  1. Step 1: Understand subscription types and message retrieval

    Pulling messages only works with pull subscriptions; push subscriptions deliver automatically.
  2. Step 2: Check other options

    Messages were published; wrong project ID would cause errors; messages are not auto-acknowledged.
  3. Final Answer:

    The subscription is a push subscription, so pull won't work. -> Option C
  4. Quick Check:

    Pull only works with pull subscriptions [OK]
Quick Trick: Pull won't work on push subscriptions [OK]
Common Mistakes:
  • Assuming pull works on push subscriptions
  • Ignoring project ID mismatch
  • Thinking messages auto-acknowledge

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes