Courseiva
hardMultiple ChoiceObjective-mapped

MLA-C01 Practice Question: A company uses SageMaker training jobs that need…

A company uses SageMaker training jobs that need to access data in an S3 bucket in a different AWS account. The bucket uses a bucket policy that allows access only from a specific VPC. How should they configure the training job?

⚠ Common exam trap

Test-takers frequently think a cross-account IAM role alone is sufficient, forgetting that the bucket policy's VPC restriction is a separate, mandatory condition that must be explicitly satisfied, and that the VPC endpoint alone does not grant cross-account permissions.

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

Use cross-account access with an IAM role and add a bucket policy allowing the training job's VPC.

The training job in Account A needs to access an S3 bucket in Account B that is restricted to a specific VPC. This requires both cross-account IAM role trust (so the training job can assume a role in Account B) and a bucket policy that explicitly allows access from the VPC where the training job runs. Without the VPC condition in the bucket policy, the S3 service would deny requests even if the IAM role is valid, because the bucket policy enforces the VPC restriction.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Use AWS DataSync to copy data to the training account's S3.

    Why it's wrong here

    DataSync is for large data transfers, not for providing real-time access.

  • Create an IAM role in the source account and assume it from the training account.

    Why it's wrong here

    This handles cross-account access but doesn't satisfy the VPC condition.

  • Use an S3 VPC endpoint in the training job's VPC and attach a bucket policy that allows the VPC.

    Why it's wrong here

    This addresses the VPC condition but not the cross-account IAM permission.

  • Use cross-account access with an IAM role and add a bucket policy allowing the training job's VPC.

    Why this is correct

    This combines IAM role assumption and VPC condition to meet both requirements.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

One of 835 original MLA-C01 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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 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.