Security

An AI application's CloudWatch Logs group contains sensitive diagnostic records and retains them indefinitely. Policy permits retaining those records for only seven days. What should the developer configure?

Show the answer

Correct answerC. A seven-day CloudWatch Logs retention policy.

AWhy not this: Key rotation changes encryption key material; it does not set the lifetime of log records.

BWhy not this: Credential expiration limits authentication sessions, not the retention of existing logs.

CWhy this is right: A seven-day retention policy sets the permitted lifetime for events in the log group.

DWhy not this: Exporting logs creates another copy without establishing expiration for the source records.

A log group retention policy expires records according to the permitted retention period. Exporting logs copies them elsewhere and does not remove the source records.