An organization's security policy requires a SysOps Administrator to perform log file integrity validation on AWS CloudTrail logs from the previous quarter. The CloudTrail logs and digest files are delivered to an Amazon S3 bucket. An S3 Lifecycle rule is configured to transition all objects under the `AWSLogs/` prefix to the S3 Glacier Flexible Retrieval storage class after 30 days. When the administrator attempts to validate the logs using the command `aws cloudtrail verify-log-file`, the command fails with an error indicating that the operation is not valid for the object's storage class. Which action will resolve this issue and allow the administrator to successfully validate the logs?
- AModify the S3 bucket policy to grant `s3:GetObject` permissions to the `cloudtrail.amazonaws.com` service principal for Glacier objects, and re-run the verification command.
- BRe-run the verification command with the `--digest-only` parameter to perform the integrity check using only the metadata stored under the CloudTrail-Digest prefixes.
- Initiate a restore request for both the log files and the digest files in the S3 bucket, wait for the restore process to complete, and then run the verification command.Cevap
- DConfigure an IAM policy for the administrator's role that includes `iam:PassRole` permissions for the CloudTrail service principal, and re-run the verification command with the `--restore-glacier` parameter.
Cevap
Initiate a restore request for both the log files and the digest files in the S3 bucket, wait for the restore process to complete, and then run the verification command.
The correct action is to initiate a restore request for both the log files and the digest files, wait for the restore process to complete, and then run the validation command. The AWS CLI `verify-log-file` command downloads the log and digest files to compute and compare SHA-256 hashes. Because Glacier objects are archived, they cannot be read directly. Temporary restoration to S3 Standard is necessary for the command to succeed.
Adım Adım Çözüm
Anahtar Kavram
CloudTrail Log File Integrity Validation requires readable access to both digest and log files, meaning archived S3 Glacier objects must be restored before verification.