Bird
0
0

What happens to a message in Google Cloud Pub/Sub if it is not acknowledged within the retention period?

easy📝 Conceptual Q11 of 15
GCP - Cloud Pub/Sub
What happens to a message in Google Cloud Pub/Sub if it is not acknowledged within the retention period?
AThe message is automatically acknowledged.
BThe message is deleted and no longer available for delivery.
CThe message is moved to a dead-letter queue.
DThe message is duplicated and sent again.
Step-by-Step Solution
Solution:
  1. Step 1: Understand message retention

    Message retention defines how long unacknowledged messages are kept before deletion.
  2. Step 2: Effect of no acknowledgment within retention

    If a message is not acknowledged before retention expires, it is deleted and lost.
  3. Final Answer:

    The message is deleted and no longer available for delivery. -> Option B
  4. Quick Check:

    Unacknowledged message + retention expired = deleted [OK]
Quick Trick: Unacknowledged messages expire and get deleted after retention [OK]
Common Mistakes:
  • Thinking messages auto-acknowledge after retention
  • Assuming messages move to dead-letter queue automatically
  • Believing messages duplicate on retention expiry

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes