Accessing OneLake Shortcuts in Fabric Notebooks
Short answer
A Use spark.read.format("delta").load("Files/ResearchProduct") to read data from the shortcut as a file path in the notebook.
Question
Key Takeaways
Shortcuts are file system mounts, not managed tables; thus you must use spark.read.format("delta").load() with the Files/ path rather than SQL SELECT statements.
Learn the correct PySpark syntax to read Delta format data from a OneLake shortcut in Microsoft Fabric, distinguishing between filesystem paths and registered tables.
Common mistake: Learners often choose the SQL option (B) because they assume shortcuts automatically register as tables in the Lakehouse catalog, which is incorrect for raw data access via notebooks.
Expert Analysis
Why the Answer Is Correct
The correct syntax is A:spark.read.format("delta").load("Files/ResearchProduct"). In Microsoft Fabric, a shortcut acts as a virtual mount point in the OneLake file system. When accessing data directly from a shortcut in a notebook without first creating a managed table or view, you must treat it as a file path. The Files/ prefix is required to reference the OneLake filesystem, and since the source data is in Delta format, specifying format("delta") ensures proper parsing.Why the Other Options Are Wrong
Options B and C (spark.sql) are incorrect because they attempt to query a table name that does not exist in the Lakehouse catalog. A shortcut is not automatically a table; it is a directory link. Unless a user explicitly creates a table or view pointing to that shortcut, SQL queries will fail with a "table not found" error. Option D is invalid syntax for PySpark in this context.Community Comment Notes
Many candidates were confused by the distinction between shortcuts and tables. As user MAKI911 noted, "options B and C are incorrect... ResearchProduct is simply a shortcut (folder) pointing to Delta files." Another commenter, user pk07, clarified that "shortcuts do not behave like managed tables... use Files/ path." While some users argued for SQL syntax based on external documentation regarding SQL endpoints, the question specifically asks for notebook code, where direct Spark API access to the file path is the standard method for unregistered data.Exam Strategy
Always distinguish between 'SQL Endpoints' (which allow querying shortcuts via SQL if configured) and 'Notebooks' (which require explicit Spark API calls). If the question asks for notebook code to read a shortcut directly, look for the Files/ path and spark.read commands.
Frequently Asked Questions
Can I use spark.sql to read a shortcut directly?
Why is the Files/ prefix needed in the load path?
Community Votes
53% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 9 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 9
-
MAKI911 👍 3 Answered AThe main reason why options B and C are incorrect is that they assume “ResearchProduct” has already been registered as a table in Lakehouse1. In this scenario, however, “ResearchProduct” is simply a shortcut (folder) pointing to Delta files. Because no managed table has been created for that folder yet, you cannot use SQL syntax like • spark.sql("SELECT FROM Lakehouse1.ResearchProduct") or • spark.sql("SELECT FROM Lakehouse1.Tables.ResearchProduct") to query the data. Instead, you must read directly from the underlying Delta files by referencing the “Files/ResearchProduct” path. That is why option A (spark.read.format("delta").load("Files/ResearchProduct")) is the correct choice in a Fabric notebook.
-
f0dd605 👍 3 Answered AA according to ChatGPT: The question requires accessing Research division data for Productline1 stored in delta format from the lakehouse (Lakehouse1) in a Fabric notebook. Here’s why option A is the correct choice: Delta Format Access in Spark: The data for Productline1 is stored in Delta format, as per the scenario. When working with Delta format in Spark notebooks, the standard way to read data is using spark.read.format("delta").load(<path>). Files/ResearchProduct Path: A shortcut named ResearchProduct has been created in Lakehouse1. In Microsoft Fabric, the Files/ResearchProduct path refers to the shortcut to the Delta Lake storage (storage1), which makes the data available within the lakehouse.
-
4b35503 👍 3 Answered BREF https://learn.microsoft.com/en-us/fabric/onelake/access-onelake-shortcuts Correct Sintax spark.sql("SELECT * FROM <LH>.<Shortcut_Name>")
-
pk07 👍 1 Answered AThe key change is understanding that shortcuts do not behave like managed tables in Spark SQL. To read data from a shortcut you need to use spark.read.format and use Files/ path, since it's a shortcut it behaves like a file in the filesystem. Corrected Answer: A. spark.read.format("delta").load("Files/ResearchProduct")
-
RickyK 👍 1 Answered CIf the requirement is "For the Research division workspaces, the members of ResearchReviewersGroup1 must be able to read lakehouse and warehouse data and shortcuts by using SQL endpoints" then the shortcut would need to be created in the "Tables" section.
Show 4 more comments
-
Jowalkr 👍 1Since the file is in Delta format, it should be a straight forward read and I think the answer should be A.
-
jackjack1 👍 1 Answered AShortcut hasn't been created yet, don't think B would be correct for that reason.
-
chq23 👍 3 Answered BResearchProduct is a shortcut
-
4e5cf3d 👍 1 Answered BA is wrong: Table not Files
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All DP-600 Questions
Access 115 questions with complete answers and detailed explanations.
View Full DP-600 Practice Test →