
Answer-first summary for fast verification
Answer: files= run.get_file_names()
The question asks for code to retrieve output file names from an Azure ML experiment run. The correct method is run.get_file_names(), which specifically returns a list of all files associated with the run, including output files. This is confirmed by the official Azure ML documentation and the strong community consensus (100% agreement in answers_community). Other options are incorrect: get_properties() returns run properties/metadata, get_details_with_logs() returns run details with logs, get_metrics() returns logged metrics, and get_details() returns basic run details - none of these directly provide file names.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You use the following code to run a script as an experiment in Azure Machine Learning:
run = exp.start_logging()
run.log('Test', 1)
run = exp.start_logging()
run.log('Test', 1)
You must identify the output files that are generated by the experiment run. You need to add code to retrieve the output file names. Which code segment should you add to the script?

A
files = run.get_properties()
B
files= run.get_file_names()
C
files = run.get_details_with_logs()
D
files = run.get_metrics()
E
files = run.get_details()