S3 Flashcards

1
Q

What is an object in S3?

A

It is a file

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

What is a bucket in S3?

A

It is a directory

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

What are 2 things to remember when creating a new bucket?

A
  • You must choose a globally unique name

- Buckets are defined at the region level

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

What are 4 restrictions when choosing a bucket name?

A
  • No uppercase
  • No underscore
  • 3-63 chars long
  • Not an IP
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Are the really directories in S3?

A

No, the UI looks like it but there are only buckets and objects?

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

How do we access Objects?

A

We use the Key

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

What is the Object Key?

A

It is the full path after the bucket name

Example: s3://mybucket/

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

What is the max size of an object?

A

The max size is 5TB

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

What is the largest size that can be uploaded at once?

A

5GB

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

How do I upload a 5TB object if the max to upload in one time is 5GB?

A

Use Multi-part upload

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

Can I version my files in S3?

A

Yes

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

How do I enable versioning?

A

Versioning is enabled at the bucket level

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

Using versioning, what if I upload a new file using the same key?

A

It will not overwrite, it will create a new version of the file

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

What are the 4 methods of encryption for S3?

A
  • SSE-S3: encrypts objects using keys managed by AWS
  • SSE-KMS: uses AWS Key Management Service to manage encryption keys
  • SSE-C: manage your own encryption keys
  • Client Side encryption
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How does SSE-S3 work?

A

Uses AWS keys to encrypt objects server side and uses the AES-256 encryption type

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

What header must you set for SSE-S3?

A

“x-amz-server-side-encryption”: “AE256”

17
Q

How does SSE-KMS work?

A

Uses AWS Key Management Service keys to encrypt objects server side

18
Q

What are 2 advantages of using SSE-KMS?

A
  • User control

- Audit Trail

19
Q

What header must you set for SSE-KMS?

A

“x-amz-server-side-encryption”: “aws:kms”

20
Q

How does SSE-C work?

A

Uses encryption keys fully managed by the user to encrypt server side

21
Q

Does S3 store my encryption key when using SSE-C?

A

No. The encryption key must be provided in the headers for every request

22
Q

Can I use HTTP or HTTPS with SSE-C?

A

You must use HTTPS

23
Q

How does Client Side Encryption work?

A

Client must handle the keys and encryption/decryption cycle themselves

24
Q

Are there any helpful libraries to use with Client Side Encryption?

A

Amazon S3 Encryption Client

25
Q

What is Encryption in flight known as?

A

SSL/TLS

26
Q

What are 2 options for S3 security?

A
  • User based IAM policies

- Resource based bucket policies and ACLs

27
Q

What are 2 conditions that allow a principal to access an s3 object?

A
  • The users IAM permissions allow it or the resource policy allows it
  • And there is no explicit DENY
28
Q

What does an S3 website url look like?

A

bucketName.s3-website-us-east-1.amazonaws.com

29
Q

What should I do if my S3 static website returns 403?

A

Make sure the bucket policy allows public reads

30
Q

What is CORS?

A

Cross Origin Resource Sharing

31
Q

What is an origin?

A

It is a protocol, domain and port

32
Q

How can I resolve CORs issues?

A

The requests will be fulfilled when the origin allows it by setting the COORs headers.

33
Q

What are the CORs headers?

A

Access-Control-Allow-Origin

34
Q

What is the consistency model in S3?

A

It is now Strongly consistent