exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 3 question 22 discussion

Actual exam question from Microsoft's DP-100
Question #: 22
Topic #: 3
[All DP-100 Questions]

You write a Python script that processes data in a comma-separated values (CSV) file.
You plan to run this script as an Azure Machine Learning experiment.
The script loads the data and determines the number of rows it contains using the following code:

You need to record the row count as a metric named row_count that can be returned using the get_metrics method of the Run object after the experiment run completes.
Which code should you use?

  • A. run.upload_file(T3 row_count', './data.csv')
  • B. run.log('row_count', rows)
  • C. run.tag('row_count', rows)
  • D. run.log_table('row_count', rows)
  • E. run.log_row('row_count', rows)
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
[Removed]
Highly Voted 2 years, 8 months ago
On 20Feb2022
upvoted 7 times
...
ahson0124
Highly Voted 1 year, 8 months ago
In exam on 2023-02-15
upvoted 6 times
...
evangelist
Most Recent 5 months ago
run.log('row_count', rows)
upvoted 1 times
...
orionduo
1 year, 2 months ago
correct. Log a numerical or string value to the run with the given name using log. Logging a metric to a run causes that metric to be stored in the run record in the experiment. You can log the same metric multiple times within a run, the result being considered a vector of that metric.
upvoted 1 times
...
RamundiGR
1 year, 9 months ago
correct
upvoted 1 times
...
Edriv
1 year, 9 months ago
https://learn.microsoft.com/en-us/python/api/azureml-core/azureml.core.run(class)?view=azure-ml-py#remarks
upvoted 1 times
...
therealola
2 years, 4 months ago
on exam 18-06-22
upvoted 4 times
...
racnaoamo
2 years, 5 months ago
on exam 18-5-22
upvoted 3 times
...
JTWang
2 years, 6 months ago
on exam 04/22/2022
upvoted 4 times
...
synapse
2 years, 7 months ago
Selected Answer: B
correct
upvoted 3 times
...
TheYazan
2 years, 8 months ago
Correct
upvoted 1 times
...
ranjsi01
2 years, 9 months ago
correct
upvoted 1 times
...
kisskeo
3 years, 1 month ago
On Exam 01 Oct 2021
upvoted 2 times
...
snsnsnsn
3 years, 2 months ago
on 2/9/21
upvoted 2 times
...
datamijn
3 years, 3 months ago
on 2/8/2021
upvoted 3 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