Courseiva
ModelinghardMultiple ChoiceObjective-mapped

MLS-C01 Modeling Practice Question

Exhibit

Refer to the exhibit.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "sagemaker:CreateTrainingJob",
      "Resource": "*",
      "Condition": {
        "StringEquals": {
          "sagemaker:TrainingJobStatus": "Failed"
        }
      }
    }
  ]
}

Refer to the exhibit. A data scientist is trying to create a SageMaker training job but receives an access denied error. The IAM policy shown is attached to their role. What is the most likely reason for the error?

⚠ Common exam trap

The MLS-C01 exam often tests the nuance that IAM condition keys like `sagemaker:TrainingJobStatus` are evaluated against the current state of the resource at the time of the API call, and candidates mistakenly assume a wildcard resource or a missing action is the issue rather than a condition that never matches.

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 policy only allows CreateTrainingJob when the training job status is 'Failed', which is never true initially

The IAM policy uses a `Condition` block with `sagemaker:TrainingJobStatus` set to `Failed`. When a `CreateTrainingJob` API call is made, the training job status is not yet set (it is `Creating` or `InProgress`), so the condition evaluates to false, and the request is denied. The policy only grants permission when the status equals `Failed`, which never occurs at creation time.

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 policy only allows CreateTrainingJob when the training job status is 'Failed', which is never true initially

    Why this is correct

    Condition prevents creation.

  • The Action is not allowed because 'CreateTrainingJob' is misspelled

    Why it's wrong here

    It is correctly spelled.

  • There is an explicit deny in another policy

    Why it's wrong here

    No evidence.

  • The Resource is set to '*' which does not include the specific training job ARN

    Why it's wrong here

    '*' includes all resources.

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.