Configuration Management and IaC
An inventory application makes one AWS SDK call to DescribeAutoScalingGroups and records only part of a large fleet. The response includes a NextToken value. What should the developer do to collect the complete inventory?
Show the answer
Correct answerD. Use an SDK paginator to iterate through the result pages.
AWhy not this: Client-side filtering changes which retrieved results are retained, not which pages are fetched.
BWhy not this: Retries repeat a request after failures; they do not advance to the next page of a successful response.
CWhy not this: A waiter checks a resource condition rather than retrieving additional result pages.
DWhy this is right: A paginator follows continuation tokens and exposes successive pages of results.
A NextToken indicates that more result pages are available. An SDK paginator retrieves successive pages so the application can process the complete inventory. A waiter polls for a resource condition; it does not traverse a paginated collection.