exam questions

Exam DP-201 All Questions

View all questions & answers for the DP-201 exam

Exam DP-201 topic 2 question 20 discussion

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

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have an Azure Data Lake Storage account that contains a staging zone.
You need to design a daily process to ingest incremental data from the staging zone, transform the data by executing an R script, and then insert the transformed data into a data warehouse in Azure Synapse Analytics.
Solution: You use an Azure Data Factory schedule trigger to execute a pipeline that copies the data to a staging table in the data warehouse, and then uses a stored procedure to execute the R script.
Does this meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
If you need to transform data in a way that is not supported by Data Factory, you can create a custom activity with your own data processing logic and use the activity in the pipeline. You can create a custom activity to run R scripts on your HDInsight cluster with R installed.
Reference:
https://docs.microsoft.com/en-US/azure/data-factory/transform-data

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
Nieswurz
Highly Voted 4 years, 9 months ago
The proposed solution seems to let the R function do the loading into Synapse. The answer then should be 'no', but more likely the description seems again to be incomplete.
upvoted 16 times
Pairon
4 years, 2 months ago
I agree with you. The insert operation into the DWH should be come after the R script process.
upvoted 2 times
...
cadio30
4 years ago
Agree with the statement and as of this year, the Azure Synapse doesn't support R language unless it is executed against Azure SQL Manage Instance
upvoted 5 times
...
...
azurrematt123
Most Recent 3 years, 11 months ago
Looks like executing R is possible(sp_execute_external_script), please review the link. https://docs.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/sp-execute-external-script-transact-sql?view=sql-server-ver15
upvoted 2 times
azurrematt123
3 years, 11 months ago
My bad it only applies to SQL Server 2016 & Azure SQL Managed Instance, Moderator please dont post this.
upvoted 1 times
tes
3 years, 11 months ago
there is no moderator human
upvoted 1 times
...
...
...
dbdev
4 years, 1 month ago
https://www.mssqltips.com/sqlservertip/6622/stored-procedure-in-sql-server-with-r-code/ The R function can be used inside stored procedure activity, so answer makes sense to me.
upvoted 1 times
dbdev
4 years ago
https://docs.microsoft.com/en-US/azure/data-factory/transform-data#custom-activity
upvoted 1 times
...
KRV
4 years ago
yes R function can be used within the Stored procedure for SQL Server or Azure SQL Managed instance , however the statement states that the data is loaded using SQL Synapse which does not support R at this time
upvoted 1 times
...
...
I
4 years, 2 months ago
The answer should be No. Because MS always supply options for users so it won't engage in one specific programming language such as R.
upvoted 1 times
...
Madhumita88
4 years, 2 months ago
I am also not cleared with this answer
upvoted 1 times
...
S3
4 years, 4 months ago
I am still not clear as to what is the correct answer
upvoted 1 times
...
syu31svc
4 years, 6 months ago
Solution proposed is on data pipeline and orchestration so I would say yes
upvoted 1 times
...
AJMorgan591
4 years, 8 months ago
Should use a tumbling window trigger in ADF for incremental loading. https://docs.microsoft.com/en-us/azure/data-factory/solution-template-copy-new-files-lastmodifieddate
upvoted 2 times
sandGrain
4 years, 7 months ago
You can do incremental load using schedule trigger. Does not have to be Tumbling window
upvoted 1 times
...
...
Bob123456
4 years, 9 months ago
can we run a stored procedure to execute the R script ?? I don't think so.
upvoted 2 times
VMLearn
4 years, 5 months ago
possible
upvoted 1 times
...
Bob123456
4 years, 9 months ago
https://docs.microsoft.com/en-us/sql/machine-learning/tutorials/quickstart-r-create-script?view=sql-server-ver15 i believe this answers the question . Answer should be 'yes'
upvoted 6 times
pablocg
4 years, 7 months ago
That is for sql server and managed instances and the question is about Azure Synapse Analytics
upvoted 4 times
...
...
...
Nieswurz
4 years, 9 months ago
The explanation of the answer contains R on an HDInsight-Cluster. This kind of solution is stated to be incorrect in another questions explanation - in favor of an Azure function.
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 ...