A SysOps Administrator is managing an AWS KMS Customer Managed Key (CMK) that encrypts sensitive finance data. The key policy is configured as follows:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Allow admin access",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::444455556666:role/FinanceSecurityAdmin"
},
"Action": "kms:*",
"Resource": "*"
}
]
}
Due to an administrative error, the `FinanceSecurityAdmin` IAM role in account is deleted. The administrator quickly recreates the IAM role with the exact same name and path. However, when trying to manage the CMK using the recreated role, the administrator receives an Access Denied error.
Which of the following describes the root cause of this behavior and the correct resolution?
- The KMS key policy stores the unique principal ID of the role, which changed when the role was recreated. Because the key policy does not delegate permissions to the AWS account root user, the key policy cannot be modified by any user in the account, and the administrator must contact AWS Support to restore access.Cevap
- BThe recreated role lacks the necessary permissions to update key policies. The administrator should attach an IAM policy to the role that grants kms:PutKeyPolicy on the CMK, which will override the key policy's restrictions and restore access.
- CThe AWS account root user retains global administrative control over all resources. The administrator must log in using the AWS account root user credentials, which automatically bypasses the KMS key policy, and update the policy to map to the new role principal.
- DThe recreated role cannot be assumed by AWS KMS to evaluate policies. The administrator must attach an IAM policy to the role that grants iam:PassRole permissions targeting the AWS KMS service principal to restore the trust relationship.