Objects Flashcards
Can you disable objects version on a version enabled bucket?
No it cannot be disabled but can be suspended which will stop creating new versions
How do you clean up older version of objects in a versioning suspended bucket
Manually issue delete requests for the versions
Can you cleanup older object versions that are created in the past with a lifecycle policy that is created today?
No lifecycle policy is non-retroactive meaning it will work on objects that expire from the day the policy created, it will not touch older object versions.
You have bucket with versioning enabled in the past, today you are suspending the versioning on the bucket and applying a lifecycle policy to delete older versions of the objects in the bucket will this work and what will happen
The rule of lifecycle policies is it will only apply to object versions created from the moment it was applied, since you have suspended the versioning it will not create any more new versions which will render the lifecycle policy useless
You have a version enabled bucket and object named photo.jpg, you are issuing a DELETE request for photo.jpg without any version specified. What will happen to the delete request and what will happen to a GET request issued for the object after the DELETE request
Since no version is explicitly specified we insert a delete marker which is a metadata only update. The GET request will return 404 since a delete marker is present.
You have a version enabled bucket and you want to delete an object named photo.jpeg with version no. 10 what should you do? will the object be deleted or a delete marker will be added
Issue a delete call with version id set to 10 and the name of the file. Since we mentioned a particular version in the delete request it will delete the version instead of adding delete marker.
Why would logical capacity (Prism Central Objects page) show high usage but when you look at the bucket capacity it shows much lower
Maybe there’s an application that is using multipart uploads primarily. Multiparts, until finalised, are part of the logical space usage but are not shown in the used bucket capacity tab.
There can also be the case of fast copy, as in object is copied, we don’t copy it on the disk but it counts towards the logical space usage.
How to quickly identify if multipart uploads are causing too much logical usage on the buckets
Check the object count in Prism Central Objects UI page and then go to the buckets page and calculate objects in each bucket the difference is due to multipart upload
How to bulk delete objects in batches
Use aws s3 delete-objects api to bulk delete 1000 objects at a time
what are the 2 types of lock in objects
Retention and Legal hold
What are two types of retention mode
Governance and compliance
What is governance retention mode
In this mode lock settings and expiry date can be modified after it is set by allowing certain users to change it or even delete the object
what is compliance retention mode
In this mode lock settings and expiry date cannot be modified even with owner/root user after it is set and also object cannot be modified.
Can you set legal hold and retention mode at the same time
yes both can be set
If an object with retention mode set has retention mode expired but legal hold is still on can the object be deleted
No until legal hold is on object is protected from deletion