Courseiva
Exploratory Data AnalysismediumMultiple ChoiceObjective-mapped

MLS-C01 Exploratory Data Analysis Practice Question

Exhibit

Refer to the exhibit.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "s3:GetObject",
        "s3:ListBucket"
      ],
      "Resource": [
        "arn:aws:s3:::my-data-bucket/*",
        "arn:aws:s3:::my-data-bucket"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "athena:StartQueryExecution",
        "athena:GetQueryResults"
      ],
      "Resource": "*"
    }
  ]
}

Refer to the exhibit. A data scientist is unable to query a table in Amazon Athena that is located in the 'my-data-bucket' S3 bucket. The IAM policy shown is attached to the scientist's role. What is the most likely reason for the failure?

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 does not allow s3:PutObject to write query results to an S3 bucket.

Athena queries require permissions to write query results to an S3 bucket, typically via 's3:PutObject' on an output location. The policy only allows 's3:GetObject' and 's3:ListBucket' on the data bucket, but lacks any 's3:PutObject' permission, causing the failure. Option A is incorrect because the policy does not reference any KMS actions. Option B is incorrect because 'athena:StartQueryExecution' is implicitly allowed (not denied), though it doesn't appear in the policy; Athena actions are not shown but the failure is due to S3 write permissions. Option C is incorrect because 's3:GetObject' is explicitly allowed on the bucket.

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 does not allow decrypting data encrypted with AWS KMS.

    Why it's wrong here

    No KMS actions are mentioned, but the policy does not prevent decryption either; the error is likely missing S3 write.

  • The policy does not allow athena:StartQueryExecution.

    Why it's wrong here

    athena:StartQueryExecution is allowed.

  • The policy does not allow s3:GetObject on the bucket.

    Why it's wrong here

    s3:GetObject is allowed.

  • The policy does not allow s3:PutObject to write query results to an S3 bucket.

    Why this is correct

    Athena writes results to S3, requiring s3:PutObject.

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

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 →

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.