Question 1,444 of 1,672
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
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 →
Last reviewed: Jun 11, 2026
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.
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.
Sign in to join the discussion.