S3 Flashcards
What is S3?
- Simple Storage Solution
- Buckets store objects
- objects contains key : value pairs
- No object can live outside of a bucket
- Flat File System
What is the storage capacity of S3?
unlimited storage
What is the object size range in S3 (smallest possible to largest possible)?
0 bytes to 5TB
What is the durability of S3?
Data is stored across 3 AZs to ensure 11-9’s of durability
Describe the naming structure of a bucket
- Bucket names are global and must be unique across a partition (a grouping of regions).
- Names must be between 3-63 characters long.
- Names can only contain upper or lowercase, numbers, dots(.) or hyphens(-).
- Names must begin and end with a letter or a number.
- Names cannot be formatted like an IP address.
- Names can not begin with xn–
Describe the data consistency model for S3.
- Read after write consistent for New PUTS (posts)
- Eventually consistent for overwrite puts.
- Eventually consistent for DELETES
What operations can you perform on an object?
- PUT,
- GET,
- DELETE (RM),
- LIST
What is Versioning?
- Objects are given a version ID
- When new objects are uploaded the old objects are kept.
- You can access any object version.
- When you delete an object that is versioned then the previous version is restored.
Are buckets versioned by default?
- No. Versioning must be enabled, and can be enabled at anytime.
- Once turned on it can only be suspended.
T/F - All new buckets are private by default
True
What are bucket policies?
A resource based policy JSON documents that control access Grants other AWS accounts or IAM users access permissions for the bucket and objects in it.
Access Control Lists
- Legacy permissions control. Still used though.
- Grants access to objects and buckets with simple actions.
What is Cross Region Replication (CRR)?
- Allows files to be replicated across regions for greater durability.
- Versioning must be enabled.
Cross Region Replication - What gets replicated?
- Any new objects added after CRR is enabled.
- Object Metadata Tags Encryption (only SSE-KMS & SSE S3)(if source file is encrypted)
Cross Region Replication - What is NOT replicated?
- Objects that existed in source bucket before CRR was enabled.
- Objects encrypted with SSE-C
- Source objects that the bucket owner does not have read permissions on.
- Updates to bucket level sub resources (i.e changes to lifecycle configuration)
- Objects in the source bucket that are there as a result of replication from another bucket.
How do delete operations work on files that are Cross Region Replication?
- For delete WITHOUT version ID, S3 will add a delete marker which CRR DOES replicate.
- For delete with WITH a version ID (source) the source object is deleted but the destination object in NOT deleted.
What is transfer acceleration?
- provides faster and secure uploads from anywhere in the world.
- Data is uploaded to an Edge location, then that data is transported to your S3 bucket via AWS backbone network.
What is a presigned URL?
- A URL generated via the AWS CLI and SDK. Provides temporary access to write or download object data.
- Users given a pre-signed URL inherit the permissions of the person who generated the URL for GET / PUT.
- Pre-signed Urls are commonly used to access private objects.
Name the (6) S3 storage classes
- Standard
- Intelligent Tiering
- Standard Infrequent Access (IA)
- One Zone IA
- Glacier
- Glacier Deep Archive
S3 Standard
- Fast.
- 11-9’s of durability 99.99% availability
- replicated across at least 3 AZs
S3 Intelligent Tiering
- Uses machine learning to analyze your object usage and determines the appropriate storage class.
- Data is moved to the most cost effective class w/o any performance impact or added overhead.
Standard IA
- Cheaper then standard (50%).
- reduced availability.
- Good if file is accessed only once a month or less.
- Additional retrieval fee applied.
One Zone IA
- Objects only exist in 1 AZ -> Data could get destroyed
- Availability = 99.95%
- Cheaper then Standard IA (20%)
- Retrieval fee applied
Glacier
- Long term cold storage
- Retrieval can take minutes to hours