Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft DP-100 Exam - Topic 4 Question 123 Discussion

Actual exam question for Microsoft's DP-100 exam
Question #: 123
Topic #: 4
[All DP-100 Questions]

You manage an Azure Machine Learning workspace. The Pylhon scrip! named scriptpy reads an argument named training_dat

a. The trainlng.data argument specifies the path to the training data in a file named datasetl.csv.

You plan to run the scriptpy Python script as a command job that trains a machine learning model.

You need to provide the command to pass the path for the datasct as a parameter value when you submit the script as a training job.

Solution: python script.py --training_data dataset1,csv

Does the solution meet the goal?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

0/2000 characters
Weldon
5 months ago
I thought you could use commas for multiple files, but I guess not!
upvoted 0 times
...
Theodora
5 months ago
Nope, that won't work. The path needs to be correct.
upvoted 0 times
...
Lyndia
5 months ago
Wait, is it really that simple? I thought it was more complicated.
upvoted 0 times
...
Rory
5 months ago
Totally agree, that comma will break the script!
upvoted 0 times
...
Oliva
6 months ago
The command has a typo, it should be dataset1.csv, not dataset1,csv.
upvoted 0 times
...
Lauran
6 months ago
I feel like I’ve seen something about this in our notes, but I’m uncertain if the command format is correct.
upvoted 0 times
...
Clarinda
6 months ago
This seems similar to a practice question we did, but I can't recall if the syntax for the parameter was exactly like this.
upvoted 0 times
...
Darrin
6 months ago
I think the solution is incorrect because the file extension should be .csv, not .csv with a comma.
upvoted 0 times
...
Avery
6 months ago
I remember that the argument should be passed correctly, but I’m not sure if the comma is right in the file name.
upvoted 0 times
...
Kaitlyn
6 months ago
Okay, let me think this through. The script expects the training data path as an argument, and the question says the file is named "dataset1.csv". So the correct solution should be: python script.py --training_data dataset1.csv
upvoted 0 times
...
Marla
6 months ago
Good catch, Sarah. I agree, the solution doesn't look quite right. The path should be specified with a period, not a comma.
upvoted 0 times
...
Stephaine
6 months ago
Hmm, I'm not sure about that. The question says the training data is in a file named "dataset1.csv", but the solution has "dataset1,csv". Shouldn't there be a period instead of a comma?
upvoted 0 times
...
Shasta
6 months ago
I think the solution looks good. The script expects the training data path as an argument, and the solution provides that path correctly.
upvoted 0 times
...
Ashlee
1 year ago
Wait, did they say 'Pylhon' script? I hope the model doesn't turn out to be a 'Monty Python' kind of thing!
upvoted 0 times
Wenona
12 months ago
B) No
upvoted 0 times
...
Margarita
1 year ago
Haha, that would be funny!
upvoted 0 times
...
Mari
1 year ago
A) Yes
upvoted 0 times
...
...
Augustine
1 year ago
I think the solution is incorrect because it should be dataset1.csv instead of dataset1,csv.
upvoted 0 times
...
Avery
1 year ago
I agree with Pedro, the solution meets the goal.
upvoted 0 times
...
Rana
1 year ago
The solution is on point, but I hope the script can handle spaces in the file name too. You never know what users might throw at you!
upvoted 0 times
Rhea
12 months ago
We should test the script with file names containing spaces to be sure.
upvoted 0 times
...
Theola
12 months ago
I agree, the script should be able to handle spaces in the file name.
upvoted 0 times
...
Edelmira
1 year ago
Yes, the solution meets the goal.
upvoted 0 times
...
...
Carmen
1 year ago
This solution looks good to me. Passing the file path as an argument is the way to go.
upvoted 0 times
...
Pedro
1 year ago
But the solution specifies the path to the training data correctly.
upvoted 0 times
...
Maurine
1 year ago
I'm not sure about the comma in the file name. Shouldn't it be 'dataset1.csv' instead of 'dataset1,csv'?
upvoted 0 times
Heike
1 year ago
The correct command should be python script.py --training_data dataset1.csv
upvoted 0 times
...
Kiley
1 year ago
I agree, the solution should be python script.py --training_data dataset1.csv
upvoted 0 times
...
Rebbeca
1 year ago
Yes, it should be 'dataset1.csv' with a period instead of a comma.
upvoted 0 times
...
...
Yvette
1 year ago
I disagree, the solution has a typo in the file name.
upvoted 0 times
...
Tamekia
1 year ago
The solution seems to be correct. The command passes the training data file path as a parameter to the script.
upvoted 0 times
Edelmira
1 year ago
Perfect! The command passes the path for the training data as a parameter value.
upvoted 0 times
...
Tequila
1 year ago
Yes
upvoted 0 times
...
Oretha
1 year ago
Great! The solution meets the goal.
upvoted 0 times
...
Lashon
1 year ago
A) Yes
upvoted 0 times
...
...
Pedro
1 year ago
I think the solution is correct.
upvoted 0 times
...

Save Cancel