Bird
0
0

You want to ensure messages are retained for 14 days even if not acknowledged. How should you configure your Google Cloud Pub/Sub subscription?

hard📝 Application Q8 of 15
GCP - Cloud Pub/Sub
You want to ensure messages are retained for 14 days even if not acknowledged. How should you configure your Google Cloud Pub/Sub subscription?
ASet the message retention duration to 14 days in the subscription settings
BIncrease the acknowledgment deadline to 14 days
CEnable message archiving in the topic settings
DSet the subscription expiration to 14 days
Step-by-Step Solution
Solution:
  1. Step 1: Identify retention configuration

    Message retention duration controls how long unacknowledged messages are kept.
  2. Step 2: Apply correct setting

    Set the subscription's message retention duration to 14 days to keep messages that long.
  3. Final Answer:

    Set the message retention duration to 14 days in the subscription settings -> Option A
  4. Quick Check:

    Retention duration controls message keep time [OK]
Quick Trick: Configure retention duration, not ack deadline, for message keep time [OK]
Common Mistakes:
  • Confusing ack deadline with retention duration
  • Thinking topic settings control retention
  • Setting subscription expiration instead

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes