A company's security policy requires all API activity logs to be encrypted at rest using a customer managed key (CMK). A SysOps Administrator enables encryption on an existing multi-region CloudTrail trail by specifying the KMS key ARN. Shortly after this change, the administrator notices that new log files are no longer being delivered to the destination Amazon S3 bucket. Which of the following actions will resolve this log delivery failure?
- Update the key policy of the customer managed KMS key to grant the AWS CloudTrail service principal permission to perform kms:GenerateDataKey* operations.Cevap
- BModify the destination S3 bucket policy to grant kms:GenerateDataKey* permissions directly to the CloudTrail service principal.
- CAdd an IAM policy to the SysOps Administrator's IAM user granting iam:PassRole permission for the customer managed KMS key.
- DCreate an Amazon EventBridge rule that detects CloudTrail delivery failures and invokes an AWS Systems Manager Automation workflow to retry the delivery.
Cevap
Update the key policy of the customer managed KMS key to grant the AWS CloudTrail service principal permission to perform kms:GenerateDataKey* operations.
Updating the key policy of the customer managed KMS key to grant the AWS CloudTrail service principal permission to perform kms:GenerateDataKey* operations is correct because CloudTrail requires this permission to encrypt logs before delivering them to the S3 bucket. Without this key policy statement, log delivery will fail silently or report errors.
Adım Adım Çözüm
Anahtar Kavram
AWS CloudTrail SSE-KMS Key Policy Requirements
Tahmini Süre:1m 30s