Bird
0
0

Given a Pub/Sub topic with 3 subscribers, if a message is published once, how many times will it be delivered?

medium📝 service behavior Q4 of 15
GCP - Cloud Pub/Sub
Given a Pub/Sub topic with 3 subscribers, if a message is published once, how many times will it be delivered?
AOnce, to one subscriber only
BThree times, once to each subscriber
CDepends on the message size
DOnce, to all subscribers simultaneously
Step-by-Step Solution
Solution:
  1. Step 1: Understand Pub/Sub delivery model

    Pub/Sub delivers each message to every subscriber independently.
  2. Step 2: Apply to 3 subscribers

    Each subscriber receives the message once, so total deliveries equal number of subscribers.
  3. Final Answer:

    Message is delivered three times, once to each subscriber -> Option B
  4. Quick Check:

    Pub/Sub message per subscriber = 1 delivery each [OK]
Quick Trick: Pub/Sub sends message to all subscribers individually [OK]
Common Mistakes:
  • Thinking message is sent only once total
  • Confusing with Cloud Tasks single delivery

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes