S3 Flashcards

1
Q

What are some use cases of S3

A

Backup and storage, disaster recovering, archive, app hosting, media hosting, data lakes / data analytics, software delivery, static websites

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What four ways can a S3 bucket / object be secured?

A

IAM policies, Bucket policies (newer, allows cross account), object ACL (finer grain), bucket ACL (less common)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How would you grant access to an S3 bucket from an EC2 instance?

A

Use an IAM role attached to the EC2 instance, which has IAM permissions for the bucket

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the two types of S3 replication?

A

Cross region replication & Same region replication

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the 7 S3 storage classes?

A

Standard (general purpose), Standard Infrequent Access, One-Zone Infrequent Access, Glacier instant revival, Glacier flexible retrieval, Glacier deep archive, Intelligent Tiering

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the difference between durability and availability in terms of S3?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the standard general purpose S3 storage class?

A

99.99% availability, used for frequently accessed data, low latency and high throughput. Use cases: big data analytics, mobile and gaming apps, content distribution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the infrequent access S3 storage class?

A

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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the Glacier S3 storage class?

A

Low cost object storage meant for archiving / backup. Priced by storage + object retrieval cost.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which of the following is NOT a Glacier Deep Archive retrieval mode? Standard (12hrs), Expedited (1-5 mins), Bulk (48hrs).

A

Expedited (1-5 mins)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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)

A

Instant (10 seconds)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

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

A

The IAM user must have an explicit deny in the policy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the three S3 event notification targets?

A

SNS, SQS and Lambda functions. You can also use EventBridge to target many other services.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

S3 can achieve at least 3500 put,copy,post,delete requests per second per prefix in a bucket, but what is a prefix?

A

The part of the path from the bucket to the file, for example my-bucket/one/two/file.txt - the prefix is one/two

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are three performance considerations when using S3?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is S3 Select?

A

Ability to query and filter files server side within AWS to find a file in S3 without having to request and return unwanted files

17
Q

Explain what user defined object metadata and object tags are and their differences

A

They are both key value pairs stored against an object. Tags can be used for fine grain permissions and S3 Analytics. They both cannot be used to search for objects.

18
Q

How can you search for objects in S3?

A

Build a separate database / index to store object metadata and a reference to the objects in S3

19
Q

What four ways can S3 objects be encrypted?

A

Server side with amazon managed keys, Server side using KMS (key management service), Server side using customer provided keys, Client side encryption

20
Q

What limitations are there for using KMS for S3 encryption?

A

KMS rate limits

21
Q

How would you ensure that an S3 bucket can be accessed over HTTPS only?

A

Use a bucket policy to deny access when the condition aws:secureTransport is false

22
Q

What are S3 Access Points?

A

A prefix for a particular set of users or use cases, used with access point policies. Each access point has its own DNS name

23
Q

How would you set up access to an S3 access point from a private VPC?

A

Create a VPC Endpoint in your VPC with a policy allowing traffic to the S3 Access Point

24
Q

What are S3 Object Lambdas?

A

Lambda function to change an S3 object before it is retrieved by a caller application. The caller uses an object lambda access point. Use cases include redacting data, converting data formats, resizing files etc

25
Q

Which S3 encryption method mandates that you use HTTPS while uploading and downloading objects? SSE-C, SSE-S3, SSE-KMS or client-side?

A

SSE-C (customer managed keys)

26
Q
A