Explore the essentials of S3 bucket lifecycle rules and versioning with this focused quiz. Understand how to manage object transitions, expiration, version deletion, and key settings for effective storage optimization and data protection.
Which option best describes when a lifecycle rule applies to an object in a storage bucket?
Explanation: Lifecycle rules act based on filters or prefixes set for objects. If an object’s key matches this filter, the rule will apply. Manual uploads do not directly affect rule application. Reads and object size are not criteria for applying lifecycle rules.
What is the primary effect of enabling versioning on a bucket?
Explanation: Enabling versioning allows storing and managing several versions of the same object. It does not trigger automatic archiving nor require global uniqueness for object names. Access controls are not changed by enabling versioning.
If a lifecycle rule specifies 'expire noncurrent versions after 30 days,' what happens to these versions?
Explanation: Noncurrent version expiration rules remove older object versions after they have been noncurrent for the specified period. The current version is not removed, and transitions are a separate lifecycle action. Deletion does not depend on object size.
Which lifecycle policy action moves objects to a different storage class after a specific number of days?
Explanation: A transition action automatically moves objects to another storage class based on the conditions set. Retention refers to keeping objects unchanged, replication copies objects elsewhere, and restoration is about restoring objects from archive.
What does deleting a delete marker in a versioned bucket do?
Explanation: Deleting a delete marker exposes the previous object version, making it accessible as the current version. All versions are not removed, and versioning status remains unchanged. Transitioning objects to cold storage is unrelated to delete markers.
If no prefix or filter is set in a lifecycle rule, to which objects does the rule apply?
Explanation: A rule without filters or prefixes applies to every object in the bucket by default. Tag-based or recency-based targeting requires explicit configuration. With no filter, the scope is the entire bucket, not a subset.
After uploading a new version of an object in a versioned bucket, what is the status of the previous version?
Explanation: Uploading a new version creates a noncurrent (previous) version in the bucket. Versions are not automatically deleted or moved. Changing to a public object does not result from versioning actions.
A lifecycle rule transitions objects to an archive class after 60 days. Which scenario best fits this rule?
Explanation: Objects that remain unmodified for the specified time can be transitioned to archive class via a lifecycle rule. The rule is about age, not size, and does not delete or depend on object encryption.
What happens if versioning on a bucket is suspended after being enabled?
Explanation: When versioning is suspended, new objects no longer receive unique version IDs, but all prior versions are retained. Suspension does not remove versions, prevent uploads, or impact object permissions.
Which lifecycle configuration removes an object after a fixed period, such as 365 days?
Explanation: The expiration action in a lifecycle rule deletes objects after they reach the age set in the policy. Replication copies objects, transition moves them to other classes, and retention prevents deletion.