Which of the following is correct for the global temporary view?

Which of the following is correct for the global temporary view?
A . global temporary views cannot be accessed once the notebook is detached and attached
B. global temporary views can be accessed across many clusters
C. global temporary views can be still accessed even if the notebook is detached and at-tached
D. global temporary views can be still accessed even if the cluster is restarted
E. global temporary views are created in a database called temp database

Answer: C

Explanation:

The answer is global temporary views can be still accessed even if the notebook is detached and attached

There are two types of temporary views that can be created Local and Global

• A local temporary view is only available with a spark session, so another notebook in the same cluster can not access it. if a notebook is detached and reattached local temporary view is lost.

• A global temporary view is available to all the notebooks in the cluster, even if the notebook is detached and reattached it can still be accessible but if a cluster is restarted the global temporary view is lost.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments