Bird
0
0

You want to build a system that processes user requests with retries and exponential backoff, but also broadcasts some notifications to multiple services. Which combination of services is best?

hard📝 Architecture Q9 of 15
GCP - Cloud Pub/Sub
You want to build a system that processes user requests with retries and exponential backoff, but also broadcasts some notifications to multiple services. Which combination of services is best?
AUse Pub/Sub for both user requests and notifications
BUse Cloud Tasks for user requests and Pub/Sub for notifications
CUse Cloud Tasks for notifications and Pub/Sub for user requests
DUse Cloud Functions only
Step-by-Step Solution
Solution:
  1. Step 1: Match service to use case

    Cloud Tasks handles retries with backoff well for user requests; Pub/Sub broadcasts messages to multiple subscribers.
  2. Step 2: Evaluate other options

    Pub/Sub alone lacks fine-grained retry control; Cloud Tasks is not for broadcasting; Cloud Functions alone is not a messaging service.
  3. Final Answer:

    Use Cloud Tasks for user requests and Pub/Sub for notifications -> Option B
  4. Quick Check:

    Retries + backoff = Cloud Tasks; broadcast = Pub/Sub [OK]
Quick Trick: Cloud Tasks for retries; Pub/Sub for broadcasts [OK]
Common Mistakes:
  • Using Pub/Sub for retries only
  • Using Cloud Tasks for broadcasts

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes