exam questions

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 157 discussion

Actual exam question from Google's Professional Cloud Developer
Question #: 157
Topic #: 1
[All Professional Cloud Developer Questions]

Your team develops services that run on Google Cloud. You want to process messages sent to a Pub/Sub topic, and then store them. Each message must be processed exactly once to avoid duplication of data and any data conflicts. You need to use the cheapest and most simple solution. What should you do?

  • A. Process the messages with a Dataproc job, and write the output to storage.
  • B. Process the messages with a Dataflow streaming pipeline using Apache Beam's PubSubIO package, and write the output to storage.
  • C. Process the messages with a Cloud Function, and write the results to a BigQuery location where you can run a job to deduplicate the data.
  • D. Retrieve the messages with a Dataflow streaming pipeline, store them in Cloud Bigtable, and use another Dataflow streaming pipeline to deduplicate messages.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
__rajan__
7 months, 1 week ago
Selected Answer: B
B is correct.
upvoted 1 times
...
purushi
8 months, 3 weeks ago
Selected Answer: B
Dataflow ensures that the data will be processed only once.
upvoted 1 times
...
wrakky
1 year, 3 months ago
Answer is B https://cloud.google.com/blog/products/data-analytics/handling-duplicate-data-in-streaming-pipeline-using-pubsub-dataflow "...because Pub/Sub provides each message with a unique message_id, Dataflow uses it to deduplicate messages by default if you use the built-in Apache Beam PubSubIO"
upvoted 4 times
...
TNT87
1 year, 4 months ago
Selected Answer: B
https://cloud.google.com/pubsub/docs/stream-messages-dataflow https://cloud.google.com/community/tutorials/pubsub-spring-dedup-messages https://cloud.google.com/blog/products/data-analytics/handling-duplicate-data-in-streaming-pipeline-using-pubsub-dataflow
upvoted 1 times
...
zellck
1 year, 4 months ago
Selected Answer: B
B is the answer. https://cloud.google.com/dataflow/docs/concepts/streaming-with-cloud-pubsub
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago