S3 Flashcards
What are some use cases of S3
Backup and storage, disaster recovering, archive, app hosting, media hosting, data lakes / data analytics, software delivery, static websites
What four ways can a S3 bucket / object be secured?
IAM policies, Bucket policies (newer, allows cross account), object ACL (finer grain), bucket ACL (less common)
How would you grant access to an S3 bucket from an EC2 instance?
Use an IAM role attached to the EC2 instance, which has IAM permissions for the bucket
What are the two types of S3 replication?
Cross region replication & Same region replication
What are the 7 S3 storage classes?
Standard (general purpose), Standard Infrequent Access, One-Zone Infrequent Access, Glacier instant revival, Glacier flexible retrieval, Glacier deep archive, Intelligent Tiering
What is the difference between durability and availability in terms of S3?
Durability - to what extent can objects be lost in S3 (99.9x%) same for all storage classes. Availability - to what extent a service is available, varies depending on storage class
What is the standard general purpose S3 storage class?
99.99% availability, used for frequently accessed data, low latency and high throughput. Use cases: big data analytics, mobile and gaming apps, content distribution
What is the infrequent access S3 storage class?
For data that is less frequently accessed but requires rapid access when needed. Lower cost than standard. There are two types, standard infrequent access (e.g. disaster recovery backups) and one-zone infrequent access (e.g. secondary backup copies of data)
What is the Glacier S3 storage class?
Low cost object storage meant for archiving / backup. Priced by storage + object retrieval cost.
Which of the following is NOT a Glacier Deep Archive retrieval mode? Standard (12hrs), Expedited (1-5 mins), Bulk (48hrs).
Expedited (1-5 mins)
Which of the following is NOT a Glacier Flexible retrieval mode? Expedited (1-5 mins), Standard (3-5 hrs), Bulk (5-12 hrs), Instant (10 seconds)
Instant (10 seconds)
You have updated an S3 bucket policy to allow IAM users to read/write files in the S3 bucket, but one of the users complain that he can’t perform a PutObject API call. What is a possible cause for this? Bucket Policy is wrong, user is lacking permissions, IAM user must have an explicit deny in the policy
The IAM user must have an explicit deny in the policy
What are the three S3 event notification targets?
SNS, SQS and Lambda functions. You can also use EventBridge to target many other services.
S3 can achieve at least 3500 put,copy,post,delete requests per second per prefix in a bucket, but what is a prefix?
The part of the path from the bucket to the file, for example my-bucket/one/two/file.txt - the prefix is one/two
What are three performance considerations when using S3?
Multi-part upload (recommended for files larger than 100MB and compulsory for more than 5GB). Transfer Acceleration (using an AWS edge location to maximise the speed of the private AWS network). Byte range fetching - downloading a specified range of bytes