
Explanation:
Global temporary views are tied to the SparkSession, meaning they persist as long as the SparkSession is active. Detaching and reattaching a notebook to the same cluster does not affect the SparkSession, so the views remain accessible. However, they cannot be accessed across different clusters, and restarting the cluster (which creates a new SparkSession) will cause all temporary views to be lost. Additionally, global temporary views are not stored in a 'temp' database but in a special namespace called 'global_temp'.
Ultimate access to all questions.
No comments yet.
What is true about global temporary views in Databricks?
A
Global temporary views can be accessed across many clusters.
B
Global temporary views cannot be accessed once the notebook is detached and attached.
C
Global temporary views can still be accessed even if the notebook is detached and attached.
D
Global temporary views can still be accessed even if the cluster is restarted.
E
Global temporary views are created in a database called temp database.