Courseiva
Exploratory Data AnalysismediumMultiple ChoiceObjective-mapped

MLS-C01 Exploratory Data Analysis Practice Question

Network Topology
aws s3api head-objectbucket my-data-bucketkey logs/2023/01/01/app.logRefer to the exhibit.```"AcceptRanges": "bytes","ContentLength": "2147483648","ContentType": "application/octet-stream","LastModified": "2023-01-01T12:00:00Z","Metadata": {}

A data scientist is exploring a dataset stored as a single 2 GB object in S3. The scientist wants to read only a subset of the file (e.g., the first 1000 lines) to perform initial data inspection. Which approach should the scientist take to minimize data transfer and cost?

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 S3 Select with a SQL query to retrieve the first 1000 rows.

S3 Select enables retrieving a subset of data using SQL queries, such as SELECT * FROM s3object LIMIT 1000, minimizing data transfer and cost. Option A is inefficient as it downloads the entire 2 GB file. Option C retrieves bytes, not lines, and may still transfer excessive data or require multiple requests to locate line boundaries. Option D scans the entire file with Athena, incurring cost and latency for a full table scan even with LIMIT 1000.

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 the AWS CLI to download the entire file and then use head to get the first lines.

    Why it's wrong here

    Downloading the entire 2 GB file is costly and slow.

  • Use S3 Select with a SQL query to retrieve the first 1000 rows.

    Why this is correct

    S3 Select efficiently retrieves only the required subset.

  • Use the S3 Range header to read the first 1 MB of the file and parse lines.

    Why it's wrong here

    Range read may not align with line boundaries and still transfers data.

  • Use Amazon Athena to query the file with LIMIT 1000.

    Why it's wrong here

    Athena scans the entire file, incurring full cost.

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.