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

Quick Answer

The answer is loading the model from S3 on every invocation, which causes the Lambda function to time out. This is because the default code pattern places the model download and deserialization inside the handler function, meaning each cold start and every subsequent invocation must fetch the 150 MB pickle file over the network, deserialize the RandomForestClassifier, and then run inference—all within the 30-second limit. On the AWS Certified Machine Learning Specialty MLS-C01 exam, this scenario tests your understanding of Lambda execution context reuse and the critical distinction between code run inside versus outside the handler. The common trap is assuming that higher memory allocation alone solves latency, when the real bottleneck is the repeated S3 download. Remember the memory tip: “Load once outside, infer many inside”—keep your model in global scope to avoid re-downloading on every request.

MLS-C01 Practice Question: Machine Learning Implementation and Operations

This MLS-C01 practice question tests your understanding of machine learning implementation and operations. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. 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 machine learning engineer is deploying a model using AWS Lambda for real-time inference. The model is a scikit-learn RandomForestClassifier with 100 trees, serialized as a pickle file of 150 MB. The Lambda function has 3 GB memory allocated. However, the inference requests are timing out after 30 seconds. What is the most likely cause?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "most likely"

    Why it matters: Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.

Question 1mediummultiple choice
Full question →

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 model is loaded from S3 on every invocation, causing high latency.

Option C is correct because the default behavior of loading a model from S3 on every Lambda invocation introduces significant latency. Each invocation must download the 150 MB pickle file from S3 over the network, deserialize it, and then run inference, which easily exceeds the 30-second timeout. The model should be loaded once outside the handler (in global scope) and reused across invocations to avoid this overhead.

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.

  • scikit-learn is not compatible with AWS Lambda.

    Why it's wrong here

    scikit-learn is compatible if included in the deployment package or layer.

  • The Lambda function does not have enough memory to load the model.

    Why it's wrong here

    3 GB is more than enough for 150 MB model.

  • The model is loaded from S3 on every invocation, causing high latency.

    Why this is correct

    Lambda should load the model outside the handler to reuse across invocations, but even then, cold starts with a large model are slow.

    Clue confirmation

    The clue word "most likely" in the question point toward this answer.

    Related concept

    Read the scenario before looking for a memorised answer.

  • The Lambda function timeout is set too low; increase it to 5 minutes.

    Why it's wrong here

    Increasing timeout may help, but loading a 150 MB model each time is the root cause.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Cisco often tests the misconception that Lambda timeouts are always the root cause of slow inference, when in fact the real issue is inefficient resource initialization (like loading large models from S3 on every call) that can be fixed by architectural changes rather than simply increasing the timeout.

Detailed technical explanation

How to think about this question

When a Lambda function loads a model from S3 inside the handler, each cold start and subsequent invocation incurs the full download time (typically 1-2 seconds per 100 MB over standard internet, plus S3 request overhead). For a 150 MB pickle, this can take 2-3 seconds just for download, plus deserialization time, pushing total inference time beyond 30 seconds under concurrent load. Best practice is to load the model in global scope (outside the handler) so it persists across warm invocations, reducing latency to sub-second inference.

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: The model is loaded from S3 on every invocation, causing high latency. — Option C is correct because the default behavior of loading a model from S3 on every Lambda invocation introduces significant latency. Each invocation must download the 150 MB pickle file from S3 over the network, deserialize it, and then run inference, which easily exceeds the 30-second timeout. The model should be loaded once outside the handler (in global scope) and reused across invocations to avoid this overhead.

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.

Are there clue words in this question I should notice?

Yes — watch for: "most likely". Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.

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

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.