
Answer-first summary for fast verification
Answer: Utilize the notebook's version history to restore a previous version.
Databricks offers a version history feature for notebooks, accessible by clicking the clock icon in the notebook's upper-right corner. This feature allows users to view and revert to previous versions of the notebook, making it possible to recover deleted cells or any other changes. While option A is a potential workaround, it's less efficient than directly using the version history. Option B is ineffective as it doesn't restore the original cell content, especially if the cell contained important variables or state changes. Option D is incorrect because the Databricks Trash feature is designed for recovering entire notebooks or files, not individual cells within a notebook.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
In a collaborative Databricks project, a team member accidentally deletes a critical cell in a shared notebook. What is the most effective method to recover the deleted cell?
A
Export the notebook, locate the deleted code, and then re-import it.
B
Ask the team member to re-execute the deleted cell.
C
Utilize the notebook's version history to restore a previous version.
D
Recover the deleted cell using the Databricks Trash feature.