0
0
GCPcloud~5 mins

Topics and subscriptions in GCP - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a topic in Google Cloud Pub/Sub?
A topic is a named resource to which messages are sent by publishers. It acts like a mailbox where messages are stored until subscribers receive them.
Click to reveal answer
beginner
What is a subscription in Google Cloud Pub/Sub?
A subscription is a named resource representing the stream of messages from a single, specific topic, to be delivered to the subscriber.
Click to reveal answer
intermediate
How do topics and subscriptions work together?
Publishers send messages to topics. Subscribers create subscriptions to those topics to receive messages. Each subscription gets its own copy of every message sent to the topic.
Click to reveal answer
intermediate
What happens if a subscriber does not acknowledge a message in Pub/Sub?
The message remains unacknowledged and will be redelivered after a deadline, ensuring reliable delivery until acknowledged.
Click to reveal answer
beginner
Can a topic have multiple subscriptions in Google Cloud Pub/Sub?
Yes, a topic can have multiple subscriptions. Each subscription independently receives all messages published to the topic.
Click to reveal answer
What is the role of a topic in Google Cloud Pub/Sub?
AIt deletes messages after delivery
BIt delivers messages to subscribers
CIt processes messages before delivery
DIt stores messages sent by publishers
What does a subscription represent in Pub/Sub?
AA stream of messages from a topic to a subscriber
BA message queue for a topic
CA publisher sending messages
DA storage bucket for messages
If a subscriber does not acknowledge a message, what happens?
AThe message is redelivered after a deadline
BThe message is lost
CThe message is deleted immediately
DThe subscription is deleted
Can one topic have multiple subscriptions?
ANo, only one subscription per topic
BNo, subscriptions belong to different topics
CYes, each subscription receives all messages
DYes, but subscriptions share messages
Who sends messages to a topic in Pub/Sub?
ASubscribers
BPublishers
CSubscriptions
DCloud Storage
Explain how topics and subscriptions work together in Google Cloud Pub/Sub.
Think of topics as mailboxes and subscriptions as mailboxes' readers.
You got /4 concepts.
    Describe what happens when a message is not acknowledged by a subscriber.
    Consider how Pub/Sub guarantees message delivery.
    You got /4 concepts.