QuestionQ123

VerifiedDebugging and Deploying

A data-engineering team member submitted a brief notebook that they want to schedule as part of a larger data pipeline. Assume that the commands below produce logically correct results when run as shown.

Question Image

Which command should be removed from the notebook before it is scheduled as a job?

Explanation

display() is a Databricks notebook-specific interactive visualization for exploring a DataFrame. It is not needed to transform or persist the pipeline output, whereas the final saveAsTable command performs the required write. Removing the display command avoids generating unnecessary interactive output in the scheduled workload.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!