A SysOps Administrator is auditing a multi-account environment where AWS CloudTrail logs are consolidated into a central Amazon S3 bucket. The logs and digest files are encrypted using an AWS KMS customer managed key. During a compliance check, the administrator runs the AWS CLI command to verify log file integrity, but the command fails with an access denied error on decryption. Additionally, the compliance team reports that read-only API activity, such as listing S3 objects and describing EC2 instances, is missing from the logs, although resource modifications are successfully recorded. Which two actions should the SysOps Administrator take to resolve these issues? (Select TWO.)
- Update the CloudTrail trail configuration to capture All Read/Write events instead of write-only events.Cevap
- Ensure that the IAM identity executing the log validation command has kms:Decrypt and kms:DescribeKey permissions for the customer managed key.Cevap
- CConfigure the IAM policy of the administrator with the iam:PassRole permission targeting the CloudTrail service role.
- DModify the S3 bucket policy to grant the CloudTrail service principal the s3:GetObject permission on the digest files prefix.
- EEnable Amazon CloudWatch detailed monitoring to capture high-frequency read-only management events.
Cevap
Updating the CloudTrail trail configuration to capture all Read/Write events, and ensuring the IAM identity executing the validation has decrypt permissions on the customer managed key.
To resolve the missing read-only events, the CloudTrail configuration must be updated to log all events rather than write-only events. For the validation failure, the administrator's local machine performs the validation by retrieving the logs and decrypting them, meaning the IAM identity running the command must have permissions to decrypt using the KMS customer managed key.
Adım Adım Çözüm
Anahtar Kavram
CloudTrail Log Auditing and Integrity Validation