Courseiva
Exploratory Data AnalysishardMultiple ChoiceObjective-mapped

MLS-C01 Exploratory Data Analysis Practice Question

Network Topology
aws s3api list-objects-v2bucket my-bucketprefix data/query "Contents[?Size > `1000`]"

Refer to the exhibit. A data scientist runs the AWS CLI command shown to explore the contents of an S3 bucket. The command returns an empty array. However, the data scientist knows there are objects larger than 1000 bytes in the bucket. What is the most likely reason for the empty result?

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 AWS CLI is not configured with the correct region for the bucket

The command syntax is correct: `--query 'Contents[?Size > `1000`]'` uses backticks for the numeric literal as per JMESPath. The empty result indicates the CLI could not find matching objects. Since the data scientist knows objects larger than 1000 bytes exist, the most likely cause is that the CLI is configured with a default region different from the bucket's region. Running the command without an explicit `--region` parameter causes it to query the bucket in the wrong region, returning no results. Option A is incorrect because the backticks are valid. Option B is incorrect because `list-objects-v2` supports `--query`. Option C is incorrect because `--query` is supported. Option D is correct because a region mismatch would cause the CLI to look for the bucket in the wrong location, resulting in an empty array even though the bucket contains objects.

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 query syntax is incorrect; backticks should not be used

    Why it's wrong here

    Backticks are used for literals in JMESPath.

  • The command should use list-objects instead of list-objects-v2

    Why it's wrong here

    Both commands work similarly.

  • The --query parameter is not supported by list-objects-v2

    Why it's wrong here

    --query is supported.

  • The AWS CLI is not configured with the correct region for the bucket

    Why this is correct

    If the bucket is in a different region, the command returns no results.

Visual reference

Client Server SYN (seq=100) SYN-ACK (seq=200, ack=101) ACK (ack=201) Connection established — data transfer begins

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

This MLS-C01 question is part of Courseiva's 1,672-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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.