Development with AWS Services

An application uses the AWS SDK to list objects in an S3 bucket but receives only part of the listing. What should the developer do to retrieve the remaining objects?

Show the answer

Correct answerB. Use an SDK paginator to traverse the results.

AWhy not this: An unchanged request retrieves the same initial page rather than advancing.

BWhy this is right: A paginator uses continuation tokens to retrieve subsequent pages.

CWhy not this: A longer timeout does not change the service's paginated response.

DWhy not this: A waiter checks resource state rather than traversing result pages.

An SDK paginator retrieves successive result pages using the service's pagination tokens. A waiter polls for a resource state; it does not retrieve additional listing pages.