Security
An application's CloudWatch Logs contain email addresses. Support engineers must see masked values, while authorized investigators must be able to view the original values. What should the developer configure?
Show the answer
Correct answerA. A data protection policy with restricted logs:Unmask permission
AWhy this is right: Data protection policies mask sensitive values, and logs:Unmask controls who can reveal them.
BWhy not this: Encryption at rest does not provide field-level masking for users who can read the logs.
CWhy not this: Retention policies expire events by age, not by sensitive content or reader permissions.
DWhy not this: Subscription filters forward matching events; they do not delete or mask the source events.
A CloudWatch Logs data protection policy can mask detected sensitive data, while logs:Unmask controls access to original values. KMS encryption protects stored logs but does not selectively mask email addresses for readers.