Google Cloud Professional Data Engineer — Question 236

Your chemical company needs to manually check documentation for customer order. You use a pull subscription in Pub/Sub so that sales agents get details from the order. You must ensure that you do not process orders twice with different sales agents and that you do not add more complexity to this workflow. What should you do?

Answer options

Correct answer: C

Explanation

The correct answer is C, as using Pub/Sub's exactly-once delivery ensures that each message is processed only once, eliminating the risk of duplicate processing by different sales agents. Option A would introduce additional complexity with Dataflow, while option B involves unnecessary overhead with a transactional database. Option D suggests a push subscription, which does not address the requirement for ensuring no duplicate processing in a pull subscription scenario.