Accessing Folder Data Assets in Azure ML

AI-300 By islever Editorial Last updated

Create and manage assets in a Machine Learning workspace

Short answer

A Use mltable.load() to access the registered folder data asset and convert it to a Pandas DataFrame.

Question

You manage an Azure Machine Learning workspace. You have a folder that contains a CSV file. The folder is registered as a folder data asset.
You plan to use the folder data asset for data wrangling during interactive development.
You need to access and load the folder data asset into a Pandas data frame.
Which method should you use to achieve this goal?
  1. mltable.load() Correct Answer
  2. mltable.from_delimited_files()
  3. mltable.from_parquet_files()
  4. mltable.from_delta_lake()

Key Takeaways

Tests the distinction between creating a new MLTable definition from raw files versus loading an existing registered data asset using the standard load function.

This question addresses how to access a registered folder data asset containing CSV files for interactive development. The correct method is mltable.load() because it handles the URI of an already registered asset, unlike factory methods that create new definitions.

Common mistake: Candidates often choose B (mltable.from_delimited_files()) because the source contains CSVs. This is incorrect because factory methods are for creating new definitions from paths, not accessing registered assets.

Expert Analysis

Why the Answer Is Correct

The correct approach is A. When you have a registered data asset (identified by its URI or name), you use mltable.load to retrieve it. This function returns an MLTable object that represents the registered resource, which can then be converted to a Pandas DataFrame using .to_pandas_dataframe. This is the standard pattern for accessing assets in the workspace.

Why the Other Options Are Wrong

Options B, C, and D are factory methods used to create new MLTable definitions from specific file types (delimited, parquet, delta lake) at a given path. They are not designed to load an existing registered asset. Using them would require re-pointing to the underlying storage path rather than using the asset reference.

Community Comment Notes

Community consensus supports option A. One user noted that mltable.load("path/to/folder_asset") is the correct syntax for this scenario. Another user emphasized that factory methods like from_delimited_files are for creating definitions, not accessing registered assets.

Exam Strategy

Always distinguish between 'creating' a table definition and 'loading' an existing asset. If the question mentions a 'registered' asset, look for load() or direct asset references, not factory methods.

Frequently Asked Questions

Why not use mltable.from_delimited_files() for CSVs?

Factory methods create new definitions from paths. Since the asset is already registered, you must load the existing asset reference instead.

Can I use mltable.load() with any file type?

Yes, mltable.load() works with registered assets regardless of the underlying file format, as long as the asset is properly defined in the workspace.

More AI-300 FAQ →

Discussion 3 contributions

Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.

From public community threads 3

  1. guy3hil 👍 2 Answered A
    Correct answer A = mltable.load() -------------------------------------------------------------------------- import mltable tbl = mltable.load("path/to/folder_asset") df = tbl.to_pandas_dataframe() -------------------------------------------------------------------------------------- Why not the other options ?? B. mltable.from_delimited_files() → Used to create an MLTable definition from raw delimited files, not to load an already registered folder asset. C. mltable.from_parquet_files() → Same idea, but for Parquet files. Not applicable here since the asset is CSV. D. mltable.from_delta_lake() → Used for Delta Lake sources, not CSV.
  2. PurpleBlue 👍 1 Answered B
    mltable.from_delimited_files() is specifically designed to create an MLTable object from delimited text files (like CSVs) by pointing it at a path — in this case, your registered folder data asset. Once created, you can call .to_pandas_dataframe() on the resulting MLTable object to materialize it as a Pandas DataFrame for wrangling
  3. pandaji 👍 1 Answered A
    Why the other options are incorrect B. mltable.from_delimited_files() Used to create a new MLTable from CSV or other delimited files. Not used when you're accessing an already registered data asset. C. mltable.from_parquet_files() Used for Parquet files only. D. mltable.from_delta_lake() Used for Delta Lake datasets.

Reader comments & corrections

No reader corrections yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Submitted for moderation before publishing. Keep it helpful and respectful.

← Back to AI-300 Study Guide