Services Español / Pub/Sub

Pub/Sub for Google Cloud certification exams

Pub/Sub is Google Cloud's global messaging service. Publishers send messages to topics; subscriptions deliver them to any number of consumers, decoupling the systems that produce and process events.

In 223 practice questions across 14 practice banks

Professional Data Engineer Pub/Sub

You work for a car manufacturer and have set up a data pipeline using Google Cloud Pub/Sub to capture anomalous sensor events. You are using a push subscription in Cloud Pub/Sub that calls a custom HTTPS endpoint that you have created to take action of these anomalous events as they occur. Your custom HTTPS endpoint keeps getting an inordinate amount of duplicate messages. What is the most likely cause of these duplicate messages?

  1. Message size limits cause rejections, not duplicates.

  2. An invalid SSL certificate would make delivery fail entirely, not produce duplicates.

  3. High message volume alone does not cause duplicate delivery.

  4. Missing the acknowledgement deadline triggers redelivery and duplicates.

Pick an answer to see why each option is right or wrong.

Try 20 questions free

Key concepts for practice

  • Push and pull subscriptions; delivery is at least once, so consumers should be idempotent.
  • Ordering keys preserve order for related messages; exactly-once delivery is available for pull.
  • Dead-letter topics capture messages that keep failing.
  • Seek and retained messages let you replay a subscription.

Pub/Sub compared