nerdexam
MicrosoftMicrosoft

DP-100 · Question #242

DP-100 Question #242: Real Exam Question with Answer & Explanation

The correct answer is D: run = script_experiment.submit(config=script_config). {"question_number": 4, "correct_answer": "D", "explanation": "Experiment.submit(config=script_config) is the correct method to start a new run using a ScriptRunConfig object. It submits the configured script to the specified compute target and returns a Run object for monitoring.

Explore data and run experiments

Question

You have the following code. The code prepares an experiment to run a script: The experiment must be run on local computer using the default environment. You need to add code to start the experiment and run the script. Which code segment should you use?

Options

  • Arun = script_experiment.start_logging()
  • Cws.get_run(run_id=experiment.id)
  • Drun = script_experiment.submit(config=script_config)

Explanation

{"question_number": 4, "correct_answer": "D", "explanation": "Experiment.submit(config=script_config) is the correct method to start a new run using a ScriptRunConfig object. It submits the configured script to the specified compute target and returns a Run object for monitoring. start_logging() begins an interactive, code-driven logging run where you manually call run.log()-it does not execute an external script. ws.get_run(run_id=...) retrieves an already-existing run by ID; it does not create or start a new one.", "generated_by": "claude-sonnet", "llm_judge_score": 4}

Topics

#Azure ML SDK#Experiments#ScriptRunConfig#Submitting Runs

Community Discussion

No community discussion yet for this question.

Full DP-100 PracticeBrowse All DP-100 Questions