I want to read random objects from a bucket . i do not want to store keys and pick with randomly a key and get the object because i think it is an expensive operation . thanks
S3 cannot "randomly" pick objects for you to read.
In order to read data for an object, you must know it's key.
In order to know it's key, you must do one of the following:
You initially rejected the storage of keys because you think the operation is expensive. However, based on the possible solutions, it's probably the least expensive.