DP-100 practice question 5 of 35

You have an Azure Machine Learning workspace. You plan to run a job to tram a model as an MLflow model output. You need to specify the output mode of the MLflow model. Which three modes can you specify? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

Full set: 506 questions

Domain Run experiments and train models

Answer options
A: rw_mount Correct answer
B: ro mount
C: upload Correct answer
D: download
E: direct Correct answer
Correct Answer:
A. rw_mount; C. upload; E. direct
Explanation

In Azure Machine Learning jobs, when defining an output (such as a trained MLflow model), the mode property specifies how the data is made available to the job on the compute target and written to the destination storage. The three valid modes for job outputs are: rwmount (Read-Write Mount): This mode mounts the specified storage location as a read-write directory on the compute target. The job can directly read from and write to the storage location during execution. upload: In this mode, the job writes its output to a temporary local directory on the compute target. After the job completes, the contents of this directory are uploaded to the specified destination storage. This is the default mode for outputs. direct: This mode is typically used in pipelines to pass metadata or simple data types between steps without writing to a storage account.

Why Incorrect

B. romount: This is a read-only mount mode. It is used for job inputs, not outputs, as outputs require write permissions.
D. download: This mode is used for job inputs. It downloads the data from the storage location to the compute target before the job starts.

References

1. Microsoft Official Documentation: Read and write data in a job. This document explicitly lists the data access modes for both inputs and outputs.

Section: "Output modes"

Content: "For job outputs

Azure Machine Learning supports three modes: rwmount

upload

direct."

2. Microsoft Official Documentation: YAML: command job. This reference for the command job YAML schema details the properties for job inputs and outputs.

Section: "Job outputs" -> "Table" -> "mode"

Content: The documentation specifies that the accepted values for the mode property of an output are upload

rwmount

and direct.

3. Microsoft Official Documentation: azure.ai.ml.Output Class Reference. The Python SDK v2 documentation for the Output class confirms the available modes.

Parameter: mode

Content: "Mode of the output. Can be romount

rwmount

download

upload

or direct. The default is upload for outputs." (Note: While the docstring lists all modes

romount and download are functionally for inputs

and the context of an output requires a writeable mode like rwmount or upload).

Scroll to Top