HOTSPOT (Drag and Drop is not supported)You have a Fabric tenant that contains lakehouse named Lakehouse1. Lakehouse1 contains a Delta table with eight columns.You receive new data that contains the same eight columns and two additional columns.You create a Spark DataFrame and assign the DataFrame to a variable named df. The DataFrame contains the new data.You need to add the new data to the Delta table to meet the following requirements: Keep all the existing rows.Ensure that all the new data is added to the table.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:
Answer(s): A
Box 1: appendMode "append" atomically adds new data to an existing Delta table and "overwrite" atomically replaces all of the data in a table.Box 2: overwriteSchema falseExplicitly update schema to change column type or nameYou can change a column’s type or name or drop a column by rewriting the table. To do this, use the overwriteSchema option.The following example shows changing a column type: (spark.read.table(...).withColumn("birthDate", col("birthDate").cast("date")).write.mode("overwrite").option("overwriteSchema", "true").saveAsTable(...)), when performing an Overwrite, the data will be deleted before writing out the new data.
https://learn.microsoft.com/en-us/azure/databricks/delta/update-schema
You have a Fabric tenant that contains a lakehouse. You plan to use a visual query to merge two tables.You need to ensure that the query returns all the rows in both tables. Which type of join should you use?
Answer(s): B
The FULL OUTER JOIN keyword returns all records when there is a match in left (table1) or right (table2) table records.
https://www.w3schools.com/sql/sql_join_full.asp
DRAG DROP (Drag and Drop is not supported)You are implementing two dimension tables named Customers and Products in a Fabric warehouse.You need to use slowly changing dimension (SCD) to manage the versioning of data. The solution must meet the requirements shown in the following table.Which type of SCD should you use for each table? To answer, drag the appropriate SCD types to the correct tables. Each SCD type may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.NOTE: Each correct selection is worth one point.Select and Place:
Box 1: Type 2There are 6 types of Slowly Changing Dimension that are commonly used, they are as follows:Type 0 – Fixed DimensionNo changes allowed, dimension never changesType 1 – No HistoryUpdate record directly, there is no record of historical values, only current stateType 2 – Row VersioningTrack changes as version records with current flag & active dates and other metadataType 3 – Previous Value columnTrack change to a specific attribute, add a column to show the previous value, which is updated as further changes occurEtc.Box 2: Type 1
https://adatis.co.uk/introduction-to-slowly-changing-dimensions-scd-types/
You have a Fabric workspace named Workspace1 and an Azure SQL database.You plan to create a dataflow that will read data from the database, and then transform the data by performing an inner join.You need to ignore spaces in the values when performing the inner join. The solution must minimize development effort.What should you do?
Joins are merge operations.Join transformation in mapping data flowUse the join transformation to combine data from two sources or streams in a mapping data flow. The output stream will include all columns from both sources matched based on a join condition.Inner join only outputs rows that have matching values in both tables. Fuzzy joinYou can choose to join based on fuzzy join logic instead of exact column value matching by turning on the "Use fuzzy matching" checkbox option.*-> Combine text parts: Use this option to find matches by remove space between words. For example, Data Factory is matched with DataFactory if this option is enabled.Similarity score column: You can optionally choose to store the matching score for each row in a column by entering a new column name here to store that value.Similarity threshold: Choose a value between 60 and 100 as a percentage match between values in the columns you've selected.
https://learn.microsoft.com/en-us/azure/data-factory/data-flow-join
You have a Fabric tenant that contains a warehouse named Warehouse1. Warehouse1 contains two schemas name schema1 and schema2 and a table named schema1.city.You need to make a copy of schema1.city in schema2. The solution must minimize the copying of data. Which T-SQL statement should you run?
Answer(s): C
CREATE TABLE AS CLONE OFApplies to: Warehouse in Microsoft FabricCreates a new table as a zero-copy clone of another table in Warehouse in Microsoft Fabric. Only the metadata of the table is copied. The underlying data of the table, stored as parquet files, is not copied.
https://learn.microsoft.com/en-us/sql/t-sql/statements/create-table-as-clone-of-transact-sql
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.