Pre-Winter Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: pass65

Google Professional Data Engineer Exam Professional-Data-Engineer Question # 41 Topic 5 Discussion

Google Professional Data Engineer Exam Professional-Data-Engineer Question # 41 Topic 5 Discussion

Professional-Data-Engineer Exam Topic 5 Question 41 Discussion:
Question #: 41
Topic #: 5

Your car factory is pushing machine measurements as messages into a Pub/Sub topic in your Google Cloud project. A Dataflow streaming job. that you wrote with the Apache Beam SDK, reads these messages, sends acknowledgment lo Pub/Sub. applies some custom business logic in a Doffs instance, and writes the result to BigQuery. You want to ensure that if your business logic fails on a message, the message will be sent to a Pub/Sub topic that you want to monitor for alerting purposes. What should you do?


A.

Use an exception handling block in your Data Flow’s Doffs code to push the messages that failed to be transformed through a side outputand to a new Pub/Sub topic. Use Cloud Monitoring to monitor the topic/num_jnacked_messages_by_region metric on this new topic.


B.

Enable retaining of acknowledged messages in your Pub/Sub pull subscription. Use Cloud Monitoring to monitor thesubscription/num_retained_acked_messages metric on this subscription.


C.

Enable dead lettering in your Pub/Sub pull subscription, and specify a new Pub/Sub topic as the dead letter topic. Use Cloud Monitoring tomonitor the subscription/dead_letter_message_count metric on your pull subscription.


D.

Create a snapshot of your Pub/Sub pull subscription. Use Cloud Monitoring to monitor the snapshot/numessages metric on thissnapshot.


Get Premium Professional-Data-Engineer Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.