Which syntax should you use in a notebook to access the Research division data for Productline1?
Answer(s): A
Correct:* spark.read.format("delta").load("Tables/ResearchProduct")spark.sql(“SELECT * FROM Lakehouse1.ResearchProduct”)Incorrect:* external_table(ResearchProduct)* external_table(Tables/ResearchProduct)* spark.read.format(“delta”).load(“Files/ResearchProduct”)* spark.read.format("delta").load("Tables/productline1/ResearchProduct")* spark.sql(“SELECT * FROM Lakehouse1.productline1.ResearchProduct”)spark.sql("SELECT * FROM Lakehouse1.Tables.ResearchProduct")NOTE: Apache SparkApache Spark notebooks and Apache Spark jobs can use shortcuts that you create in OneLake. Relative file paths can be used to directly read data from shortcuts. Additionally, if you create a shortcut in the Tables section of the lakehouse and it is in the Delta format, you can read it as a managed table using Apache Spark SQL syntax.Can use either:df = spark.read.format("delta").load("Tables/MyShortcut") display(df)ORdf = spark.sql("SELECT * FROM MyLakehouse.MyShortcut LIMIT 1000") display(df)--The spark.read.format("delta").load(...) method is specifically designed for reading data stored in Delta format, which is what the Research division data for Productline1 is based on.The path "Tables/ResearchProduct" correctly refers to the shortcut created in Lakehouse1, allowing you to access the data efficiently.Scenario:An Azure Data Lake Storage Gen2 storage account named storage1 contains Research division data for a product line named Productline1. The data is in the delta format.The Research division data for Productline1 must be retrieved from Lakehouse1 by using Fabric notebooks. Planned changes include:In Lakehouse1, create a shortcut to storage1 named ResearchProduct.
https://learn.microsoft.com/en-us/fabric/onelake/onelake-shortcuts https://learn.microsoft.com/en-us/fabric/onelake/onelake-shortcuts
Answer(s): D
Correct:* spark.read.format("delta").load("Tables/ResearchProduct")spark.sql(“SELECT * FROM Lakehouse1.ResearchProduct”)Incorrect:* external_table(ResearchProduct)* external_table(Tables/ResearchProduct)* spark.read.format(“delta”).load(“Files/ResearchProduct”)* spark.read.format("delta").load("Tables/productline1/ResearchProduct")* spark.sql(“SELECT * FROM Lakehouse1.productline1.ResearchProduct”)spark.sql("SELECT * FROM Lakehouse1.Tables.ResearchProduct")NOTE: Apache SparkApache Spark notebooks and Apache Spark jobs can use shortcuts that you create in OneLake. Relative file paths can be used to directly read data from shortcuts. Additionally, if you create a shortcut in the Tables section of the lakehouse and it is in the Delta format, you can read it as a managed table using Apache Spark SQL syntax.Can use either:df = spark.read.format("delta").load("Tables/MyShortcut") display(df)ORdf = spark.sql("SELECT * FROM MyLakehouse.MyShortcut LIMIT 1000") display(df)--The spark.read.format("delta").load(...) method is specifically designed for reading data stored in Delta format, which is what the Research division data for Productline1 is based on.The path "Tables/ResearchProduct" correctly refers to the shortcut created in Lakehouse1, allowing you to access the data efficiently.Scenario:An Azure Data Lake Storage Gen2 storage account named storage1 contains Research division data for a product line named Productline1. The data is in the delta format.The Research division data for Productline2 must be retrieved from Lakehouse1 by using Fabric notebooks. Planned changes include:In Lakehouse1, create a shortcut to storage1 named ResearchProduct.
Correct:* spark.read.format("delta").load("Tables/ResearchProduct")spark.sql(“SELECT * FROM Lakehouse1.ResearchProduct”)Incorrect:* external_table(ResearchProduct)* external_table(‘Tables/ResearchProduct’)* spark.read.format(“delta”).load(“Files/ResearchProduct”)* spark.read.format("delta").load("Tables/productline1/ResearchProduct")* spark.sql(“SELECT * FROM Lakehouse1.productline1.ResearchProduct”)spark.sql("SELECT * FROM Lakehouse1.Tables.ResearchProduct")NOTE: Apache SparkApache Spark notebooks and Apache Spark jobs can use shortcuts that you create in OneLake. Relative file paths can be used to directly read data from shortcuts. Additionally, if you create a shortcut in the Tables section of the lakehouse and it is in the Delta format, you can read it as a managed table using Apache Spark SQL syntax.Can use either:df = spark.read.format("delta").load("Tables/MyShortcut") display(df)ORdf = spark.sql("SELECT * FROM MyLakehouse.MyShortcut LIMIT 1000") display(df)--The spark.read.format("delta").load(...) method is specifically designed for reading data stored in Delta format, which is what the Research division data for Productline1 is based on.The path "Tables/ResearchProduct" correctly refers to the shortcut created in Lakehouse1, allowing you to access the data efficiently.Scenario:An Azure Data Lake Storage Gen2 storage account named storage1 contains Research division data for a product line named Productline1. The data is in the delta format.The Research division data for Productline2 must be retrieved from Lakehouse1 by using Fabric notebooks. Planned changes include:In Lakehouse1, create a shortcut to storage1 named ResearchProduct.
HOTSPOT (Drag and Drop is not supported)You need to migrate the Research division data for Productline2. The solution must meet the data preparation requirements.How should you complete the code? To answer, select the appropriate options in the answer area.NOTE: Each correct selection is worth one point.Hot Area:
Box 1: deltaDelta Lake uses versioned Parquet files to store your data in your cloud storage. Box 2: Tables/productline2NOTE: Apache SparkApache Spark notebooks and Apache Spark jobs can use shortcuts that you create in OneLake. Relative file paths can be used to directly read data from shortcuts. Additionally, if you create a shortcut in the Tables section of the lakehouse and it is in the Delta format, you can read it as a managed table using Apache Spark SQL syntax.df = spark.read.format("delta").load("Tables/MyShortcut") display(df)df = spark.sql("SELECT * FROM MyLakehouse.MyShortcut LIMIT 1000") display(df)Scenario:A Data Lake Storage Gen2 storage account named storage2 contains Research division data for a product line named Productline2. The data is in the CSV format.Requirements, Planned ChangesFor the Research division, create two Fabric workspaces named Productline1ws and Productline2ws.Data Preparation RequirementsContoso identifies the following data preparation requirements:The Research division data for Productline2 must be retrieved from Lakehouse1 by using Fabric notebooks.*-> All the Research division data in the lakehouses must be presented as managed tables in Lakehouse explorer.NOTE:Spark provides two types of tables that Azure Synapse exposes in SQL automatically:Managed tablesSpark provides many options for how to store data in managed tables, such as TEXT, CSV, JSON, JDBC, PARQUET, ORC, HIVE, DELTA, and LIBSVM. These files are normally stored in the warehouse directory where managed table data is stored.External tables
https://learn.microsoft.com/en-us/azure/synapse-analytics/metadata/table https://learn.microsoft.com/en-us/fabric/onelake/onelake-shortcuts
Answer(s): B
Post your Comments and Discuss Microsoft DP-600 exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the DP-600 content, but please register or login to continue.