A SysOps administrator is configuring automatic rotation for an Amazon RDS database credential stored in AWS Secrets Manager. The secret is encrypted using a customer-managed AWS KMS key. The KMS key policy does not delegate permissions to the account's root user and lists specific IAM principals. After enabling rotation, the administrator notices that the rotation fails. The Amazon CloudWatch logs for the Lambda rotation function show an Access Denied error when attempting to retrieve the current secret version via the GetSecretValue call. The Lambda function's IAM execution role is already configured with a policy that allows secretsmanager:GetSecretValue and secretsmanager:PutSecretValue for the secret. Which of the following actions should the administrator take to resolve this issue? (Select TWO.)
- Add kms:Decrypt and kms:DescribeKey permissions to the IAM policy attached to the Lambda rotation function's execution role.Answer
- Modify the key policy of the customer-managed KMS key to grant the Lambda rotation function's execution role permissions for the kms:Decrypt and kms:DescribeKey actions.Answer
- CAdd the secretsmanager:GetSecretValue and secretsmanager:DescribeSecret permissions to the customer-managed KMS key policy.
- DAttach a resource-based policy to the database secret that grants kms:Decrypt permissions to the Secrets Manager service principal.
- EEnable automatic key rotation on the customer-managed KMS key and associate it with the database secret ARN.