What can S3 do?
S3 Basics (limits)
- objects can be up to 5 TB in size*
Buckets
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
S3 Standard Use Cases
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*
- 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
Why use MFA for object deletion?
to protect objects from deleting, require 2 forms of authentication
public vs private with versioning
only the most-recent version is public - everything else is restricted, unless explicitly made public
How do you restore an S3 object that has been deleted?
deleting objects adds a ‘delete marker’ to them. to restore the object, delete the delete marker
Which S3 storage class is cost-optimized for unknown access patterns?
S3 Intelligent Tiering
Which S3 storage class costs the most?
S3 Standard