ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 31 - DP-100 discussion

Report
Export

You have a Python script that executes a pipeline. The script includes the following code:

from azureml.core import Experiment pipeline_run = Experiment(ws, 'pipeline_test').submit(pipeline)

You want to test the pipeline before deploying the script.

You need to display the pipeline run details written to the STDOUT output when the pipeline completes.

Which code segment should you add to the test script?

A.
pipeline_run.get.metrics()
Answers
A.
pipeline_run.get.metrics()
B.
pipeline_run.wait_for_completion(show_output=True)
Answers
B.
pipeline_run.wait_for_completion(show_output=True)
C.
pipeline_param = PipelineParameter(name="stdout",default_value="console")
Answers
C.
pipeline_param = PipelineParameter(name="stdout",default_value="console")
D.
pipeline_run.get_status()
Answers
D.
pipeline_run.get_status()
Suggested answer: B

Explanation:

wait_for_completion: Wait for the completion of this run. Returns the status object after the wait.

Syntax: wait_for_completion(show_output=False, wait_post_processing=False, raise_on_error=True)

Parameter: show_output

Indicates whether to show the run output on sys.stdout.

asked 02/10/2024
hamza reza
49 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first