Question 944 of 1,755
Machine Learning Implementation and OperationsmediumMultiple ChoiceObjective-mapped

Quick Answer

The answer is to modify the evaluation script to process the test dataset in parallel batches using Python’s multiprocessing within the same container. This directly addresses the SageMaker pipeline evaluation step timeout by reducing wall-clock time through parallel computation, rather than arbitrarily increasing the 600-second timeout or changing the instance type. On the AWS Certified Machine Learning Specialty MLS-C01 exam, this scenario tests your understanding of optimizing custom SageMaker processing steps for scalability—a common trap is to assume you must increase the timeout or provision a larger instance, but the exam rewards solutions that minimize infrastructure changes by fixing the code logic. The key insight is that SageMaker containers support multiprocessing natively, so you can distribute the workload across available vCPUs without altering the pipeline architecture. Memory tip: think “parallel processing, not prolonged waiting”—if your data grows, make your code faster, not your clock longer.

MLS-C01 Practice Question: Machine Learning Implementation and Operations

This MLS-C01 practice question tests your understanding of machine learning implementation and operations. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A company runs a machine learning pipeline on Amazon SageMaker. The pipeline consists of three steps: data preprocessing (using a custom container), training (using a built-in algorithm), and model evaluation (using a custom container). The pipeline is orchestrated using AWS Step Functions. Recently, the pipeline has been failing intermittently at the model evaluation step with a 'TimeoutError'. The evaluation step runs a Python script that loads the trained model and a test dataset from S3, computes metrics, and writes results back to S3. The step is configured with a timeout of 600 seconds. The test dataset size has grown over time. The data science team suspects that the timeout is due to the increased data size. They want a solution that minimizes changes to the existing infrastructure and avoids increasing the timeout arbitrarily. Which approach should the team take?

Question 1mediummultiple choice
Study the full Python automation breakdown →

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

Modify the evaluation script to process the test dataset in parallel batches, and use multiprocessing to distribute the workload within the same container.

Option C is correct because it addresses the root cause—the evaluation script's inability to process the growing dataset within the 600-second timeout—by parallelizing the workload within the same container. This approach minimizes infrastructure changes (no instance type or timeout increase) and leverages Python's multiprocessing to reduce wall-clock time, directly tackling the 'TimeoutError' without arbitrary timeout extensions.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

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 timeout to 1200 seconds and use a larger instance type for the evaluation step.

    Why it's wrong here

    Increases cost and does not address root cause.

  • Increase the timeout to 1800 seconds to accommodate the larger dataset.

    Why it's wrong here

    Does not address root cause; may lead to future timeouts.

  • Modify the evaluation script to process the test dataset in parallel batches, and use multiprocessing to distribute the workload within the same container.

    Why this is correct

    Reduces wall-clock time without increasing timeout or instance size.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Switch the evaluation step to use the 'ml.m5.4xlarge' instance type for more memory and compute.

    Why it's wrong here

    Increases cost and may not reduce time enough if script is single-threaded.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often default to scaling up infrastructure (larger instances or higher timeouts) instead of optimizing the code, which is a classic 'throw hardware at the problem' misconception that the MLS-C01 exam tests by rewarding efficient, cost-conscious solutions.

Detailed technical explanation

How to think about this question

Under the hood, SageMaker processing jobs run in a single container by default, and the Python script executes sequentially. By using Python's multiprocessing (e.g., concurrent.futures.ProcessPoolExecutor), the team can split the test dataset into chunks, process them in parallel across multiple CPU cores, and aggregate results—effectively reducing the wall-clock time proportionally to the number of cores. This approach is ideal for embarrassingly parallel tasks like metric computation on independent data points, and it avoids the overhead of orchestrating multiple SageMaker steps or changing the pipeline architecture.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related MLS-C01 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free MLS-C01 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this MLS-C01 question test?

Machine Learning Implementation and Operations — This question tests Machine Learning Implementation and Operations — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Modify the evaluation script to process the test dataset in parallel batches, and use multiprocessing to distribute the workload within the same container. — Option C is correct because it addresses the root cause—the evaluation script's inability to process the growing dataset within the 600-second timeout—by parallelizing the workload within the same container. This approach minimizes infrastructure changes (no instance type or timeout increase) and leverages Python's multiprocessing to reduce wall-clock time, directly tackling the 'TimeoutError' without arbitrary timeout extensions.

What should I do if I get this MLS-C01 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

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

Keep practising

More MLS-C01 practice questions

Last reviewed: Jun 11, 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.