Bird
0
0

Given a subscription configured with ackDeadlineSeconds=10, what happens if a subscriber does not acknowledge a message within 10 seconds?

medium📝 service behavior Q4 of 15
GCP - Cloud Pub/Sub
Given a subscription configured with ackDeadlineSeconds=10, what happens if a subscriber does not acknowledge a message within 10 seconds?
AThe message is redelivered to the subscriber
BThe message is deleted permanently
CThe subscription is deleted automatically
DThe message is marked as acknowledged
Step-by-Step Solution
Solution:
  1. Step 1: Understand ackDeadlineSeconds meaning

    This setting defines how long a subscriber has to acknowledge a message before it is considered unacknowledged.
  2. Step 2: Determine message behavior after deadline

    If not acknowledged within 10 seconds, the message becomes available again for redelivery.
  3. Final Answer:

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

    Unacknowledged message = Redelivery [OK]
Quick Trick: Unacknowledged messages get redelivered after ack deadline [OK]
Common Mistakes:
  • Assuming message is deleted
  • Thinking subscription deletes itself
  • Assuming message auto-acknowledges

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes