DP-600 · Question #179
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…
The correct answer is C. Stored procedure. To execute a stored procedure in a Fabric warehouse from a Data Factory pipeline and make its returned values available to subsequent activities, the dedicated Stored Procedure activity is the correct choice.
Question
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?
Options
- AAppend variable
- BScript
- CStored procedure
- DGet metadata
How the community answered
(30 responses)- A3% (1)
- B3% (1)
- C87% (26)
- D7% (2)
Why each option
To execute a stored procedure in a Fabric warehouse from a Data Factory pipeline and make its returned values available to subsequent activities, the dedicated Stored Procedure activity is the correct choice.
The Append variable activity is used to add a value to an existing array variable within the pipeline's scope and cannot execute an external stored procedure in a warehouse.
While a Script activity can execute arbitrary T-SQL commands, the Stored Procedure activity is a more specialized and robust choice for executing a named stored procedure and managing its outputs for downstream consumption.
The Stored Procedure activity in a Fabric Data Factory pipeline is specifically designed to execute a stored procedure in a data store like a warehouse and can capture its output parameters or the first row of its result set, making these values accessible to downstream activities.
The Get metadata activity retrieves metadata about data objects, such as file sizes or folder structures, and is not used for executing stored procedures or obtaining their execution results.
Concept tested: Fabric Data Factory Stored Procedure activity
Source: https://learn.microsoft.com/en-us/fabric/data-factory/stored-procedure-activity
Topics
Community Discussion
No community discussion yet for this question.