S3 - Simple Storage Service Flashcards
What is S3?
A place to store your files.
- Object based storage
- File size can range from 0 bytes to 5TB
- Unlimited Storage
- Buckets
Not sutable to install OS on
Newly created buckets are private but you can set up acces control via
- Bucket Policies
- Access Control Lists
Do S3 bucket names have to be unique?
Yes. Universally namespace because you’re making a web address. ex: https://britzer.s3.amazon……
S3 Objects Look like:
- Key
- Value
- Version ID
- Metadata
- Subresources
- Access Control Lists
- Torrent
200 HTTP status Code for successful upload
How does data consistency work for S3?
- Read after Write consistency for PUTS -> Immediate access to whatever was uploaded
- Eventual consistency for overwrite PUTS or DELETES -> takes time
S3 Guarantee for lost data
99.99% or 11x9s
S3 Features
- Tiered Storage ****
- Lifecycle Management - Lifecycle Policies
- Automates moving your objects between different storage tiers
- used with versioning
- current/previous versions
- Versioning
- Encryption
- MFA Delete
- Secure Data via Access Control Lists & Bucket Policies
S3 Storage Classes/Tiers
- S3 Standard
- 99.99% avaliable
- 99.9999999999% durable (11 9’s )
- S3 - IA (Infriquently Accessed)
- For data that is accessed less frequently but requires rapid access when needed
- Lower fee than Standard but with a retrieval fee
- S3 - One Zone - IA
- Lower cost
- Lower avaliablility zones
- S3 - Intalligent Tiering
- Optimizes costs by automatically moving data to the most cost effective teir.
- S3 - Glacier
- Low cost
- retrieval times are configureable from mins/hrs
- S3 - Glacier Deep Archive
- Lowest cost
- 12 hour retrieval time
How are you charged for S3?
- Storage
- Num Requests
- Store Management Pricing
- Data Transfer
- Transfer Accel
- Cross region replication
S3 Costs
S3 - Encryption
You can encyrpt at the object level or bucket level.
- In Transit
- HTTPS - SSL
- At Rest
- Encript data being store
- Server Side
- S3 Managed Key - Amazon Managed - SSE-S3
- AWS Key Management Service (SSE-KMS)
- SSE with Customer Provided Key (SSE-C)
- Client Side
- Encript then upload yourself
S3 Versioning
Stores all versions of an object
Once enabled can’t be disabled
Versioning has MFA to delete capability
S3 Lifecycle Management
- Automates moving objects between different storage tiers
- Can be used in conjunction with versioning
- Can be applied to both current and previous versions
S3 Object Lock/Glacier Lock
Governance Mode - Can’t change with special permissions - S3
Compliance mode - Can’t alter even root user for a specific retention period for a specific version -S3
S3 Object lock && Glacier Vault lock=== WORM (write once read many)
S3 Performance
S3 Prefix
mybucketname/folder1/subfolder/myfile.jpg
More prefixs better performance
Multipart uploads
Byte-range fetches -> splitting downloads
S3 Select / Glacier Select
Enables application to retrieve a subset of data using simple SQL expressions.
400% performance increase. Save money