Courseiva
Question 1,444 of 1,672
Machine Learning Implementation and OperationseasyMultiple ChoiceObjective-mapped

MLS-C01 Practice Question: Machine Learning Implementation and Operations

Exhibit

Refer to the exhibit.

resource "aws_sagemaker_notebook_instance" "ml_notebook" {
  name          = "my-notebook"
  role_arn      = "arn:aws:iam::123456789012:role/sagemaker-role"
  instance_type = "ml.t2.medium"
  direct_internet_access = "Enabled"
}

A DevOps engineer created a SageMaker notebook instance using the Terraform configuration shown. The notebook instance is in a VPC with a public subnet. However, the notebook instance cannot access the internet. What is the most likely cause?

⚠ Common exam trap

Candidates often confuse `direct_internet_access` with the actual network routing requirement, assuming the parameter alone controls internet access, when in reality it only controls whether the notebook uses a public or private subnet, and the subnet must still have proper routing to the internet gateway.

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 subnet does not have a route to an internet gateway.

A SageMaker notebook instance in a VPC with a public subnet requires a route to an internet gateway (IGW) in the subnet's route table to access the internet. Without that route, traffic from the notebook cannot reach the internet, even if `direct_internet_access` is enabled. The Terraform configuration likely omitted the route to the IGW, causing the connectivity failure.

Answer analysis

Option-by-option breakdown

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

  • The role_arn is incorrect or missing permissions.

    Why it's wrong here

    The role is for SageMaker actions, not for network connectivity.

  • The instance type ml.t2.medium does not support internet access.

    Why it's wrong here

    All instance types support internet access if the network configuration allows.

  • The subnet does not have a route to an internet gateway.

    Why this is correct

    Without a route to an internet gateway, the notebook cannot access the internet despite the setting.

  • The direct_internet_access parameter is set to 'Enabled' but should be 'Disabled'.

    Why it's wrong here

    'Enabled' is correct for internet access; 'Disabled' would prevent it.

Visual reference

192.168.1.0 /24 256 addresses (254 usable) 192.168.1.0 /25 Subnet A 128 addr (126 usable) 192.168.1.128 /25 Subnet B 128 addr (126 usable) Borrowing 1 bit from host portion creates 2 subnets (/25)

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.