Bird
0
0

You have a subscription that is not receiving messages even though the topic has published messages. Which configuration issue could cause this?

medium📝 Debug Q7 of 15
GCP - Cloud Pub/Sub
You have a subscription that is not receiving messages even though the topic has published messages. Which configuration issue could cause this?
AThe subscription's acknowledgement deadline is set too high
BThe subscription is not attached to the correct topic
CThe topic has no IAM permissions set
DThe subscription has message filtering enabled with no matching attributes
Step-by-Step Solution
Solution:
  1. Step 1: Check subscription-topic linkage

    If the subscription is not linked to the correct topic, it will not receive messages published to the intended topic.
  2. Step 2: Evaluate other options

    A high ack deadline does not prevent message delivery; lack of IAM on topic affects publishing, not subscription; filtering with no matches stops delivery but is less common.
  3. Final Answer:

    The subscription is not attached to the correct topic -> Option B
  4. Quick Check:

    Subscription-topic mismatch stops message flow [OK]
Quick Trick: Verify subscription is linked to the correct topic [OK]
Common Mistakes:
  • Assuming ack deadline affects message receipt
  • Ignoring subscription-topic association
  • Overlooking message filtering settings

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes