Courseiva
Question 1,479 of 1,672
Machine Learning Implementation and OperationshardMultiple ChoiceObjective-mapped

MLS-C01 Practice Question: Machine Learning Implementation and Operations

A data scientist is training a model using Amazon SageMaker with a custom Docker container. The training job fails with an error: 'Resource exhausted: Out of memory'. The training data is stored in S3. What should the data scientist do to resolve this issue?

⚠ Common exam trap

Many exam-takers confuse memory (RAM) with storage (EBS volume) or data loading modes, mistakenly thinking that increasing disk space or changing data ingestion methods will fix an out-of-memory error, when the root cause is insufficient RAM on the compute instance.

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

Increase the instance memory by selecting a larger instance type.

The 'Resource exhausted: Out of memory' error indicates that the training instance's RAM is insufficient for the workload. Selecting a larger instance type with more memory directly addresses the OOM condition by providing additional physical RAM for model parameters, data batches, and intermediate computations. In SageMaker, instance types like ml.p3.2xlarge (61 GB RAM) vs. ml.p3.8xlarge (244 GB RAM) offer different memory capacities, and upgrading resolves memory exhaustion without altering the training logic.

Answer analysis

Option-by-option breakdown

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

  • Increase the instance memory by selecting a larger instance type.

    Why this is correct

    Larger instance provides more memory.

  • Increase the EBS volume size attached to the training instance.

    Why it's wrong here

    EBS size does not affect memory.

  • Use Pipe mode for data loading instead of File mode.

    Why it's wrong here

    Pipe mode reduces local storage, not memory.

  • Reduce the batch size in the training script.

    Why it's wrong here

    Reducing batch size may help but instance memory is the root cause.

Visual reference

Client Recursive Resolver Root DNS (13 root servers) TLD DNS (.com, .org, …) Authoritative example.com query IP addr answer

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

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jul 4, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This MLS-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 MLS-C01 exam.