The invocation is allowed because the source IP 52.1.1.1 falls outside the denied private IP ranges. This outcome hinges on how IAM policy evaluation works: an explicit Deny always overrides any Allow, but only when the Deny’s condition is met. Here, the Deny statement restricts InvokeEndpoint only for source IPs within 10.0.0.0/8, 172.16.0.0/12, or 192.168.0.0/16, and since 52.1.1.1 is a public IP, the condition does not match—so the Deny is never applied, leaving the Allow to grant access. On the AWS Certified Machine Learning Specialty MLS-C01 exam, this tests your understanding of IAM policy evaluation logic, especially the interplay between Allow, Deny, and conditional blocks. A common trap is assuming any Deny automatically blocks all requests; instead, remember that a Deny only takes effect if its condition evaluates to true. Memory tip: “Deny is a bouncer—it only stops you if you match the guest list.”
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.
Refer to the exhibit. An ML engineer attaches this IAM policy to a user. The user wants to invoke the SageMaker endpoint my-endpoint from an EC2 instance with public IP 52.1.1.1. What will happen?
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The invocation is allowed because the source IP is not in the denied ranges.
The policy has an Allow for InvokeEndpoint on the specific endpoint, but also a Deny with a condition that denies InvokeEndpoint if the source IP is within private IP ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16). The user's IP is 52.1.1.1, which is a public IP, not in the deny condition. Therefore, the Allow takes effect, and the invocation is permitted. Note: Deny always overrides Allow, but the condition does not match, so Deny is not applied.
Key principle: ACLs process entries top to bottom and stop at the first match. Entry order and interface direction matter as much as the permit or deny statement.
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 invocation fails because the user does not have permission to create an endpoint.
Why it's wrong here
The user is invoking, not creating; the Allow explicitly permits InvokeEndpoint.
✗
The invocation is denied because the Deny statement applies to all resources.
Why it's wrong here
The Deny has a condition that is not satisfied, so it does not apply.
✓
The invocation is allowed because the source IP is not in the denied ranges.
Why this is correct
The Deny condition does not match the public IP, so Allow prevails.
Related concept
Standard ACLs match source addresses.
✗
The invocation is denied because the user is not in a VPC.
Why it's wrong here
The policy does not require being in a VPC; the condition is about source IP.
Common exam traps
Common exam trap: ACLs stop at the first match
ACLs are processed top to bottom. The first matching entry wins, and an implicit deny usually exists at the end.
Detailed technical explanation
How to think about this question
ACL questions test precision: source, destination, protocol, port and direction. A generally correct ACL can still fail if it is applied on the wrong interface or in the wrong direction.
KKey Concepts to Remember
Standard ACLs match source addresses.
Extended ACLs can match source, destination, protocol and ports.
The first matching ACL entry is used.
There is usually an implicit deny at the end.
TExam Day Tips
→Check inbound versus outbound direction.
→Read the ACL from top to bottom.
→Look for a broader permit or deny above the intended line.
Key takeaway
ACLs process entries top to bottom and stop at the first match. Entry order and interface direction matter as much as the permit or deny statement.
Real-world example
How this comes up in practice
A company's IT admin needs to give a contractor read-only access to production logs without sharing account credentials. Using role-based access control (RBAC) and temporary scoped permissions — not a permanent shared password — is the correct pattern. Questions like this test whether you can apply least-privilege access across cloud identity services.
What to study next
Got this wrong? Here's your next step.
Review ACL processing order, placement rules (standard near destination, extended near source), and inbound vs outbound direction. Study wildcard masks and implicit deny. Then practise related MLS-C01 ACL questions on filtering logic and placement.
Machine Learning Implementation and Operations — This question tests Machine Learning Implementation and Operations — Standard ACLs match source addresses..
What is the correct answer to this question?
The correct answer is: The invocation is allowed because the source IP is not in the denied ranges. — The policy has an Allow for InvokeEndpoint on the specific endpoint, but also a Deny with a condition that denies InvokeEndpoint if the source IP is within private IP ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16). The user's IP is 52.1.1.1, which is a public IP, not in the deny condition. Therefore, the Allow takes effect, and the invocation is permitted. Note: Deny always overrides Allow, but the condition does not match, so Deny is not applied.
What should I do if I get this MLS-C01 question wrong?
Review ACL processing order, placement rules (standard near destination, extended near source), and inbound vs outbound direction. Study wildcard masks and implicit deny. Then practise related MLS-C01 ACL questions on filtering logic and placement.
What is the key concept behind this question?
Standard ACLs match source addresses.
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 →
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.
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.