exam questions

Exam DP-203 All Questions

View all questions & answers for the DP-203 exam

Exam DP-203 topic 2 question 112 discussion

Actual exam question from Microsoft's DP-203
Question #: 112
Topic #: 2
[All DP-203 Questions]

You have an Azure Synapse Analytics dedicated SQL pool.

You need to create a pipeline that will execute a stored procedure in the dedicated SQL pool and use the returned result set as the input for a downstream activity. The solution must minimize development effort.

Which type of activity should you use in the pipeline?

  • A. U-SQL
  • B. Stored Procedure
  • C. Script
  • D. Notebook
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ludaka
Highly Voted 1 year, 10 months ago
Selected Answer: C
For me the correct answer is C. The store procedure activity doesn't return any data. In the description of the script activity is written that it can be used for : "Run stored procedures. If the SQL statement invokes a stored procedure that returns results from a temporary table, use the WITH RESULT SETS option to define metadata for the result set. " https://learn.microsoft.com/en-us/azure/data-factory/transform-data-using-script
upvoted 14 times
andjurovicela
1 year, 10 months ago
I also think this one is correct. One of the things script activity can do is "...Save the rowset returned from a query as activity output for downstream consumption." which is pretty much what is needed here. This is not viable with 'execute SP' activity as it doesn't cannot return any data.
upvoted 2 times
...
...
auwia
Highly Voted 1 year, 9 months ago
Selected Answer: C
https://learn.microsoft.com/en-us/azure/data-factory/transform-data-using-script The script may contain either a single SQL statement or multiple SQL statements that run sequentially. You can use the Script task for the following purposes: Truncate a table in preparation for inserting data. Create, alter, and drop database objects such as tables and views. Re-create fact and dimension tables before loading data into them. Run stored procedures. If the SQL statement invokes a stored procedure that returns results from a temporary table, use the WITH RESULT SETS option to define metadata for the result set. Save the rowset returned from a query as activity output for downstream consumption.
upvoted 7 times
...
seranvijay
Most Recent 5 months, 1 week ago
Selected Answer: C
When the stored procedure has Output parameters, instead of using stored procedure activity, use lookup acitivty and Script activity. Stored procedure activity does not support calling SPs with Output parameter yet. https://learn.microsoft.com/en-us/azure/data-factory/transform-data-using-stored-procedure
upvoted 2 times
...
RG_123
8 months, 3 weeks ago
I will go with Stored Procedure.. The requirement is - The solution must minimize development effort. If we go with Script, we will have to write a script which involve development efforts.
upvoted 2 times
...
Danweo
9 months ago
Selected Answer: C
"When the stored procedure has Output parameters, instead of using stored procedure activity, use lookup acitivty and Script activity. Stored procedure activity does not support calling SPs with Output parameter yet. " https://learn.microsoft.com/en-us/azure/data-factory/transform-data-using-stored-procedure
upvoted 2 times
...
evangelist
9 months, 1 week ago
Selected Answer: B
C is wrong
upvoted 4 times
...
MT007
10 months, 1 week ago
Answer is script 100%
upvoted 1 times
...
Elanche
1 year ago
B. Stored Procedure Explanation: To execute a stored procedure in an Azure Synapse Analytics dedicated SQL pool and use the returned result set as input for a downstream activity, you should use the Stored Procedure activity in the pipeline. The Stored Procedure activity allows you to execute a stored procedure within the dedicated SQL pool and retrieve the results, which can then be used as input for subsequent activities in the pipeline. This approach minimizes development effort as it directly integrates with the SQL pool and provides a seamless way to execute stored procedures as part of your data processing
upvoted 4 times
...
j888
1 year, 2 months ago
Got the feeling the question itself is referring to this GUI: ttps://stackoverflow.com/questions/72642013/pipeline-for-stored-procedure-dedicated-sql-pool So the answer may be A as store procedure
upvoted 2 times
...
be8a152
1 year, 2 months ago
Ans is C. Script
upvoted 1 times
...
dakku987
1 year, 3 months ago
I got this question today in exam 11-jan-2024
upvoted 1 times
Delphin_8150
1 year, 1 month ago
What did you put for your answer?
upvoted 1 times
...
...
jongert
1 year, 3 months ago
Selected Answer: C
The key is 'Output Result set support' which the stored procedure activity does not have. Therefore we have to use a script which supports running stored procedures. https://techcommunity.microsoft.com/t5/azure-data-factory-blog/execute-sql-statements-using-the-new-script-activity-in-azure/ba-p/3239969
upvoted 1 times
...
kkk5566
1 year, 7 months ago
Selected Answer: C
C is corret
upvoted 1 times
...
CoinUmbrella
1 year, 9 months ago
Selected Answer: B
B. Chat GPT says the given answer is correct. Stored Procedure is specifically designed to execute stored procedures within Azure Synapse Analytics and is the most suitable option for the scenario, minimizing development effort.
upvoted 2 times
...
auwia
1 year, 9 months ago
Selected Answer: B
The "Script" activity in Azure Data Factory is primarily used to run HDInsight scripts such as Hive, Pig, MapReduce, and Spark. These are typically used for big data processing tasks.
upvoted 1 times
auwia
1 year, 9 months ago
False, finally I've found the link, it's C: https://learn.microsoft.com/en-us/azure/data-factory/transform-data-using-script
upvoted 5 times
...
...
vctrhugo
1 year, 10 months ago
Selected Answer: B
"In Azure Synapse Analytics, you can use the SQL pool Stored Procedure Activity to invoke a stored procedure in a dedicated SQL pool." https://learn.microsoft.com/en-us/azure/synapse-analytics/data-integration/sql-pool-stored-procedure-activity
upvoted 2 times
...
[Removed]
1 year, 10 months ago
Selected Answer: B
https://learn.microsoft.com/en-us/azure/synapse-analytics/data-integration/sql-pool-stored-procedure-activity
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago