Designing and Implementing a Data Science Solution on Azure — Question 62
You are developing a two-step Azure Machine Learning pipeline by using the Azure Machine Learning SDK for Python.
You need to register the output of the pipeline as a new version of a named dataset after the run has been completed.
What should you implement?
Answer options
- A. the as_input method of the OutputDatasetConfig class
- B. the register_on_complete method of the OutputDatasetConfig class
- C. the as_mount method of the DatasetConsumptionConfig class
- D. the as_download method of the DatasetConsumptionConfig class
Correct answer: B
Explanation
The correct answer is B because the register_on_complete method of the OutputDatasetConfig class is specifically designed to register outputs as new versions of datasets after a pipeline run is completed. Options A, C, and D are not suitable for this purpose, as they pertain to input configurations and data consumption methods rather than registering outputs.