Monitoring and Logging

A company is configuring a new CloudWatch Logs group with a customer managed KMS key, and ingestion roles already have log-writing permissions. Security requires key use to be limited to this log group and the roles' KMS access to occur through CloudWatch Logs; which configuration actions meet these requirements? (Choose three.)

Choose 3 answers

Show the answer

Correct answersA. Grant the regional CloudWatch Logs service principal key use, restricted by the log group's encryption context.C. Grant ingestion roles KMS access conditioned on kms:ViaService matching the regional CloudWatch Logs service.E. Associate the log group with a symmetric encryption KMS key in the same Region.

AWhy this is right: The aws:logs:arn encryption context lets the key policy restrict service use to the specified log group.

BWhy not this: An S3 ViaService condition does not match KMS requests made through CloudWatch Logs.

CWhy this is right: kms:ViaService restricts the roles' permitted KMS operations to requests made through the specified service.

DWhy not this: CloudWatch Logs does not support asymmetric KMS keys for log group encryption.

EWhy this is right: CloudWatch Logs supports symmetric encryption KMS keys, and the associated key must be in the log group's Region.

CloudWatch Logs requires a same-Region symmetric key; its regional service principal can be restricted using the log group ARN in the encryption context. Role permissions can require the CloudWatch Logs kms:ViaService value; an S3 service condition does not authorize that path.