Question 471 of 507
Deployment and Orchestration of ML WorkflowshardMultiple ChoiceObjective-mapped

Quick Answer

The correct answer is that the action will be denied because the Deny statement explicitly blocks CreateEndpointConfig when the subnet does not match. This occurs because IAM policy evaluation logic gives Deny statements absolute precedence over Allow statements, so even if another policy permits the action, the explicit Deny with a condition key for the subnet mismatch overrides everything. On the AWS Certified Machine Learning Engineer Associate MLA-C01 exam, this tests your understanding of how to use IAM policy conditions to restrict SageMaker endpoint creation to a specific VPC subnet, a common security requirement for controlling network traffic in ML deployments. A frequent trap is assuming an Allow statement alone can override a Deny, but remember that Deny is always the final decision in IAM. Memory tip: think of Deny as a "veto" — no matter how many Allow votes you have, one Deny kills the action.

MLA-C01 Deployment and Orchestration of ML Workflows Practice Question

This MLA-C01 practice question tests your understanding of deployment and orchestration of ml workflows. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. 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.

Exhibit

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "sagemaker:CreateModel",
      "Resource": "arn:aws:sagemaker:us-east-1:123456789012:model/*"
    },
    {
      "Effect": "Deny",
      "Action": "sagemaker:CreateEndpointConfig",
      "Resource": "*",
      "Condition": {
        "StringNotEquals": {
          "sagemaker:VpcSubnets": "subnet-0123456789abcdef0"
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": "sagemaker:CreateEndpoint",
      "Resource": "*"
    }
  ]
}

Refer to the exhibit. An AWS IAM policy is attached to a role used by a CI/CD pipeline to deploy SageMaker endpoints. The pipeline attempts to create an endpoint configuration with a VPC subnet that is not subnet-0123456789abcdef0. What will happen when the pipeline tries to create the endpoint configuration?

Question 1hardmultiple choice
Review the full subnetting walkthrough →

Exhibit

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "sagemaker:CreateModel",
      "Resource": "arn:aws:sagemaker:us-east-1:123456789012:model/*"
    },
    {
      "Effect": "Deny",
      "Action": "sagemaker:CreateEndpointConfig",
      "Resource": "*",
      "Condition": {
        "StringNotEquals": {
          "sagemaker:VpcSubnets": "subnet-0123456789abcdef0"
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": "sagemaker:CreateEndpoint",
      "Resource": "*"
    }
  ]
}

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 action will be denied because the Deny statement explicitly blocks CreateEndpointConfig when the subnet does not match.

Option A is correct because the IAM policy includes a Deny statement with a condition that explicitly blocks the `CreateEndpointConfig` action when the subnet specified in the request does not match `subnet-0123456789abcdef0`. Since the pipeline is attempting to create an endpoint configuration with a different subnet, the Deny statement overrides any Allow statements, resulting in the action being denied.

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.

  • The action will be denied because the Deny statement explicitly blocks CreateEndpointConfig when the subnet does not match.

    Why this is correct

    An explicit Deny overrides any Allow, and the condition is not met.

    Related concept

    Read the scenario before looking for a memorised answer.

  • The action will be allowed because the CreateEndpoint statement allows all endpoints.

    Why it's wrong here

    The Deny on CreateEndpointConfig is separate and will block this action.

  • The action will be allowed only if the endpoint configuration uses a VPC with multiple subnets.

    Why it's wrong here

    The condition requires the exact subnet, not multiple.

  • The action will be allowed because the policy lacks a Deny on the subnet condition for the endpoint resource.

    Why it's wrong here

    The Deny applies to CreateEndpointConfig regardless of the endpoint resource.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates may assume an Allow statement for `CreateEndpoint` would permit the action, but they overlook that an explicit Deny on the `CreateEndpointConfig` action with a subnet condition takes precedence, causing the request to fail.

Detailed technical explanation

How to think about this question

In AWS IAM, explicit Deny statements always override any Allow statements, making them a powerful tool for enforcing strict compliance requirements. The condition key `sagemaker:VpcSubnets` is used to restrict which subnets can be used when creating SageMaker endpoint configurations, and if the condition does not match, the Deny is triggered. This pattern is common in regulated environments where data must remain within specific VPC subnets for security or compliance reasons.

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 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.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related MLA-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 MLA-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 MLA-C01 question test?

Deployment and Orchestration of ML Workflows — This question tests Deployment and Orchestration of ML Workflows — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: The action will be denied because the Deny statement explicitly blocks CreateEndpointConfig when the subnet does not match. — Option A is correct because the IAM policy includes a Deny statement with a condition that explicitly blocks the `CreateEndpointConfig` action when the subnet specified in the request does not match `subnet-0123456789abcdef0`. Since the pipeline is attempting to create an endpoint configuration with a different subnet, the Deny statement overrides any Allow statements, resulting in the action being denied.

What should I do if I get this MLA-C01 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

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 24, 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 MLA-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 MLA-C01 exam.