
Answer-first summary for fast verification
Answer: A global temporary view is available only on the cluster it was created, and it is automatically dropped when the cluster restarts.
The correct answer is that a global temporary view is available only on the cluster it was created on, and it is automatically dropped when the cluster restarts. There are two types of temporary views: session-scoped and global. A session-scoped temporary view is only available within a single Spark session, meaning another notebook in the same cluster cannot access it. If a notebook is detached and reattached, the temporary view is lost. A global temporary view is accessible to all notebooks in the cluster, but it is lost if the cluster restarts.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
What is a true statement about the global temporary view in Databricks?
A
A global temporary view is available on all clusters for a given workspace.
B
A global temporary view is automatically dropped after 7 days.
C
A global temporary view is available only on the cluster it was created, and it is automatically dropped when the cluster restarts.
D
A global temporary view persists even if the cluster is restarted.
E
A global temporary view is stored in a user database.
No comments yet.