CompTIA CySA+ (CS0-004) free question 1 / 10 · Domain 1: Security Operations
A company's storage costs for security logs keep rising, and an engineer proposes deleting all logs older than 30 days. Compliance staff point out that their regulator expects a longer period. According to the OWASP Logging Cheat Sheet, how should the retention period be set?
- Logs should be kept for as long as storage allows, as older entries may help in an investigation that starts at a later date
- Logs should be kept until the monitoring team decides that the entries have lost their interest, even if the regulator expects a longer period
- Logs are kept for the required retention period and not beyond it, with legal, regulatory, and contractual obligations shaping that period
- Logs should be deleted as soon as they have been forwarded to the collector, so that a single protected copy of the entries remains on the central system
Show the answer and explanation
Answer: C
Why this is correct
The "Disposal of logs" section says log data, temporary debug logs, and backups, copies, or extractions must not be destroyed before the duration of the required data retention period, and must not be kept beyond this time. It adds that legal, regulatory, and contractual obligations may impact these periods. So a 30-day rule is wrong if an obligation requires more, and an unlimited period is equally wrong because the end of the period is also a requirement.
Why the other options are wrong
"Logs should be kept for as long as storage allows, as older entries may help in an investigation that starts at a later date" … The cheat sheet also says logs must not be kept beyond the required period. Keeping everything indefinitely can itself breach obligations and enlarges the data that has to be protected.
"Logs should be kept until the monitoring team decides that the entries have lost their interest, even if the regulator expects a longer period" … The period is not a matter of analyst interest. The page ties it to legal, regulatory, and contractual obligations, so a regulator's expectation sets a minimum that cannot be overridden by preference.
"Logs should be deleted as soon as they have been forwarded to the collector, so that a single protected copy of the entries remains on the central system" … Deleting after forwarding would remove the copies the page says must survive for the retention period. It also covers temporary debug logs and backups, which fall under the same rule.
Key points
The rule also applies to temporary debug logs and to backups, copies, and extractions of log data.
Go to the CompTIA CySA+ (CS0-004) practice app (10 free questions; purchase unlocks all questions)