Data Security and Governance
An application sends its logs to Amazon CloudWatch Logs. An audit policy requires automatic expiration after 90 days without a custom deletion job. What should a data engineer configure?
Show the answer
Correct answerD. A 90-day retention policy on each application log group
AWhy not this: Exporting copies events to S3 but does not expire the original CloudWatch Logs events.
BWhy not this: Subscription filters forward matching events; they do not control retention.
CWhy not this: A query time range limits search results but does not expire stored events.
DWhy this is right: Log group retention policies provide automatic expiration after a specified period.
A log group retention policy automatically expires log events after the configured period. A query time range only limits the events searched; it does not change how long logs are stored.