What should you do?

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?
A. Update the current pipeline and use the drain flag.
B. Update the current pipeline and provide the transform mapping JSON object.
C. Create a new pipeline that has the same Cloud Pub/Sub subscription and cancel the old pipeline.
D. Create a new pipeline that has a new Cloud Pub/Sub subscription and cancel the old pipeline.

Download Printable PDF. VALID exam to help you PASS.

11 thoughts on “What should you do?

  1. Canceling a pipeline will result in data loss so C & D are eliminated. there is no drain flag and hence A is eliminated. Answer is B.

  2. I should be C . You dont want to lose the data so using the same subscription will help getting the non-processed data

  3. A and B are wrong.
    You cannot replace a pipeline with an incompatible one because the compatibility check fails.
    I would say C.

      1. Yes, we can update an existing subscription to send messages to the new pipeline (if pushing).
        So my answer is C.

  4. I would say C, readiing Arun’s link. Whay would u want to change the source settings in the new job?

  5. A
    The main requirement is “You do not want to lose any data when making this update” so u have to drain the current pipeline

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.