Courseiva
Data Store ManagementhardMultiple ChoiceObjective-mapped

DEA-C01 Data Store Management Practice Question

Network Topology
$ aws s3api list-objectsbucket my-data-lakeprefix logs/2023/12/01/max-items 2Refer to the exhibit."Contents": ["Key": "logs/2023/12/01/app1.log","LastModified": "2023-12-01T12:00:00Z","Size": 1024},"Key": "logs/2023/12/01/app2.log","LastModified": "2023-12-01T12:05:00Z","Size": 2048],"NextToken": "eyJNYXJrZXIiOiBudWxsLCAiYm90b190cnVuY2F0ZV9hbW91bnQiOiAyfQ=="

A data engineer runs the AWS CLI command shown in the exhibit to list objects in an S3 bucket. The command returns only two objects even though the bucket contains thousands of objects under the prefix. What should the engineer do to retrieve the next batch of objects?

⚠ Common exam trap

A common mix-up: candidates confuse `--page-size` (which controls API call size but not pagination) with `--starting-token` (which actually advances the pagination cursor), leading candidates to incorrectly choose option C.

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 the --starting-token parameter with the value from the NextToken field.

The AWS CLI `list-objects-v2` command paginates results by default. When the output is truncated, the response includes a `NextToken` field. To retrieve the next batch, the engineer must use the `--starting-token` parameter with the value from that `NextToken` field, which tells the CLI to resume listing from where it left off.

Answer analysis

Option-by-option breakdown

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

  • Increase the --max-items value to a larger number.

    Why it's wrong here

    Increasing --max-items will retrieve more items in one page, but the command still returns only one page; it doesn't automatically fetch the next page.

  • Use the --starting-token parameter with the value from the NextToken field.

    Why this is correct

    The NextToken is used with --starting-token to get the next page of results.

  • Use the --page-size parameter to request more items per API call.

    Why it's wrong here

    --page-size controls the number of items fetched per underlying API call, but the CLI still returns a single page; it doesn't paginate automatically without --starting-token.

  • Change the --prefix to a more specific value.

    Why it's wrong here

    Changing prefix would filter results, not paginate.

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 DEA-C01 question is part of Courseiva's 1,711-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 DEA-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 DEA-C01 exam.