S3 Flashcards
AWS Bucket
Container for objects
Store unlimited number of objects in bucket
S3 key, S3 value
Name of the file
Binary of file
URL Pattern to access objects in bucket
https://[bucket].s3.[aws-region].amazonaws.com/[key]
https://s3.[aws-region].amazonaws.com/[bucket]/[key]
What does an S3 object consist of?
Key
Value
Version ID
Metadata
Sub resources?
Access control information
S3 Gateway Endpoint
Ec2 instances connecting to S3 using private addresses
Used for private subnet EC2s that want to communicate with S3
File Storage vs Object Storage
File Share
-data stored in directories
-can have heirarchy of directories
-file systems are mounted to OS (drive name in Windows)
-functions like local storage
-network connection is maintained; don’t need to remount
Object Store
-data stored in buckets
-flat namespace, no heirarchy
-hierarchy can be mimiced with prefixes (e.g. prefix in the object key name)
-accessed via REST API
-network connection reset with each request/complete after each request
Durability
S3 Durability offers how many 9’s
Protection against data loss and data corruption
11 9’s 99.999999999
Availability
S3 Availability offers how many 9’s
a measurement of the amount of time the data is available to you
expressed as percentage of time per year
4 9’s, 99.99%
What are the S3 storage classes and where are they set?
Standard
S3 Intelligent Tiering
Standard IA
One Zone IA
Glacier Instant Retrieval
Glacier Flexible Retrieval
Glacier Deep Archive
Storage class applies to objects
What storage class doesn’t offers a different number of 9’s?
One Zone-IA offers 99.5% availability,
S3 Intelligent Tiering, Standard IA, Glacier Instant Retrieval offers 99.9%
while all others offer 4 9’s
Which storage class has retrieval fees?
How is the retrieval fee measured?
Standard IA
One Zone IA
Glacier Instant Retrieval
Glacier Flexible Retrieval
Glacier Deep Archive
Per GB retrieved
Which storage classes have a minimum storage duration charge?
What is the minimum for each?
Standard IA - 30 days
One Zone IA - 30 days
Glacier Instant Retrieval - 90 days
Glacier Flexible Retrieval - 90 days
Glacier Deep Archive - 180 days
Which storage classes has a minimum capacity charge per object?
What is the minimum for each?
Standard IA - 128KB
One Zone IA - 128KB
Glacier Instant Retrieval - 128KB
Glacier Flexible Retrieval - 40KB
Glacier Deep Archive - 40KB
How many AZ’s is the data replicated in for each storage class?
All 3 AZ’s except for One Zone IA which is only one AZ
What is the Availability SLA for each storage class?
Standard - 99.9%
S3 Intelligent Tiering - 99%
Standard IA- 99%
One Zone IA- 99%
Glacier Instant Retrieval- 99%
Glacier Flexible Retrieval - 99.9%
Glacier Deep Archive - 99.9%
S3 Standard Storage class
Default storage class
for general purpose storage of frequently accessed data.
S3 Intelligent Tiering Storage class
Automatically move data between different storage classes based on how you are using data for cost and performance
the only storage class that delivers automatic storage cost savings when data access patterns change, without performance impact or operational overhead.
Data with unknown or changing access patterns. Milliseconds to access
an additional storage class that provides flexibility for data with unknown or changing
access patterns. It automates the movement of your objects between storage classes to optimize cost.
Standard IA Storage class
For infrequently accessed data, lower cost for data storage but fee for data retrieval and minimum storage duration and capacity charge
Milliseconds to
access
One Zone IA Storage class
For infrequently accessed data only stored in one AZ
Milliseconds to
access
Glacier Instant Retrieval Storage class
Storage class with the best access to access archival data;
Milliseconds to restore/access
Glacier Flexible Retrieval Storage class
Lesser need to access archival data;
access data within minutes to hours (not seconds), lowest minimum capacity charge per object where this applies
12 hours or less to restore
Glacier Deep Archive Storage class
Don’t need to access archival data
access data within hours (not seconds or minutes) and longest minimum storage
12 hours or less to restore
Amazon Glacier Storage classes
used for archival data so you can store at a much lower costs for longer time
Bucket Policy
resource based policies, only attached to S3 buckets
resource specifies bucket
principal specifies user, group, or role
Action is an S3 action
S3 ACL
Access Control List
Legacy access control mechanism that predates IAM
AWS recommends using S3 bucket policies or IAM policies rather than ACLs
ACLs can be attached to the bucket or an object
Limited options for grantees and permissions