Which of these statements about the Publisher-Subscriber pattern utilized by Cloud Pub/Sub is TRUE?

Question: Which of these statements about the Publisher-Subscriber pattern utilized by Cloud Pub/Sub is TRUE?

  • Publisher applications can receive messages from a topic.
  • Subscriber applications can subscribe to a topic to receive the message when the subscriber is ready.
  • Publisher applications can send messages to a subscriber.
  • Subscriber applications can send messages on a topic directly to publisher applications.

Explanation

Pub/Sub uses a publisher-subscriber model to decouple systems that produce events from systems that consume them. A publisher sends a message to a topic, and a subscriber receives messages through a subscription. This design lets producers and consumers operate independently without direct one-to-one connections. The value is reliable asynchronous message delivery across applications and Google Cloud services.

Why the other options are incorrect

Publishers receive messages is incorrect because publishers send messages to topics.

Publishers send to subscribers is incorrect because messages are sent to topics, not directly to subscribers.

Subscribers send to publishers is incorrect because subscribers consume messages through subscriptions.

Source for verification

https://cloud.google.com/pubsub/docs/overview

The answer(s) to the question is highlighted in the BOLD text above. You can also find more questions and answers related to the exams on the "Google Cloud Platform Business Professional" page.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top