Google Cloud Professional Data Engineer — Question 35

Your globally distributed auction application allows users to bid on items. Occasionally, users place identical bids at nearly identical times, and different application servers process those bids. Each bid event contains the item, amount, user, and timestamp. You want to collate those bid events into a single location in real time to determine which user bid first. What should you do?

Answer options

Correct answer: D

Explanation

The correct answer, D, allows for real-time processing of bid events through Google Cloud Pub/Sub and Google Cloud Dataflow, ensuring that the first bid is accurately determined. Option A is less efficient due to the reliance on a file and batch processing with Apache Hadoop, which does not provide real-time results. Option B also involves Cloud Pub/Sub but lacks the efficient processing of events in real-time. Option C is inefficient because it requires periodic queries across multiple databases, delaying the identification of the first bid.