S3 6 Flashcards

1
Q

Encryption: theory

What are the two types of keys used in S3 object encryption?

A

Data Encryption Keys (DEKs) and Key Encryption Keys or master keys

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

Encryption: theory

What is a DEK?

A

Per-object key created by a Key Encryption Key

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

Encryption: theory

Informal name for a Key Encryption Key, noting its use?

A

“Wrapping key”

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

Encryption: theory

What’s the informal name for using a two-stage key set up for encryption?

A

“Envelope encryption”

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

Encryption: SSE

How do you encrypt a bucket?

A

Technically can’t. Objects are encrypted, not buckets.

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

Encryption: SSE

What are three types of server-side encryption?

A

SSE-S3, SSE-C, SSE-KMS

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

Encryption: SSE

What is bucket default encryption?

A

Set on whole bucket. If PutObject isn’t explicit, this is the type of encryption used.

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

Encryption: SSE

How do you force a certain level of encryption across a whole bucket?

A

Can’t, but can set conditions on s3:PutObject in Policies

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

Encryption: SSE-S3

How does SSE-S3 work?

A

S3 creates and manages the keys, not visible to users at all.

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

Encryption: SSE-S3

Specific sequence for SSE-S3 PutObject?

A

S3 creates symkey, encrypts obj. S3 master key encrypts object-specific key, stores with object, tosses original key.

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

Encryption: SSE-S3

Specific sequence for SSE-S3 GetObject?

A

Get encrypted object key, unencrypt with S3 master key, use object key to unencrypt object.

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

Encryption: SSE-S3

What type of key + cipher does SSE-S3 use?

A

AES-256 symmetric, block-cipher key

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

Encryption: SSE-KMS

How does SSE-KMS work?

A

Similar to SSE-S3 sequence, but KMS holds onto the root key

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

Encryption: SSE-KMS

What specifically does KMS send back when S3 asks for an object key during PutObject?

A

New unencrypted object key + encrypted version of same key

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

Encryption: SSE-KMS

What does S3 do with the un- and encrypted keys sent from KMS for PutObject?

A

Encrypt obj with unencrypted key, toss it, store encrypted obj and encrypted key.

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

Encryption: SSE-KMS

What does S3 send and get back from KMS on GetObject?

A

Send encrypted object key, get unencrypted object key (uses KMS key to decrypt it)

17
Q

Encryption: SSE-KMS

Can you use customer-uploaded keys in KMS for SSE-KMS?

A

Yes

18
Q

Encryption: SSE-KMS

What’s the down-side of custom KMS keys for SSE-KMS?

A

You manage the key rotation and re-encryption of S3 objects with previous KMS key

19
Q

Encryption: SSE-KMS

How do you handle key rotation and object re-encryption with AWS-managed SSE-KMS?

A

You don’t, all of this is automatic and done for you.

20
Q

Encryption: SSE-KMS

What are S3 Bucket Keys?

A

Keys created by KMS, stored unencrypted with the bucket

21
Q

Encryption: SSE-KMS

Can you use S3 Bucket Keys with KMS?

A

Yes, that’s literally what it’s designed for

22
Q

Encryption: SSE-KMS

Can you use S3 Bucket Keys with SSE-S3?

A

No, KMS unused for all SSE-S3 operations

23
Q

Encryption: SSE-KMS

Advantage of using S3 Bucket Keys?

A

Save money

24
Q

Encryption: SSE-KMS

What happens with S3 Bucket Keys on PutObject?

A

S3 Bucket key used to create object key and encrypted object key, same as with SSE-KMS

25
Q

Encryption: SSE-KMS

What happens with S3 Bucket Keys on GetObject?

A

Encrypted object key decrypted with S3 Bucket key, unencrypted obj key decrypts object

26
Q

Encryption: SSE-KMS

What kinds of KMS keys are automatically tracked and audited with CloudTrail?

A

All of them: AWS-managed and customer managed keys.