AWS SysOps Admin SOA-C02 · Monitoring, Logging, and Remediation · medium

A security auditor suspects that an attacker who briefly compromised an IAM role may have modified or deleted a single JSON log file inside the company's AWS CloudTrail Amazon S3 bucket from three weeks ago. Which CloudTrail feature allows the SysOps administrator to mathematically verify via the AWS CLI (aws cloudtrail validate-logs) whether any log file was modified, deleted, or forged after CloudTrail delivered it?

Published · Last updated · checked before publication — how we verify questions

Options

  • AEnable Amazon S3 Server Access Logging on the CloudTrail bucket
  • BQuery the CloudTrailErrorCount metric in Amazon CloudWatch Metrics
  • CEnable CloudTrail Log File Integrity Validation (validate-logs)Correct answer
  • DConfigure an Amazon EventBridge schedule that renames S3 objects hourly

Answer: C. Enable CloudTrail Log File Integrity Validation (validate-logs)

Enabling CloudTrail Log File Integrity Validation causes CloudTrail to write hourly digest files containing SHA-256 hashes of every delivered log file and to digitally sign each digest file using RSA-2048 private keys (chained to the previous digest hash). Running aws cloudtrail validate-logs detects any tampering or deletion.

Why the other options are wrong

  • A. Enable Amazon S3 Server Access Logging on the CloudTrail bucket — S3 Server Access Logging records bucket requests on a best-effort basis, not cryptographic SHA-256/RSA digest chains.
  • B. Query the CloudTrailErrorCount metric in Amazon CloudWatch Metrics — CloudWatch metrics show aggregate delivery counts rather than cryptographic file integrity verification.
  • D. Configure an Amazon EventBridge schedule that renames S3 objects hourly — Renaming CloudTrail objects breaks standard Athena/digest paths and provides zero cryptographic tamper evidence.

All Monitoring, Logging, and Remediation questions and the topic overview →

AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.