AWS Certified Security – Specialty (SCS-C02) — Question 289

A company runs an application that sends logs to a log group in Amazon CloudWatch Logs. The email addresses of the application users are in the logs.

The company’s developers need to view the logs in CloudWatch Logs. A security engineer must ensure that the developers who access the log group cannot see the user email addresses.

Which solution will meet this requirement?

Answer options

Correct answer: D

Explanation

Amazon CloudWatch Logs data protection policies allow native, in-place masking of sensitive data (such as email addresses) using AWS managed data identifiers like EmailAddress. Restricting KMS key access as suggested in Option B would prevent developers from viewing the logs entirely. Options A and C are incorrect because they introduce unnecessary complexity and external services (Amazon Macie or AWS Lambda) instead of leveraging the built-in masking capabilities of CloudWatch Logs.