0
0
GCPcloud~5 mins

Message retention and acknowledgment in GCP - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is message retention in Google Cloud Pub/Sub?
Message retention is the time period during which Pub/Sub keeps a message available for delivery, even if it has been acknowledged. This allows subscribers to receive messages that were published before they subscribed or to reprocess messages if needed.
Click to reveal answer
beginner
What does acknowledging a message mean in Pub/Sub?
Acknowledging a message means telling Pub/Sub that the message has been successfully received and processed. Once acknowledged, Pub/Sub stops delivering that message to the subscriber.
Click to reveal answer
intermediate
How long is the default message retention period in Pub/Sub?
By default, Pub/Sub retains unacknowledged messages for 7 days. This means messages can be redelivered within this time if not acknowledged.
Click to reveal answer
intermediate
What happens if a subscriber does not acknowledge a message within the ack deadline?
If a message is not acknowledged within the ack deadline (default 10 seconds), Pub/Sub considers it unacknowledged and will redeliver it to the same or another subscriber.
Click to reveal answer
advanced
How can you extend the time a subscriber has to acknowledge a message?
Subscribers can modify the ack deadline by sending a ModifyAckDeadline request to extend the time before the message is redelivered, allowing more time to process the message.
Click to reveal answer
What does acknowledging a message in Pub/Sub do?
AExtends the message retention period
BStops redelivery of that message
CDeletes the message from the topic
DPublishes a new message
What is the default ack deadline for a message in Pub/Sub?
A60 seconds
B5 seconds
C30 seconds
D10 seconds
How long does Pub/Sub retain unacknowledged messages by default?
A1 day
B3 days
C7 days
D30 days
What happens if a message is not acknowledged before the ack deadline?
AIt is redelivered
BIt is sent to a dead-letter queue automatically
CIt is archived
DIt is deleted permanently
Which method allows a subscriber to extend the ack deadline?
AmodifyAckDeadline
BextendMessageRetention
CacknowledgeMessage
DrenewSubscription
Explain how message retention and acknowledgment work together in Google Cloud Pub/Sub.
Think about how Pub/Sub ensures messages are not lost and are processed at least once.
You got /4 concepts.
    Describe what happens when a subscriber does not acknowledge a message within the ack deadline.
    Focus on the flow of message delivery and retry.
    You got /4 concepts.