HOTSPOT (Drag and Drop is not supported)You have a Fabric workspace that uses the default Spark starter pool and runtime version 1.2.You plan to read a CSV file named Sales_raw.csv in a lakehouse, select columns, and save the data as a Delta table to the managed area of the lakehouse. Sales_raw.csv contains 12 columns.You have the following code.For each of the following statements, select Yes if the statement is true. Otherwise, select No.NOTE: Each correct selection is worth one point.Hot Area:
Answer(s): A
Box 1: YesYes - The Spark engine will read only the 'SalesOrderNumber','OrderDate','CustomerName','UnitPrice' columns from Sales_raw.csv.NOTE:DataFrame.select(*cols: ColumnOrName) → DataFrame[source] Projects a set of expressions and returns a new DataFrameParameterscolsstr, Column, or listcolumn names (string) or expressions (Column). If one of the column names is ‘*’, that column is expanded to include all columns in the current DataFrame.Box 2: NoNo - The Year column replaces the OrderDate column in the table. withColumn adds one extra columnNOTE: pyspark.sql.dataframe.DataFrame[source]Returns a new DataFrame by adding multiple columns or replacing the existing columns that have the same names.The colsMap is a map of column name and column, the column must only refer to attributes supplied by this Dataset. It is an error to add columns that refer to some other Dataset.Box 3: YesYes - Adding inferSchema='true' to the options will increase the execution time of the query.When you set inferSchema to True, PySpark will make an additional pass over the data to determine the data types of each column. This can be useful when you don't have a predefined schema for your data and want Spark to automatically deduce the types based on the actual data values.
https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.DataFrame.select.html https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/ pyspark.sql.DataFrame.withColumns.htmlhttps://medium.com/@sujathamudadla1213/what-are-the-considerations-and-implications-of-setting- inferschema-to-true-and-false-in-pyspark-9fc77fa2ad9a
You have a Fabric tenant.You are creating a Fabric Data Factory pipeline.You have a stored procedure that returns the number of active customers and their average sales for the current month.You need to add an activity that will execute the stored procedure in a warehouse. The returned values must be available to the downstream activities of the pipeline.Which type of activity should you add?
Answer(s): D
Lookup ActivityLookup Activity can be used to read or look up a record/ table name/ value from any external source. This output can further be referenced by succeeding activities.NOTE: Lookup activity can retrieve a dataset from any of the data sources supported by data factory and Synapse pipelines. You can use it to dynamically determine which objects to operate on in a subsequent activity, instead of hard coding the object name. Some object examples are files and tables.Lookup activity reads and returns the content of a configuration file or table. It also returns the result of executing a query or stored procedure. The output can be a singleton value or an array of attributes, which can be consumed in a subsequent copy, transformation, or control flow activities like ForEach activity.Incorrect:Append variableAppend Variable activity in Azure Data Factory and Synapse AnalyticsUse the Append Variable activity to add a value to an existing array variable defined in a Data Factory or Synapse Analytics pipelineCopy dataIn Data Pipeline, you can use the Copy activity to copy data among data stores located in the cloud.After you copy the data, you can use other activities to further transform and analyze it. You can also use the Copy activity to publish transformation and analysis results for business intelligence (BI) and application consumption.KQLThe KQL activity in Data Factory for Microsoft Fabric allows you to run a query in Kusto Query Language (KQL) against an Azure Data Explorer instance.SwitchThe Switch activity in Microsoft Fabric provides the same functionality that a switch statement provides in programming languages. It evaluates a set of activities corresponding to a case that matches the condition evaluation.
https://learn.microsoft.com/en-us/azure/data-factory/control-flow-lookup-activity https://learn.microsoft.com/en-us/azure/data-factory/control-flow-append-variable-activity
NOTE: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.You have a Fabric tenant that contains a semantic model named Model1. You discover that the following query performs slowly against Model1.You need to reduce the execution time of the query. Solution: You replace line 4 by using the following code: NOT ( CALCULATE ( COUNTROWS ( 'Order Item' ) ) < 0)Does this meet the goal?
Answer(s): B
Correct: You replace line 4 by using the following code:NOT ISEMPTY ( CALCULATETABLE ( 'Order Item ' ) )Just check if it is empty or not. NOTE: ISEMPTYChecks if a table is empty.Syntax ISEMPTY(<table_expression>)Parameterstable_expression - A table reference or a DAX expression that returns a table. Return value - True if the table is empty (has no rows), if else, False.Incorrect:* CALCULATE ( COUNTROWS ( 'Order Item' ) ) >= 0* ISEMPTY ( RELATEDTABLE ( 'Order Item' ) )* NOT ( CALCULATE ( COUNTROWS ( 'Order Item' ) ) < 0)
https://learn.microsoft.com/en-us/dax/isempty-function-dax
Answer(s): C
The Lookup activity is specifically designed to execute a query or stored procedure and retrieve data from a data source, such as a warehouse. It allows you to capture the output, which can then be used in subsequent activities in the pipeline.By using the Lookup activity, you can access the returned values (number of active customers and their average sales) and pass them on to other activities for further processing.
You have an Amazon Web Services (AWS) subscription that contains an Amazon Simple Storage Service (Amazon S3) bucket named bucket1.You have a Fabric tenant that contains a lakehouse named LH1. In LH1, you plan to create a OneLake shortcut to bucket1.You need to configure authentication for the connection.Which two values should you provide? Each correct answer presents part of the solution.NOTE: Each correct selection is worth one point.
Answer(s): B,D
the secret access keyThe secret access key is used in conjunction with the access key ID to authenticate requests to AWS services, including S3.the access key IDThe access key ID is a unique identifier associated with the AWS account or IAM user that you will use to authenticate requests to the S3 bucket.
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.