
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
NO.37 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 existing pipeline with the new code and let Dataflow handle the state migration automatically.
B
Create a new Pub/Sub subscription for the new pipeline and run both pipelines in parallel until the old one processes all existing messages.
C
Pause the existing pipeline, update the code, and then resume the pipeline.
D
Stop the existing pipeline, update the code, and then restart the pipeline.
E
Use Cloud Dataflow's template feature to create a new pipeline version and deploy it alongside the existing one.
F
Export the pipeline state to Cloud Storage, update the code, and then import the state back.
Explanation:
When you need to make code changes that make a new Dataflow pipeline incompatible with the current version while ensuring no data loss, the recommended approach is:
Option B is correct because:
Why other options are incorrect:
This approach is part of Google Cloud's recommended practice for zero-downtime pipeline updates with incompatible changes.