
Answer-first summary for fast verification
Answer: All the views except the temporary view will be accessible.
Let's examine each view type: 1. **View** – Persists across multiple sessions and remains accessible even after the notebook is detached and re-attached. 2. **Temporary view** – Tied to a session, thus not accessible once the notebook is detached from the cluster. 3. **Global temporary view** – Stored in a temporary database named `global_temp` and remains accessible even if the notebook is detached and re-attached. Therefore, only the temporary view loses its existence upon detachment and re-attachment.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
In Databricks, when using three types of views (view, temporary view, and global temporary view) in a single notebook, which views remain accessible after the notebook is detached and re-attached to the same cluster?
A
All the 3 views will be accessible.
B
Only the global temp view will be accessible.
C
None of the views will be accessible.
D
All the views except the temporary view will be accessible.
E
Temporary and global temporary views will not be accessible.