S3 Flashcards

1
Q

How can you store multiple editions of a file?

A

Through bucket versioning.

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

What kinds of encryption do exist for s3?

A

-SSE-S3
-SSE-KMS
SSE-C

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

How does SSe-S3 work?

A

User uploads object to s3 and provides a header for enabling encryption. Key is managed by s3.

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

How does SSE-KMS work?

A

Object is encrypted by a master key managed by kms

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

How does SSE-C work?

A

Object is encrypted by a cloent provided key.

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

How can you manage file access permissions in s3?

A
  • user based with am

- resource based through access control lists

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

How does CORS work?

A
  1. The browser calls the origin url.
  2. The original content requires a foreign resource
  3. The browser sends a preflight request to the foreign server with the origin inside the header
  4. The foreign server answers with the allowed http methods for the denoted origin
  5. The browser requests the resource
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How consistent is s3?

A

strongly consistent as of december 2020

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

How can you prevent unauthorised or accidential delete of objects?

A

through multi factor authentication (mfa)

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

How can you enforce encryption of objects?

A

use bucket policy and deny any put object call without encryption header

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

How can you monitor access to an s3 bucket

A

through access logs made to another s3 bucket

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

How can you introduce fault tolerance to an s3 bucket?

A

Through async cross region or same region replication.

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

You want a premium user to download a file from your bucket. How can you temporarily grant them access to the object?

A

Through presigned urls.

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

What storage classes are available in s3?

A
  • Standard General Purpose (11 9 durability, 99.99 availability)
  • Standard Infrequent access (9 9 durability, 99.9 availability)
  • One Zone Infrequent access (data only in one az, 99.5 availability, 9 9 durability)
  • Intelligent tiering (9 9 durability 99.99 availability, moves data between general and infrequent automatically, is multi az)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How can you move objects automatically between s3 classes?

A

Through lifecycle rules.

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

How can you determine time periods for lifecycle rules?

A

Through storage class analysis

17
Q

How can you react to events in s3?

A

By publishing notifications on events in s3 (read, write, update, …)

18
Q

How can you perform analysis on data in s3 directly?

A

using athena

19
Q

How can you prevent object changes for compliance reasons?

A

By enabling object lock in compliance mode (a protected object version can’t be overwritten or deleted by any user, including the root user in your AWS account. When an object is locked in compliance mode, its retention mode can’t be changed, and its retention period can’t be shortened)