A colleague registered a component named prep_data in your Azure Machine Learning workspace and registers a new version of it every few weeks. You are building a pipeline in a notebook where ml_client is already connected to the same workspace.
Requirements:
- You do not have the component's YAML file or script on your machine.
- The pipeline must use the newest registered version of
prep_datawithout editing your code each time a new version is registered. - You must not register any new component versions in the workspace.
Which code should you use to obtain the component for your pipeline?
Choose one answer.
prep = ml_client.components.get(name="prep_data", version="1")prep = ml_client.components.get(name="prep_data")prep = load_component(source="./prep.yml")prep = ml_client.components.create_or_update(prep_data)