Design Cost-Optimized Architectures

An unversioned S3 bucket has a Lifecycle rule expiring all objects after 90 days; newly tagged audit objects must instead remain for seven years, while other objects must still expire after 90 days. An administrator adds a seven-year expiration rule filtered by the audit tag, but audit objects still expire early; what should change?

Show the answer

Correct answerB. Replace the all-object expiration rule with a rule filtered to explicitly tagged non-audit objects.

AWhy not this: A longer expiration does not override an overlapping rule that expires the object sooner.

BWhy this is right: Mutually exclusive tag filters prevent the 90-day expiration rule from applying to audit objects.

CWhy not this: A storage-class transition does not exempt an object from an applicable expiration rule.

DWhy not this: Lifecycle rules have no priority based on their order in the configuration.

Overlapping expiration rules do not create exceptions: the earlier expiration applies. Filter the 90-day rule to non-audit objects so audit objects match only their seven-year expiration; transitioning objects to an archive class does not prevent expiration.