
Ultimate access to all questions.
A data engineer wants to create a relational object by pulling data from two tables. The relational object does not need to be used by other data engineers in other sessions. In order to save on storage costs, the data engineer wants to avoid copying and storing physical data.
Which of the following relational objects should the data engineer create?
A
Spark SQL Table
B
View
C
Database
D
Temporary view
E
Delta Table
Explanation:
Correct Answer: D (Temporary view)
Session-based: Temporary views exist only for the duration of the current Spark session, which aligns perfectly with the requirement that "the relational object does not need to be used by other data engineers in other sessions."
No Physical Storage: Temporary views do not store physical data. They are essentially saved query definitions that reference the underlying tables. When queried, they execute the saved query against the source tables, avoiding data duplication.
Cost-Effective: Since no physical data is copied or stored, this saves on storage costs as specified in the requirement.
CREATE TEMP VIEW view_name AS query