Bird
0
0

Which Google Cloud Pub/Sub subscription model best supports this requirement and why?

hard📝 Architecture Q8 of 15
GCP - Cloud Pub/Sub
You need to implement a message processing system that can dynamically control the flow of messages based on the subscriber's capacity. Which Google Cloud Pub/Sub subscription model best supports this requirement and why?
APush subscription, because it buffers messages until the subscriber is ready to process them.
BPush subscription, because messages are automatically sent to the subscriber endpoint as soon as they arrive.
CPull subscription, because the subscriber explicitly requests messages when ready, allowing flow control.
DPull subscription, because messages are pushed to the subscriber endpoint without requiring acknowledgments.
Step-by-Step Solution
Solution:
  1. Step 1: Understand pull subscription behavior

    In pull subscriptions, the subscriber controls when to pull messages, enabling dynamic flow control.
  2. Step 2: Contrast with push subscription

    Push subscriptions send messages immediately to the endpoint, which can cause overload if the subscriber is not ready.
  3. Final Answer:

    Pull subscription allows the subscriber to control message flow and avoid overload -> Option C
  4. Quick Check:

    Subscriber controls message retrieval in pull subscriptions [OK]
Quick Trick: Pull subscriptions let subscribers control message flow [OK]
Common Mistakes:
  • Assuming push subscriptions buffer messages until subscriber is ready
  • Believing push subscriptions allow subscriber to control message flow
  • Thinking pull subscriptions push messages automatically without acknowledgment

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes