exam questions

Exam DP-203 All Questions

View all questions & answers for the DP-203 exam

Exam DP-203 topic 2 question 130 discussion

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

You are creating an Azure Data Factory pipeline.

You need to add an activity to the pipeline. The activity must execute a Transact-SQL stored procedure that has the following characteristics:

• Returns the number of sales invoices for a current date
• Does NOT require input parameters

Which type on activity should you use?

  • A. Stored Procedure
  • B. Get Metadata
  • C. Append Variable
  • D. Lookup
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
renan_ineu
8 months, 3 weeks ago
Selected Answer: D
"Lookup activity reads and returns the content of a configuration file or table. It also returns the result of executing a query or stored procedure" - https://learn.microsoft.com/en-us/azure/data-factory/control-flow-lookup-activity#:~:text=returns%20the%20result%20of%20executing%20a%20query%20or%20stored%20procedure "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#:~:text=stored%20procedure%20activity%2C-,use%20lookup%20acitivty,-and%20Script%20activity
upvoted 1 times
...
fahfouhi94
11 months, 1 week ago
Selected Answer: D
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.
upvoted 1 times
...
Alongi
12 months ago
Selected Answer: D
The Stored Procedure Activity does not allow to return an output, so Lookup is the correct one. Refer to: https://learn.microsoft.com/en-us/azure/data-factory/transform-data-using-stored-procedure
upvoted 2 times
...
JamieMcD
1 year ago
Selected Answer: D
Also ChatGPT: For your specific requirement: Retrieve the Number of Sales Invoices for the Current Date: If you simply need to call a stored procedure that returns the count and you want to use this count directly in your pipeline (e.g., for further processing or branching logic), the Lookup activity is preferable. If the stored procedure's primary purpose is to perform operations (e.g., insert/update/delete) and the output is not directly needed within the pipeline, the Stored Procedure activity is more appropriate. Given that your stored procedure returns the number of sales invoices and does not require input parameters, and assuming you want to use this count directly in the pipeline, the Lookup activity would be a good fit.
upvoted 1 times
...
tadenet
1 year ago
Selected Answer: A
Chatgpt: The Stored Procedure activity in Azure Data Factory is specifically designed to execute SQL stored procedures. It is the most suitable activity when you need to run a stored procedure and handle the results or output of that procedure. The other options do not fit the requirements: B. Get Metadata is used to retrieve metadata information from data stores, not to execute stored procedures. C. Append Variable is used to append a value to an existing variable, not for executing stored procedures. D. Lookup is used to retrieve a dataset from a data store but is not typically used to execute stored procedures that return a single value without parameters.
upvoted 1 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 ...