Microsoft Fabric Data Engineer Associate DP-700 Practice Question
You are designing a data pipeline in Microsoft Fabric that loads operational data into a Lakehouse-based star schema every hour. Dimension tables must retain type-2 history and use surrogate keys that stay unique across all incremental loads. Which action should you implement to prepare the dimension data before the fact tables are loaded?
Write the incoming dimension rows in append mode; let a GENERATED ALWAYS IDENTITY column assign surrogate keys automatically during the insert.
Overwrite the dimension table on every run by using a KQL dataflow that recreates the table from scratch.
Use a Delta Lake MERGE statement that matches on the business key, expires the current row, and inserts a new row that receives a new surrogate key whenever any tracked attribute changes.
Load the source table with COPY INTO and keep the original primary key from the operational system as the dimension key.
A Delta Lake MERGE statement lets you compare the incoming rows with the existing dimension on the business (natural) key. When a match is found and attribute values have changed, the MERGE can update the current row by setting its end-date and insert a new version that gets a new surrogate key. When no match exists, the MERGE simply inserts a brand-new row with a new surrogate key. This guarantees that each historical version of the dimension member keeps a unique surrogate key and that the latest version is flagged as current-requirements for a type-2 slowly changing dimension.
Appending data without comparison or overwriting the table would either create duplicate keys or lose history. COPY INTO by itself does not handle updates, and relying on identity values generated in the source system would break surrogate-key independence.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a Delta Lake MERGE statement and how does it work?
Open an interactive chat with Bash
What is a type-2 slowly changing dimension?
Open an interactive chat with Bash
What is the difference between a surrogate key and a natural key?
Open an interactive chat with Bash
Microsoft Fabric Data Engineer Associate DP-700
Ingest and transform data
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .