volume_mute

If S3 provide flat structure to host objects, then how do we structure objects as urls with paths?

publish date2024/08/07 03:10:10.270839 UTC

volume_mute
S3 do support the concept of buckets and sub-buckets
By using key names prefixes and delimiters, you can imply a logical hierarchy
There is no hierarchy what so ever wither its through buckets or name prefixes and delimiters

Correct Answer

By using key names prefixes and delimiters, you can imply a logical hierarchy

Explanation

The Amazon S3 console does support the concept of folders. By using key name prefixes and delimiters, you can imply a logical hierarchy.  

For example, suppose your bucket called testbucket has two objects with the following object keys: 2022-03-01/AmazonS3.html and 2022-03-01/Cats.jpg. The console uses the key name prefix, 2022-03-01, and delimiter (/) to present a folder structure.

Reference

AWS Skills Builder


Quizzes you can take where this question appears