DP-203 · Question #377
You are building a data flow in Azure Data Factory that upserts data into a table in an Azure Synapse Analytics dedicated SQL pool. You need to add a transformation to the data flow. The…
The correct answer is B. alter row. The Alter Row transformation in Azure Data Factory data flows allows you to define row-level modification policies (insert, update, upsert, delete) that control exactly how each row is written to the sink.
Question
You are building a data flow in Azure Data Factory that upserts data into a table in an Azure Synapse Analytics dedicated SQL pool. You need to add a transformation to the data flow. The transformation must specify logic indicating when a row from the input data must be upserted into the sink. Which type of transformation should you add to the data flow?
Options
- Ajoin
- Balter row
- Csurrogate key
- Dselect
How the community answered
(39 responses)- A13% (5)
- B79% (31)
- C3% (1)
- D5% (2)
Why each option
The Alter Row transformation in Azure Data Factory data flows allows you to define row-level modification policies (insert, update, upsert, delete) that control exactly how each row is written to the sink.
The Join transformation merges two data streams based on a matching key condition but has no capability to define row-level write policies such as upsert for the sink.
The Alter Row transformation is specifically designed to apply conditional row policies on incoming data. It lets you define expressions that mark each row as insert, update, upsert, or delete before it reaches the sink, which is precisely the mechanism needed to control upsert behavior when writing to an Azure Synapse Analytics dedicated SQL pool.
The Surrogate Key transformation generates and appends an auto-incrementing integer column to the stream; it does not influence how rows are inserted or updated in the destination.
The Select transformation is used to project, rename, or drop columns from the data stream and plays no role in specifying upsert or other row modification logic.
Concept tested: Alter Row transformation for sink row policies in ADF data flows
Source: https://learn.microsoft.com/en-us/azure/data-factory/data-flow-alter-row
Topics
Community Discussion
No community discussion yet for this question.