Designing and Implementing a Data Science Solution on Azure — Question 169

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 manage an Azure Machine Learning workspace. The Python script named script.py reads an argument named training_data. The training_data argument specifies the path to the training data in a file named dataset1.csv.

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

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

Solution: python script.py --training_data ${{inputs.training_data}}

Does the solution meet the goal?

Answer options

Correct answer: A

Explanation

The proposed command correctly uses the syntax for passing parameters to a Python script in Azure Machine Learning, where '${{inputs.training_data}}' will dynamically resolve to the appropriate file path for the training data. Therefore, the solution meets the goal. Option B is incorrect as it fails to recognize the validity of the command structure used in the solution.