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

A company wants to start processing sensitive data on Amazon EC2 instances. The company will use Amazon CloudWatch Logs to monitor, store, and access log files from the EC2 instances.

The company’s developers use CloudWatch Logs for troubleshooting. A security engineer must implement a solution that prevents the developers from viewing the sensitive data. The solution must automatically apply to any new log groups that are created in the account in the future.

Which solution will meet these requirements?

Answer options

Correct answer: A

Explanation

An account-wide data protection policy in CloudWatch Logs automatically applies to both existing and newly created log groups in the AWS account, satisfying the automation requirement. Developers without the logs:Unmask IAM permission will see the sensitive data masked, while still being able to use the logs for troubleshooting. Configuring individual policies per log group does not scale automatically to new log groups, and S3/Macie solutions add unnecessary complexity and latency to log access.