S3 Flashcards
What can S3 do?
- upload any file type
ex: photos, videos, code, documents - CANNOT run an OS or database
S3 Basics (limits)
- unlimited storage (total volume)*
- objects can be up to 5 TB in size*
Buckets
- must have a universal namespace (be globally unique)
S3 URLs*
https: //bucket-name.s3.region.amazonaws.com/key-name
https: // + bucket name + .s3 + .region + /filename
Successful CLI or API uploads
Return a 200 http code
S3 key-value store
key: the name of the object (ex: beach.jpg)
value: the data itself (sequency of bytes) *
Version ID: for storing multiple versions*
Metadata: data about the data (content-type, last-modified, etc.)
S3 Availability
99.95 - 99.99% service availability
S3 Durability
99.999999999% durability
S3 Standard
- Stored in >= 3 AZs
- 99.99% availability
- 11 9’s durability
- for frequent access
S3 Standard Use Cases
- websites
- gaming apps
- big data analytics
- content distribution
Ways to secure S3 data
1) server-side encryption
2) access control lists (ACLs): can attach to a bucket or individual objects
3) bucket policies
Bucket Policy
JSON policies that apply to the bucket as a whole (& bucket contents)
S3 Consistency Model: Strong-Read-After-Write *
after a successful write of a new object or overwrite of an existing object, any subsequent request immediately receives the latest version.
- you can immediately perform a List to get all objects in a bucket with all changes reflected
Object ACL
applies to individual objects
Bucket details*
- S3 is a global view, but buckets are regional
- by default buckets and objects are private until you unblock access to them*
What are the use cases of S3 static websites?
For webpages that don’t require a database connection
- pages can also contain client-side scripts
Benefits of S3 static website?
Scales automatically to meet demand
ex: a movie trailer website. Many enterprises put static sites on S3 when there will be a lot of demand
How to make an S3 website public?*
Using a bucket policy*
S3 versioning
- all versions are stored, even if you delete an object*
- cannot be disabled once enabled, only suspended*
- can be integrated with lifecycle rules
- Supports MFA*