Courseiva
← Back to AWS Certified Machine Learning Engineer Associate MLA-C01 questions

Scenario-based practice

Refer to the Exhibit Practice Questions

Practise AWS Certified Machine Learning Engineer Associate MLA-C01 practice questions — original exam-style scenarios covering every exam domain, with detailed explanations, wrong-answer analysis, and common exam traps.

15
scenario questions
MLA-C01
exam code
Amazon Web Services
vendor

Scenario guide

How to approach refer to the exhibit practice questions

Practise exhibit-style questions that ask you to read a topology, table, command output or diagram before choosing the best answer.

Quick answer

Exhibit-style questions test whether you can read a topology, command output, diagram or table before choosing the best answer.

How to extract the relevant detail from an exhibit.

How topology, command output or routing information affects the answer.

How to avoid answering from memory before reading the evidence.

How to map the exhibit back to the exam objective.

Related practice questions

Related MLA-C01 topic practice pages

Scenario questions usually connect to one or more exam topics. Use these links to review the underlying concepts behind the scenario.

Practice set

Practice scenarios

Question 1easymultiple choice
Full question →

Refer to the exhibit. The data scientist wants to update the endpoint to use a new model version without downtime. Which approach should they use?

Exhibit

{
  "EndpointConfigName": "my-config",
  "ProductionVariants": [
    {
      "VariantName": "variant1",
      "ModelName": "my-model-v1",
      "InitialInstanceCount": 1,
      "InstanceType": "ml.c5.large",
      "InitialVariantWeight": 1.0
    }
  ]
}
Question 2easymultiple choice
Full question →

Refer to the exhibit. A user has the above IAM policy attached but cannot access files in SageMaker Studio. What additional permission is most likely needed?

Exhibit

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": "sagemaker:CreatePresignedDomainUrl",
            "Resource": "*"
        }
    ]
}
Question 3mediummultiple choice
Full question →

Refer to the exhibit. A data scientist tries to deploy a model from an S3 bucket encrypted with SSE-KMS. What should the administrator do to resolve this?

Exhibit

Error from SageMaker: ClientError: Cannot use encrypted model artifact. 
The SageMaker execution role (arn:aws:iam::123456789012:role/SageMakerRole) 
must have kms:Decrypt permission on the KMS key (arn:aws:kms:us-east-1:123456789012:key/abcd1234-...)
Question 4hardmultiple choice
Full question →

Refer to the exhibit. A data scientist used a SageMaker training job with a custom Scikit-learn script. The training job failed with the error shown. What is the most likely cause of this failure?

Exhibit

{
    "TrainingJobName": "fraud-detection-model-20241015",
    "TrainingJobStatus": "Failed",
    "FailureReason": "AlgorithmError: Encountered an unexpected error during training: ValueError: Expected 2D array, got 1D array instead. Reshape your data using array.reshape(-1, 1) if your data has a single feature.",
    "AlgorithmSpecification": {
        "TrainingImage": "382416733822.dkr.ecr.us-west-2.amazonaws.com/sagemaker-scikit-learn:1.0-1-cpu-py3",
        "TrainingInputMode": "File"
    },
    "ResourceConfig": {
        "InstanceType": "ml.m5.large",
        "InstanceCount": 1
    },
    "InputDataConfig": [
        {
            "ChannelName": "training",
            "DataSource": {
                "S3DataSource": {
                    "S3DataType": "S3Prefix",
                    "S3Uri": "s3://my-bucket/train/data.csv",
                    "S3DataDistributionType": "FullyReplicated"
                }
            },
            "ContentType": "text/csv",
            "CompressionType": "None"
        }
    ]
}
Question 5easymultiple choice
Full question →

Refer to the exhibit. A data scientist is trying to use AWS Glue to read data from the S3 bucket `ml-data-bucket`. The Glue job fails with an access denied error. What is the most likely cause?

Exhibit

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "s3:GetObject",
        "s3:PutObject"
      ],
      "Resource": "arn:aws:s3:::ml-data-bucket/*"
    }
  ]
}
Question 6mediummultiple choice
Full question →

Refer to the exhibit. A team observes that their SageMaker endpoint scales out quickly when load increases, but scales in very slowly when load decreases, causing over-provisioning. What is the most likely cause?

Exhibit

{
    "PolicyARN": "arn:aws:autoscaling:us-east-1:123456789012:scalingPolicy:policy-1",
    "PolicyName": "SageMakerEndpointScalingPolicy",
    "PolicyType": "TargetTrackingScaling",
    "TargetTrackingScalingPolicyConfiguration": {
        "TargetValue": 70.0,
        "PredefinedMetricSpecification": {
            "PredefinedMetricType": "SageMakerVariantInvocationsPerInstance"
        },
        "ScaleInCooldown": 600,
        "ScaleOutCooldown": 200
    }
}
Question 7mediummultiple choice
Full question →

Refer to the exhibit. A data engineer investigates why a SageMaker endpoint is returning errors. The endpoint configuration has been updated to point to a new model version. What is the MOST likely cause of the error?

Exhibit

[ERROR] 2024-03-15 10:23:45,123 - sagemaker - 1321 - root - ERROR - InvocationException: Received response status code 404 from container. Error: ResourceNotFoundException: Model 'my-model-v2' is not found. You may be using an outdated endpoint configuration.
Question 8hardmultiple choice
Full question →

Refer to the exhibit. The training job failed. What is the MOST likely cause?

Exhibit

[2024-01-15 10:30:45] Training job 'my-training-job' started.
[2024-01-15 10:31:10] Using algorithm 'built-in' with hyperparameters: {'epochs': 10, 'batch-size': 32, 'learning-rate': 0.001}
[2024-01-15 10:31:15] File system creation failed: No usable scratch space. Error: Input/output error.
[2024-01-15 10:31:15] Retrying with local SSD...
[2024-01-15 10:31:20] Training completed with status 'Failed'.
Question 9easymultiple choice
Full question →

An ML engineer runs the CLI command shown in the exhibit. However, the training job fails immediately with an error: 'Unable to assume role'. What is the most likely cause?

Exhibit

Refer to the exhibit.

aws sagemaker create-training-job \
    --training-job-name my-training-job \
    --algorithm-specification 'TrainingImage=123456789012.dkr.ecr.us-west-2.amazonaws.com/my-custom-training:latest,TrainingInputMode=File' \
    --role-arn arn:aws:iam::123456789012:role/SageMakerExecutionRole \
    --input-data-config '[{"ChannelName":"train","DataSource":{"S3DataSource":{"S3Uri":"s3://my-bucket/train/","S3DataType":"S3Prefix"}},"ContentType":"text/csv"}]' \
    --output-data-config '{"S3OutputPath":"s3://my-bucket/output/"}' \
    --resource-config '{"InstanceType":"ml.m5.large","InstanceCount":1,"VolumeSizeInGB":30}' \
    --vpc-config '{"SecurityGroupIds":["sg-12345678"],"Subnets":["subnet-12345678"]}'
Question 10easymultiple choice
Full question →

Refer to the exhibit. A data scientist reviews the output of a SageMaker training job. The model has 95% training accuracy and 92% validation accuracy. Which statement is true?

Exhibit

Model Artifacts:
  ModelArtifacts:
    S3ModelArtifacts: s3://my-bucket/output/model.tar.gz
  ModelMetrics:
    Metrics:
      training:accuracy: 0.95
      validation:accuracy: 0.92
  FinalHyperParameters:
    learning_rate: 0.01
    batch_size: 32
    epochs: 10
Question 11easymultiple choice
Full question →

Refer to the exhibit. A user is unable to invoke a SageMaker endpoint. The IAM policy shown is attached to the user. Which permission is missing to allow invocation?

Exhibit

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "sagemaker:DescribeEndpoint",
        "sagemaker:ListEndpoints"
      ],
      "Resource": "*"
    }
  ]
}
Question 12easymultiple choice
Full question →

Refer to the exhibit. A data scientist ran a training job using a custom algorithm container. The job failed with the error shown. What is the most likely cause?

Exhibit

{
    "TrainingJobName": "my-training-job",
    "TrainingJobStatus": "Failed",
    "FailureReason": "ClientError: Cannot evaluate expression: loss",
    "AlgorithmSpecification": {
        "TrainingImage": "123456789012.dkr.ecr.us-east-1.amazonaws.com/custom-latest",
        "TrainingInputMode": "File"
    },
    "ResourceConfig": {
        "InstanceType": "ml.m5.large",
        "InstanceCount": 1,
        "VolumeSizeInGB": 30
    },
    "StoppingCondition": {
        "MaxRuntimeInSeconds": 86400
    },
    "OutputDataConfig": {
        "S3OutputPath": "s3://my-bucket/output"
    }
}
Question 13hardmultiple choice
Full question →

Refer to the exhibit. A SageMaker training job logs show training AUC increasing but validation AUC plateauing at 0.880. What is the most likely issue?

Exhibit

[1] #011train-auc:0.890
[2] #011train-auc:0.895
[3] #011train-auc:0.892
[4] #011validation-auc:0.880
Question 14easymultiple choice
Full question →

Refer to the exhibit. A data scientist reviews the CloudWatch Logs from an Amazon SageMaker real-time endpoint. What is the MOST likely root cause of the NaN output?

Exhibit

Refer to the exhibit.
```
2024-01-15 10:23:45,123 [INFO] Starting inference at endpoint ...
2024-01-15 10:23:45,456 [ERROR] Model output contains NaN values.
2024-01-15 10:23:45,457 [WARN] Input feature x has value -9999.0 which is unusual.
```
Question 15hardmultiple choice
Full question →

A data scientist is trying to create a SageMaker endpoint configuration with 6 instances of ml.c5.large for a production variant. The creation fails with the error shown in the exhibit. Which action should the data scientist take to resolve this issue?

Exhibit

Refer to the exhibit.

Error log from SageMaker endpoint creation:
```
ResourceLimitExceeded: An error occurred (ResourceLimitExceeded) when calling the CreateEndpointConfig operation: The account-level service limit for 'ml.c5.large for real-time endpoints' is 5. You have requested 6 instances. Please use AWS Service Quotas to request an increase.
```

These MLA-C01 practice questions are part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style MLA-C01 questions with detailed explanations, topic-based practice, mock exams, readiness tracking, and study analytics.