Security

A CloudWatch Logs group contains historical AI prompts with PII; a newly added data protection policy masks matching PII in new events. Operators must retain ordinary log access without retrieving unmasked PII, and historical events need remediation. Which plan meets these requirements?

Show the answer

Correct answerC. Delete the log streams with historical PII, retain the policy, and deny operators logs:Unmask.

AWhy not this: Allowing logs:Unmask lets operators retrieve unmasked sensitive data despite the masking policy.

BWhy not this: KMS permissions do not provide field-level masking while preserving ordinary log access.

CWhy this is right: Deleting the affected log streams removes the historical PII, future events remain masked, and operators cannot bypass masking.

DWhy not this: Data protection policies do not retroactively mask events ingested before the policy was applied.

CloudWatch Logs data protection masking is not retroactive, so affected historical data requires separate remediation; because CloudWatch Logs cannot delete individual events, that means deleting the log streams that contain them. Denying logs:Unmask prevents operators from bypassing masking; the new policy alone does not protect earlier events.