nerdexam
Google

PROFESSIONAL-DATA-ENGINEER · Question #171

Your team is responsible for developing and maintaining ETLs in your company. One of your Dataflow jobs is failing because of some errors in the input data, and you need to improve reliability of the

The correct answer is D. Add a try... catch block to your DoFn that transforms the data, use a sideOutput to create a PCollection that can be stored to PubSub later.. Explanation/Reference: https://cloud.google.com/blog/products/gcp/handling-invalid-inputs-in-dataflow

Submitted by yuriko_h· Mar 30, 2026Ensuring solution quality

Question

Your team is responsible for developing and maintaining ETLs in your company. One of your Dataflow jobs is failing because of some errors in the input data, and you need to improve reliability of the pipeline (incl.being able to reprocess all failing data). What should you do?

Options

  • AAdd a filtering step to skip these types of errors in the future, extract erroneous rows from logs.
  • BAdd a try... catch block to your DoFn that transforms the data, extract erroneous rows from logs.
  • CAdd a try... catch block to your DoFn that transforms the data, write erroneous rows to PubSub directly from the DoFn.
  • DAdd a try... catch block to your DoFn that transforms the data, use a sideOutput to create a PCollection that can be stored to PubSub later.

How the community answered

(34 responses)
  • A
    24% (8)
  • B
    6% (2)
  • C
    9% (3)
  • D
    62% (21)

Explanation

Explanation/Reference: https://cloud.google.com/blog/products/gcp/handling-invalid-inputs-in-dataflow

Topics

#Dataflow error handling#side outputs#dead letter pattern#pipeline reliability

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-DATA-ENGINEER Practice