Free Google Professional Data Engineer Actual Exam Questions - Question 2 Discussion

Question No. 2
You have Google Cloud Dataflow streaming pipeline running with a Google Cloud Pub/Sub
subscription as the source. You need to make an update to the code that will make the new Cloud
Dataflow pipeline incompatible with the current version. You do not want to lose any data when
making this update. What should you do?
Select one option, then reveal solution.
US
SQ
Sam Q.
2026-02-21

D, new subscription avoids compatibility issues and keeps data safe.

0
AE
Adeel E.
2026-02-19

A/C? Draining the old pipeline (A) ensures no data loss by finishing all work, but creating a new pipeline on the same subscription (C) also avoids losing messages since Pub/Sub keeps them until acknowledged.

0
OK
Omar K.
2026-02-19

Maybe D here. Creating a new subscription means the new pipeline starts fresh without messing with the old one's processing state, so you avoid conflicts or compatibility issues. Since Pub/Sub retains messages until acknowledged, the new subscription will get all new data without loss. Then you can cancel the old pipeline safely after switching over. It feels cleaner than trying to reuse the same subscription with incompatible code, which might cause processing glitches or duplicates.

0
IU
Irfan U.
2026-02-11

D, so you isolate the new pipeline and avoid conflicts from incompatible code changes.

0
AD
Amir D.
2026-02-09

A/C? Draining the old pipeline (A) ensures no data loss, but creating a new pipeline on the same subscription (C) can also work since Pub/Sub retains unacked messages, so the new pipeline picks up where the old left off.

0
YJ
Yasir J.
2026-01-27

It’s B. Using the transform mapping JSON lets you update the pipeline without breaking compatibility, so you can avoid data loss without needing to drain or switch subscriptions.

0
IP
Imran P.
2026-01-15

D - Are we sure the new subscription won't miss messages during the switch?

0