A developer uses the Amazon S3 ListObjectsV2 API call to retrieve and list object keys from an S3 bucket. The list can contain thousands of keys, and the retrieval often returns more than the max-keys maximum value. The code must handle any number of returned results. How can the developer modify the code to handle any number of returns?

QuestionsCategory: DVA-C01A developer uses the Amazon S3 ListObjectsV2 API call to retrieve and list object keys from an S3 bucket. The list can contain thousands of keys, and the retrieval often returns more than the max-keys maximum value. The code must handle any number of returned results. How can the developer modify the code to handle any number of returns?
Admin Staff asked 3 months ago
A developer uses the Amazon S3 ListObjectsV2 API call to retrieve and list object keys from an S3 bucket. The list can contain thousands of keys, and the retrieval often returns more than the max-keys maximum value. The code must handle any number of returned results.
How can the developer modify the code to handle any number of returns?

A. Set max-keys in the ListObjectsV2 API call to the expected number of returned objects.

B. Set max-keys in the ListObjectsV2 API call to -1.

C. Run an S3 Select query to retrieve and list object keys from the bucket.

D. When applicable, repeat the ListObjectsV2 API call by using NextContinuationToken.








 

Suggested Answer: C

Community Answer: D




This question is in DVA-C01 AWS Certified Developer – Associate Exam
For getting AWS Certified Developer – Associate Certificate


Disclaimers:
The website is not related to, affiliated with, endorsed or authorized by Amazon.
Trademarks, certification & product names are used for reference only and belong to Amazon.
The website does not contain actual questions and answers from Amazon's Certification Exam.
Question Tags:

Recommended

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

Retrieve your password

Please enter your username or email address to reset your password.