Bird
0
0

Despite enabling message ordering in Pub/Sub, messages with the same ordering key sometimes arrive out of order. What is a common cause?

medium📝 Debug Q7 of 15
GCP - Cloud Pub/Sub

Despite enabling message ordering in Pub/Sub, messages with the same ordering key sometimes arrive out of order. What is a common cause?

AThe topic does not have message retention enabled
BThe subscriber is using multiple threads to process messages
CThe publisher did not handle publish failures and resume ordering correctly
DThe ordering key contains invalid characters
Step-by-Step Solution
Solution:
  1. Step 1: Understand ordering failure causes

    Pub/Sub requires the publisher to handle publish failures and resume ordering to maintain order.
  2. Step 2: Analyze options

    The publisher did not handle publish failures and resume ordering correctly correctly identifies that not handling failures breaks ordering guarantees. Options B, C, and D do not cause ordering issues.
  3. Final Answer:

    The publisher did not handle publish failures and resume ordering correctly -> Option C
  4. Quick Check:

    Publish failure handling is critical [OK]
Quick Trick: Handle publish failures to maintain order [OK]
Common Mistakes:
  • Blaming subscriber concurrency for ordering issues
  • Ignoring the need to resume publishing after failure
  • Assuming invalid characters break ordering

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes