
Ultimate access to all questions.
Answer-first summary for fast verification
Answer: Use Pub/Sub exactly-once delivery in your pull subscription.
The correct answer is C. By using Pub/Sub exactly-once delivery in your pull subscription, you can ensure that each message is delivered only once to a subscriber, thus preventing the possibility of processing orders twice with different sales agents. This method is efficient and does not add unnecessary complexity to the workflow. - **Option A** suggests creating a new Pub/Sub push subscription, which may not effectively prevent duplicate processing and is not as suitable as a pull subscription for this scenario. - **Option B** involves using a Deduplicate PTransform in Dataflow, which, while capable of preventing duplicates, introduces additional complexity and may not be as efficient as Pub/Sub's built-in exactly-once delivery feature. - **Option D** proposes creating a transactional database to monitor messages, which adds complexity and management overhead without guaranteeing the prevention of duplicate order processing.
Author: LeetQuiz Editorial Team
Your chemical company manually checks documentation for customer orders and uses a pull subscription in Pub/Sub for sales agents to access order details. How can you prevent processing orders twice with different sales agents and avoid adding complexity to the workflow?
A
Create a new Pub/Sub push subscription to monitor the orders processed in the agent‘s system.
B
Use a Deduplicate PTransform in Dataflow before sending the messages to the sales agents.
C
Use Pub/Sub exactly-once delivery in your pull subscription.
D
Create a transactional database that monitors the pending messages.
No comments yet.