Which syntax should you use in a notebook to access the Research division data for
Productlinel?








Show answerHide answer
Correct answer: B Option B
Explanation
Explanation:The question assesses knowledge of accessing external Research division data in a Microsoft Fabric notebook. The data for Productline1 is in an ADLS Gen2 account, made available via a shortcut named "ResearchProduct" in the lakehouse's Files section. Shortcuts to external storage appear under Files, and Delta-formatted data can be read using Spark's load method pointing to the shortcut path, enabling seamless access without ingestion.
Correct Option:
B. spark.read.format("delta").load("Files/ResearchProduct")
This syntax correctly loads Delta data from the external location via the shortcut in the Files section. Shortcuts to folders in external storage are placed under Files, and Spark treats the path "Files/
Incorrect Option:
A. spark.sql("SELECT * FROM Lakehouse1.ResearchProduct")
This assumes ResearchProduct is a managed table in the Tables section with lakehouse-qualified naming, but as a Files shortcut to external Delta data, it is not registered in the metastore as a table, causing a table not found error.
C. spark.sql("SELECT * FROM Lakehouse1.productline1.ResearchProduct")
This uses incorrect naming (productline1 as schema) and assumes a managed table structure; shortcuts do not create schemas or tables in the catalog, making this syntax invalid for accessing external shortcut data.
D. external_table('Tables/ResearchProduct')
This appears to be a non-existent or invalid function in Fabric Spark notebooks; standard Delta access uses spark.read.format("delta").load or table registration, and Tables is reserved for managed tables, not shortcuts.
Reference:
Microsoft Learn: OneLake shortcuts; Fabric Lakehouse explorer behavior for shortcuts; DP-600 exam discussions on accessing external data via shortcuts in notebooks.