Bird
0
0

You want to design a system that processes messages only when your app is ready and can control the rate of message processing. Which subscription type should you choose and why?

hard📝 Best Practice Q15 of 15
GCP - Cloud Pub/Sub
You want to design a system that processes messages only when your app is ready and can control the rate of message processing. Which subscription type should you choose and why?
APush subscription, because it retries sending messages until acknowledged.
BPull subscription, because your app controls when to request messages.
CPush subscription, because messages are sent automatically and fast.
DPull subscription, because it automatically scales message delivery.
Step-by-Step Solution
Solution:
  1. Step 1: Identify control needs

    The app wants to control when and how fast messages are processed.
  2. Step 2: Match subscription type to control

    Pull subscriptions let the app ask for messages when ready, controlling rate and timing.
  3. Final Answer:

    Pull subscription, because your app controls when to request messages. -> Option B
  4. Quick Check:

    Pull = app controls message flow [OK]
Quick Trick: Choose pull to control message processing timing [OK]
Common Mistakes:
  • Choosing push for control over message rate
  • Assuming push retries mean better control
  • Thinking pull auto-scales delivery

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes