Bird
0
0

Why does Google Cloud Pub/Sub allow extending the acknowledgment deadline dynamically during message processing?

hard📝 Conceptual Q10 of 15
GCP - Cloud Pub/Sub
Why does Google Cloud Pub/Sub allow extending the acknowledgment deadline dynamically during message processing?
ATo prioritize messages in the queue
BTo increase message retention duration automatically
CTo allow subscribers more time to process long-running messages without redelivery
DTo archive messages after processing
Step-by-Step Solution
Solution:
  1. Step 1: Understand ack deadline extension purpose

    Extending the ack deadline gives subscribers more time to process messages.
  2. Step 2: Prevent premature redelivery

    This avoids redelivery of messages still being processed, especially if processing takes longer than default deadline.
  3. Final Answer:

    To allow subscribers more time to process long-running messages without redelivery -> Option C
  4. Quick Check:

    Ack deadline extension = more processing time, less redelivery [OK]
Quick Trick: Extend ack deadline to avoid redelivery during long processing [OK]
Common Mistakes:
  • Confusing with retention duration
  • Thinking it changes message priority
  • Assuming it archives messages

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes