AWS Certified Developer Associate DVA-C01 – Question246

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.

Correct Answer: C