Bird
0
0

Given a subscription with an acknowledgment deadline of 10 seconds, what happens if a subscriber does not acknowledge a message within this time?

medium📝 service behavior Q4 of 15
GCP - Cloud Pub/Sub
Given a subscription with an acknowledgment deadline of 10 seconds, what happens if a subscriber does not acknowledge a message within this time?
AThe message is immediately deleted
BThe message is archived automatically
CThe message is redelivered to the subscriber
DThe message retention period resets
Step-by-Step Solution
Solution:
  1. Step 1: Understand acknowledgment deadline

    The acknowledgment deadline is the time allowed to ack a message before redelivery.
  2. Step 2: Effect of missing ack within deadline

    If not acknowledged in time, Pub/Sub redelivers the message to the subscriber.
  3. Final Answer:

    The message is redelivered to the subscriber -> Option C
  4. Quick Check:

    Missed ack deadline = message redelivery [OK]
Quick Trick: Miss ack deadline? Message redelivered [OK]
Common Mistakes:
  • Assuming message is deleted immediately
  • Thinking retention resets on missed ack
  • Believing message is archived automatically

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes