VideoAI stores 40 TB of raw video frames in S3 and trains on GPU instances that have only 1 TB of instance storage. Their training loop reads the dataset sequentially for several epochs and can stream records from stdin-compatible interfaces. Which SageMaker input mode should they choose and why?
Choose an answer
Tap an option to check your answer.
Correct answer: Choose Pipe mode (InputMode='Pipe') so the training container can stream data directly from S3 without staging the entire dataset to local disk. Pipe mode is preferred when dataset size exceeds instance storage and the algorithm supports sequential streaming..
Why this is the answer
Pipe mode (InputMode='Pipe') is the correct choice because it allows the training container to stream data directly from S3. This is crucial when the dataset (40 TB) is significantly larger than the instance storage (1 TB), preventing out-of-disk errors. Since the training loop reads data sequentially and the algorithm supports streaming, Pipe mode efficiently delivers data without needing to download the entire dataset upfront. File mode (InputMode='File') is incorrect because it downloads the entire dataset to the instance storage before training, which would fail given the size mismatch. SageMaker does not automatically extend instance disk for File mode to accommodate datasets larger than the instance store. Setting EBSVolumeSize to 50 TB with Pipe mode is unnecessary and inefficient; Pipe mode's benefit is streaming, not persistent storage on the instance for the entire dataset. Mounting S3 as a POSIX filesystem is not a standard SageMaker input mode and would still involve data transfer overhead, potentially impacting performance.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed