Courseiva
ML Model Development →hardMultiple Choice

MLA-C01 ML Model Development Practice Question

A company is training a deep learning model with SageMaker and wants to reduce training time by using pipe mode instead of file mode for a large dataset stored as TFRecord files in Amazon S3. After switching the estimator's input mode to Pipe, the training job fails immediately with a dataset format error. The data scientist confirms the files are valid TFRecords and that the same script works with File mode. What is the most likely cause?

⚠ Common exam trap

The trap here is assuming Pipe mode is a drop-in replacement for File mode, when scripts must be adapted to read from a stream instead of a directory.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

The training script is still trying to read files from the local filesystem path instead of consuming the named pipe provided by SageMaker.

Pipe mode exposes training data as a named pipe rather than as files on disk. A script written for File mode typically lists files and opens them by path, which fails when SM_CHANNEL_TRAIN points to a FIFO. To use Pipe mode, the script must consume the stream sequentially, for example with a framework reader designed for pipes. Format conversion and Region settings are unrelated to this error.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    The S3 bucket and the training job are in different AWS Regions, so Pipe mode cannot stream the objects across Regions.

    Why it's wrong here

    Cross-Region S3 access can add latency and data transfer cost, but SageMaker training jobs can read from S3 buckets in other Regions when permissions allow. Pipe mode streams data the same way regardless of Region. A cross-Region configuration would not produce an immediate dataset format error, so this does not explain the failure.

  • ✗

    Pipe mode only supports RecordIO-encoded data for built-in algorithms, so TFRecord files must be converted to RecordIO before use.

    Why it's wrong here

    Pipe mode supports more than RecordIO; framework containers can read raw files through the pipe stream. The restriction described applies to some built-in algorithms that require RecordIO-WebDataset or RecordIO protobuf, not to custom framework training scripts. Converting to RecordIO would change the data format unnecessarily and is not the root cause here.

  • ✗

    The estimator is missing the enable_network_isolation parameter, which is required for Pipe mode to establish the streaming connection to S3.

    Why it's wrong here

    Network isolation is a security setting that blocks outbound network access from the training container. It is not required for Pipe mode; in fact, enabling it can interfere with S3 access unless data is provided through a channel that does not need network. The absence of this parameter would not cause a dataset format error.

  • ✓

    The training script is still trying to read files from the local filesystem path instead of consuming the named pipe provided by SageMaker.

    Why this is correct

    In Pipe mode, SageMaker streams channel data through a named pipe (FIFO) whose path is given by SM_CHANNEL_TRAIN, not as ordinary files. A script that calls standard file listing or opens a directory will fail because the pipe looks like a single stream. The script must read from the pipe sequentially, which explains why File mode worked and Pipe mode does not.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

One of 665 original MLA-C01 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Amazon Web Services exam blueprint

This MLA-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the MLA-C01 exam.