New Year Sale 2026! 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
3 months ago
I thought you could use commas for multiple files, but I guess not!
upvoted 0 times
...
Theodora
3 months ago
Nope, that won't work. The path needs to be correct.
upvoted 0 times
...
Lyndia
3 months ago
Wait, is it really that simple? I thought it was more complicated.
upvoted 0 times
...
Rory
4 months ago
Totally agree, that comma will break the script!
upvoted 0 times
...
Oliva
4 months ago
The command has a typo, it should be dataset1.csv, not dataset1,csv.
upvoted 0 times
...
Lauran
4 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
4 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
5 months ago
I think the solution is incorrect because the file extension should be .csv, not .csv with a comma.
upvoted 0 times
...
Avery
5 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
5 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
5 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
5 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
5 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
11 months 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
10 months ago
B) No
upvoted 0 times
...
Margarita
10 months ago
Haha, that would be funny!
upvoted 0 times
...
Mari
10 months ago
A) Yes
upvoted 0 times
...
...
Augustine
11 months ago
I think the solution is incorrect because it should be dataset1.csv instead of dataset1,csv.
upvoted 0 times
...
Avery
11 months ago
I agree with Pedro, the solution meets the goal.
upvoted 0 times
...
Rana
11 months 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
10 months ago
We should test the script with file names containing spaces to be sure.
upvoted 0 times
...
Theola
10 months ago
I agree, the script should be able to handle spaces in the file name.
upvoted 0 times
...
Edelmira
11 months ago
Yes, the solution meets the goal.
upvoted 0 times
...
...
Carmen
11 months ago
This solution looks good to me. Passing the file path as an argument is the way to go.
upvoted 0 times
...
Pedro
12 months ago
But the solution specifies the path to the training data correctly.
upvoted 0 times
...
Maurine
12 months 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
11 months ago
The correct command should be python script.py --training_data dataset1.csv
upvoted 0 times
...
Kiley
11 months ago
I agree, the solution should be python script.py --training_data dataset1.csv
upvoted 0 times
...
Rebbeca
11 months ago
Yes, it should be 'dataset1.csv' with a period instead of a comma.
upvoted 0 times
...
...
Yvette
12 months ago
I disagree, the solution has a typo in the file name.
upvoted 0 times
...
Tamekia
12 months 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
11 months ago
Perfect! The command passes the path for the training data as a parameter value.
upvoted 0 times
...
Tequila
11 months ago
Yes
upvoted 0 times
...
Oretha
11 months ago
Great! The solution meets the goal.
upvoted 0 times
...
Lashon
11 months ago
A) Yes
upvoted 0 times
...
...
Pedro
12 months ago
I think the solution is correct.
upvoted 0 times
...

Save Cancel