A SysOps Administrator is configuring an Amazon Simple Notification Service (Amazon SNS) topic in AWS account 123456789012. The topic is encrypted using a customer managed AWS KMS key.
A monitoring application running on an Amazon EC2 instance in the same account must publish alerts to this SNS topic. The EC2 instance is associated with an IAM role named MonitoringAppRole that has an attached policy allowing the sns:Publish action.
Currently, the application fails to publish alerts, receiving an access denied error. The KMS key has the following key policy:
{
"Version": "2012-10-17",
"Id": "key-policy-1",
"Statement": [
{
"Sid": "Allow key administration",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::123456789012:role/SysOpsAdminRole"
},
"Action": [
"kms:Create*",
"kms:Describe*",
"kms:Enable*",
"kms:List*",
"kms:Put*",
"kms:Update*",
"kms:Revoke*",
"kms:Disable*",
"kms:Get*",
"kms:Delete*",
"kms:TagResource",
"kms:UntagResource",
"kms:ScheduleKeyDeletion",
"kms:CancelKeyDeletion"
],
"Resource": "*"
}
]
}
The administrator wants to manage permissions for the KMS key using the IAM role's policy.
Which combination of actions must the SysOps Administrator perform to resolve this issue? (Select TWO.)
- Modify the KMS key policy to add a statement that grants the AWS account root principal (arn:aws:iam::123456789012:root) the kms:* permissions.Answer
- Update the IAM policy attached to MonitoringAppRole to allow the kms:GenerateDataKey and kms:Decrypt actions on the KMS key.Answer
- CModify the KMS key policy to grant the SNS service principal (sns.amazonaws.com) the kms:GenerateDataKey and kms:Decrypt permissions.
- DUpdate the IAM policy attached to MonitoringAppRole to allow the kms:Encrypt and kms:Decrypt actions on the SNS topic ARN.
- EUpdate the SNS topic access policy to grant the MonitoringAppRole the kms:GenerateDataKey and kms:Decrypt permissions.