MLS-C01 IAM Policy Practice Question
Exhibit
Refer to the exhibit.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:PutObject"
],
"Resource": "arn:aws:s3:::my-bucket/training/*"
},
{
"Effect": "Allow",
"Action": "s3:ListBucket",
"Resource": "arn:aws:s3:::my-bucket",
"Condition": {
"StringLike": {
"s3:prefix": "training/*"
}
}
}
]
}A data scientist is setting up an IAM policy for a SageMaker notebook instance that needs to read and write data in the 'training/' folder of an S3 bucket, and also list objects in the bucket. Does the policy satisfy the requirements?
⚠ Common exam trap
This question is invalid because it references a policy that is not displayed. In a real exam, the policy would be shown. Traps include overlooking the condition on ListBucket or assuming extra permissions are needed.
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
✓
Yes, the policy correctly grants the required permissions.
The stem does not include the IAM policy, so the question cannot be definitively answered as written. However, assuming a typical policy that grants s3:GetObject and s3:PutObject on the training/ prefix and s3:ListBucket with a condition restricting the prefix to training/*, the policy meets the requirements. Therefore, option A is correct under that interpretation. Option B is wrong because s3:DeleteObject is not required for reading and writing. Option C is wrong because s3:GetObject is allowed on the training/ objects, not on the bucket itself. Option D is wrong because the condition on ListBucket is valid and correctly limits listing to the training/ prefix.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Yes, the policy correctly grants the required permissions.
Why this is correct
Assuming the policy grants the minimal permissions described, it satisfies the requirements. The explanation should note the missing policy.
- ✗
No, the policy must also include s3:DeleteObject for data cleaning.
Why it's wrong here
Incorrect because s3:DeleteObject is not required for reading, writing, and listing.
- ✗
No, the policy misses s3:GetObject for the bucket itself.
Why it's wrong here
Incorrect because s3:GetObject on the bucket is not needed; object-level permissions are sufficient.
- ✗
No, the condition on ListBucket is invalid.
Why it's wrong here
Incorrect because the condition on ListBucket with a prefix is valid and commonly used.
Quick reference
AWS S3 Storage Class Comparison
| Storage Class | Min Duration | Retrieval | Use Case |
|---|---|---|---|
| S3 Standard | None | Immediate | Frequently accessed data |
| S3 Standard-IA | 30 days | Immediate | Infrequent access, rapid retrieval |
| S3 One Zone-IA | 30 days | Immediate | Non-critical infrequent data |
| S3 Intelligent-Tiering | None | Immediate–hours | Unknown or changing access patterns |
| S3 Glacier Instant | 90 days | Milliseconds | Archive with instant retrieval |
| S3 Glacier Flexible | 90 days | Minutes–hours | Archive, flexible retrieval |
| S3 Glacier Deep Archive | 180 days | Hours | Long-term compliance archive |
Go deeper
Related to this question
About these practice questions
Courseiva writes every MLS-C01 question from scratch — 1,672 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
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.