S3 Bucket Security (nr) Flashcards

1
Q

IAM policies

S3 bucket security

A

defines API calls allowed for specific IAM principal

S3 bucket security

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

IAM policy basis

S3 bucket security

A

user or principal basis

S3 bucket security

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

resource based polices (3)

S3 bucket security

A
  • bucket policies
  • object ACL
  • bucket ACL

S3 bucket security

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

bucket policies

resource based polices

A

JSON policy applied to entire bucket

resource based polices

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

security benefit

bucket policies

A

allows access across accounts

bucket policies

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

policy JSON fields (4)

bucket policies

A
  • resource
  • effect
  • action
  • principal

bucket policies

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

public access

bucket policies

A

option to allow anyone on the Internet to access objects

bucket policies

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

public access default

bucket policies

A

blocked to prevent data leaks

bucket policies

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

object ACL

S3 bucket security

A

optional finer grain policies

S3 bucket security

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

bucket ACL

S3 bucket security

A

legacy but still valid method of access control

S3 bucket security

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

permission logic

S3 bucket security

A

IAM principal has access if IAM policy OR resource policy allows it, AND no explicit deny

S3 bucket security

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

optional security feature

S3 bucket security

A

encryption

S3 bucket security

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

Server-side Encryption (3)

S3 bucket security

A
  • SSE-S3
  • SSE-KMS
  • SSE-C

S3 bucket security

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

SSE-S3

Server-side Encryption

A

Amazon S3 manages keys

Server-side Encryption

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

Feature

SSE-S3

A

Default option for SSE

SSE-S3

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

HTTP Header

SSE-S3

A

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

SSE-S3

17
Q

SSE-KMS

Server-side Encryption

A

Customer manages keys in AWS KMS

Server-side Encryption

18
Q

Auditing option

SSE-KMS

A

May audit in CloudTrail

SSE-KMS

19
Q

HTTP Header

SSE-KMS

A

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

SSE-KMS

20
Q

Limitation

SSE-KMS

A

KMS hits count towards KMS API quota

SSE-KMS

21
Q

SSE-C

Server-side Encryption

A

customer manages and stores keys

Server-side Encryption

22
Q

Client-side encryption

S3 bucket security

A

files are encrypted and decrypted outside of S3

S3 bucket security

23
Q

Encryption in transit

S3 bucket security

A

HTTPS using SSL/TLS

S3 bucket security

24
Q

How to block HTTP access

Encryption in transit

A
  • Policy with “Deny” effect
  • condition “aws:secureTransport”:”false”

Encryption in transit

25
Q

Bucket policy for encryption

S3 Encryption

A

used to force specific encryption type

S3 Encryption

26
Q

CORS header

S3 Bucket Security

A

used to define which request originds allowed to GET from S3 bucket website

S3 Bucket Security

27
Q

when CORS is needed

CORS Header

A

must be enabled for other website to use objects in bucket

CORS Header

28
Q

what can be allowed

CORS Header

A

allow for origin domain and protocol (e.g. https)

CORS Header

29
Q

how to allow wide range of sites

CORS Header

A

wildcard (*)

CORS Header