Courseiva
Machine Learning Implementation and OperationshardMultiple ChoiceObjective-mapped

MLS-C01 Practice Question: Machine Learning Implementation and Operations

A company is using SageMaker to host a model for real-time inference. They notice that the endpoint's latency increases over time. The model is stateless and the inference code does not log any errors. What is the MOST likely cause?

⚠ Common exam trap

Watch out — candidates often confuse a 'stateless model' with 'no memory issues' — but a stateless model means no state between requests, not that the container's memory usage is stable; a memory leak in the inference code or framework can still cause latency degradation over time.

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

Memory leak in the inference container

A memory leak in the inference container causes the process's resident memory to grow over time as allocated memory is not freed. Since the model is stateless and no errors are logged, the leak is likely in the inference code or a dependency (e.g., a TensorFlow session or a Python list that grows unbounded). As memory pressure increases, the operating system may swap or the container may be OOM-killed, leading to increased garbage collection pauses and higher latency for each request.

Answer analysis

Option-by-option breakdown

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

  • Memory leak in the inference container

    Why this is correct

    Memory leaks cause slowdown over time.

  • Gradual increase in request payload size

    Why it's wrong here

    Request size varies; not necessarily gradual.

  • Endpoint auto scaling is adding new instances

    Why it's wrong here

    Auto scaling would reduce latency, not increase.

  • Model is accumulating state from previous requests

    Why it's wrong here

    Model is stateless.

About these practice questions

This MLS-C01 question is part of Courseiva's 1,672-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

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.