Detection

CloudWatch Logs ingestion fails for a new log group using an existing customer managed KMS key, while the old group still works. The key policy allows the regional Logs service principal only when the encryption context matches the old group's ARN; how should an administrator restore ingestion without broadening access to other groups?

Show the answer

Correct answerD. Add the new group's ARN to the allowed encryption context.

AWhy not this: PutLogEvents permissions do not resolve a KMS key policy condition that excludes the new log group.

BWhy not this: An account-wide wildcard would authorize other groups, violating the requirement to preserve restricted access.

CWhy not this: The Logs service uses the key for log group encryption; producer permissions do not fix the restrictive key policy condition.

DWhy this is right: Allowing the new group's encryption context permits its encryption operations without authorizing unrelated groups.

CloudWatch Logs uses the log group ARN in its KMS encryption context. Allowing the new ARN restores key use while preserving group-level restrictions; granting the producer KMS permissions does not fix the service principal's context restriction.