A CloudWatch alarm stops delivering notifications after its SNS topic is encrypted with a customer managed KMS key. The topic policy still permits CloudWatch publishing, and subscriptions are confirmed. What should the operator change?
Show the answer
Correct answerA. Grant cloudwatch.amazonaws.com kms:Decrypt and kms:GenerateDataKey* in the key policy.
AWhy this is right: These key permissions let the CloudWatch service publish notifications to the encrypted SNS topic.
BWhy not this: The instance role does not publish CloudWatch alarm notifications, and these are not the required key permissions.
CWhy not this: The CloudWatch Logs principal is different from the CloudWatch service principal that publishes alarm notifications.
DWhy not this: SNS handles topic encryption transparently; subscriber permissions do not authorize CloudWatch to use the key.
CloudWatch needs kms:Decrypt and kms:GenerateDataKey* permissions on the customer managed key to publish to the encrypted topic. Giving subscribers decryption permissions does not authorize the publishing service to use the key.