when we delete an object and a delete marker is placed on that object. Do AWS Still Charge for those objects?
I don’t believe you pay for the delete marker as that effectively just ‘hides’ the objects. You will pay for each version of an object though whether it has a delete marker on it or not. So if you have a 5GB object that has 10 versions (let’s assume the size doesn’t change) and then has a delete marker on it, you are paying for 10x 5GB.
Q: How am I charged for using Versioning?
Normal Amazon S3 rates apply for every version of an object stored or requested. For example, let’s look at the following scenario to illustrate storage costs when utilizing Versioning (let’s assume the current month is 31 days long):
1) Day 1 of the month: You perform a PUT of 4 GB (4,294,967,296 bytes) on your bucket.
2) Day 16 of the month: You perform a PUT of 5 GB (5,368,709,120 bytes) within the same bucket using the same key as the original PUT on Day 1.
When analyzing the storage costs of the above operations, please note that the 4 GB object from Day 1 is not deleted from the bucket when the 5 GB object is written on Day 15. Instead, the 4 GB object is preserved as an older version and the 5 GB object becomes the most recently written version of the object within your bucket.