CERTIFIED-DATA-ENGINEER-PROFESSIONAL · Question #92
A data engineer needs to capture pipeline settings from an existing in the workspace, and use them to create and version a JSON file to create a new pipeline. Which command should the data engineer…
The correct answer is A. Use the get command to capture the settings for the existing pipeline; remove the pipeline_id and. The Databricks CLI provides a pipelines get command that retrieves the full JSON configuration of an existing Delta Live Tables pipeline. To use that configuration to create a new pipeline, you must remove the pipeline_id field (which is auto-assigned and unique) along with any…
Question
A data engineer needs to capture pipeline settings from an existing in the workspace, and use them to create and version a JSON file to create a new pipeline. Which command should the data engineer enter in a web terminal configured with the Databricks CLI?
Options
- AUse the get command to capture the settings for the existing pipeline; remove the pipeline_id and
- BStop the existing pipeline; use the returned settings in a reset command
- CUse the alone command to create a copy of an existing pipeline; use the get JSON command to
- DUse list pipelines to get the specs for all pipelines; get the pipeline spec from the return results
How the community answered
(65 responses)- A83% (54)
- B9% (6)
- C5% (3)
- D3% (2)
Explanation
The Databricks CLI provides a pipelines get command that retrieves the full JSON configuration of an existing Delta Live Tables pipeline. To use that configuration to create a new pipeline, you must remove the pipeline_id field (which is auto-assigned and unique) along with any creator/owner metadata before passing the JSON to the pipelines create command. This is the standard CLI workflow for duplicating or versioning pipeline configurations. The other options describe commands or workflows that either do not exist in the CLI or would not accomplish the stated goal of capturing and versioning a pipeline spec.
Topics
Community Discussion
No community discussion yet for this question.