An audit export must collect every matching event across multiple CloudWatch Logs streams within a specified time range, retaining event timestamps and stream names. A FilterLogEvents response contains no events but includes nextToken; what should the extraction process do?
Show the answer
Correct answerA. Continue with nextToken and unchanged filters until no nextToken is returned.
AWhy this is right: Following every continuation token preserves the requested selection and retrieves matching events across all result pages.
BWhy not this: Removing the time range changes the audit selection, and keeping one page can omit required events.
CWhy not this: GetLogEvents reads a single stream; selecting only the latest stream omits matching events in other streams.
DWhy not this: An empty FilterLogEvents page can include a continuation token and does not establish that all matching events have been retrieved.
FilterLogEvents can return empty or partially filled pages while additional pages remain. Continue pagination with the same selection criteria and preserve the returned event metadata; an empty page alone does not establish that extraction is complete.