ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 311 - Professional Data Engineer discussion

Report
Export

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?

A.
Create a transactional database that monitors the pending messages.
Answers
A.
Create a transactional database that monitors the pending messages.
B.
Create a new Pub/Sub push subscription to monitor the orders processed in the agent's system.
Answers
B.
Create a new Pub/Sub push subscription to monitor the orders processed in the agent's system.
C.
Use Pub/Sub exactly-once delivery in your pull subscription.
Answers
C.
Use Pub/Sub exactly-once delivery in your pull subscription.
D.
Use a Deduphcate PTransform in Dataflow before sending the messages to the sales agents.
Answers
D.
Use a Deduphcate PTransform in Dataflow before sending the messages to the sales agents.
Suggested answer: C

Explanation:

Pub/Sub exactly-once delivery is a feature that guarantees that subscriptions do not receive duplicate deliveries of messages based on a Pub/Sub-defined unique message ID. This feature is only supported by the pull subscription type, which is what you are using in this scenario. By enabling exactly-once delivery, you can ensure that each order is processed only once by a sales agent, and that no order is lost or duplicated. This also simplifies your workflow, as you do not need to create a separate database or subscription to monitor the pending or processed messages.Reference:

Exactly-once delivery | Cloud Pub/Sub Documentation

Cloud Pub/Sub Exactly-once Delivery feature is now Generally Available (GA)

asked 18/09/2024
Daniela Const
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first