QuestionQ22

VerifiedDesign Cost-Optimized Architectures

A company must keep its AWS CloudTrail logs for 3 years. The company is enforcing CloudTrail for a group of AWS accounts by using AWS Organizations from the parent account. The CloudTrail destination S3 bucket has S3 Versioning enabled. An S3 Lifecycle policy exists to delete current objects after 3 years.

After the fourth year of using the S3 bucket, the S3 bucket metrics indicate that the number of objects has continued to increase. However, the number of newly delivered CloudTrail logs to the S3 bucket has stayed consistent.

Which solution will delete objects that are more than 3 years old in the MOST cost-effective way?

Explanation

In a versioning-enabled S3 bucket, expiring only current objects does not remove noncurrent versions, so older object versions can continue to accumulate and increase storage usage. The correct fix is to add S3 Lifecycle expiration for previous (noncurrent) versions as well as current versions. This uses native S3 lifecycle management, which is the lowest-cost and simplest way to enforce the 3-year retention period for CloudTrail logs.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!