S3 Flashcards
Revise S3
What is object storage ?
manages data as objects as opposed to file storage or block storage
S3 objects consist of ?
Key, Value, Version ID, Metadata
Universal namespace meaning ?
Each bucket name should have unique name much like domain name. Also DNS complaint.
S3 file size limit ?
0B to 5TB
Durability of object means ? What is the durability of S3 object ?
Chances of the object being intact. 11 9’s durability i.e. 99.99999999999
Storage Classes of S3 and how they differ ?
Standard (99.99% avail, Replicated across 3 zones),
Standard IA (cheaper if access less than once per month, retrieval fee, min days - 30)
One Zone IA (Avail 99.5%, 20% cheaper, durability reduced, min days - 30)
Glacier (long term storage, min days - 90)
Glacier deep archive (12 hrs retrieval, min days - 180)
Intelligent tiering (uses ML to decide lifecycle)
By default what is the security measures ?
All buckets are private
Logging of bucket request ?
Can be enabled, log files are generated in different bucket and can be saved to different bucket in different account as well
Access Control Lists vs Bucket Policies ?
ACL are legacy but convenient to use. For complex rules bucket policies are required.
Encryption in S3 transit provided by ?
SSL/TLS
At rest encryption in S3 ?
Server side encryption possible.
- SSE - AES - S3 handles the keys, AES-256 architecture used
- SSE - KMS - envelope encryption, you manage the keys that in turn encrypts the keys used by AWS
- SSE - C - client keys used
S3 new object PUT consistency ?
Read After Write consistency. You can immediately read after uploading to S3
S3 overwrite / delete consistency ?
Eventual consistency provided. It takes time for S3 to replicate versions in different AZs so might take few seconds.
S3 CRR ?
Cross region replica allows to store in different regions for higher durability in case of potential disasters. Both buckets should have versioning on. Can be in different accounts.
S3 versioning ? Disabled ? Lifecycle rules ? Deletion
Stores all versions of the object.
- Cannot be disabled once enabled. Only suspended.
- Fully integrates with lifecycle rules
- Simply deleting an object would insert a delete marker and S3 will return 404 on seeing it. To actually delete you need to specify version as well while deleting.