KMS 3 Flashcards

1
Q

Cross-Account, Cross-Region

Is KMS regional, zonal, global, or something else?

A

Regional (but you can do some cross-region things)

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

Cross-Account, Cross-Region

How would you export a KMS key to move it to another region?

A

Can’t. Key material is locked away in a single region.

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

Cross-Account, Cross-Region

Can you use a KMS key across accounts?

A

Not with AWS Managed keys, yes with Customer Managed Keys

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

Cross-Account, Cross-Region

Can you use KMS keys in multiple regions?

A

Yes, Multi-Region Keys or make a cross-region API call

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

Cross-Account, Cross-Region

What is identical across all keys that are part of a Multi-Region Key?

A

ID and key material (encrypt and decrypt anywhere)

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

Cross-Account, Cross-Region

What is different across all keys that are part of a Multi-Region Key?

A

Key policies (permissions)

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

Cross-Account, Cross-Region

Can an AWS-Managed Key be multi-region?

A

Never

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

Cross-Account, Cross-Region

Can a CMK be multi-region?

A

Yes

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

Cross-Account, Cross-Region

How does S3 (for example) use Multi-Region Keys for cross-region replication?

A

It doesn’t. It decrypts and re-encrypts objects in the target region with region-specific KMS keys

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

Cross-Account, Cross-Region

How do you create a key in a new region and add it to a multi-region key?

A

Can’t: Multi-region keys set up when you create the key, replicated elsewhere.

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

Cross-Account, Cross-Region

Help! A field was encrypted with a CMK in us-east-1, but I’m in us-west-1. What do I do?

A

Make a call from us-west-1 to us-east-1 and ask KMS to decrypt it. Just cross-region call.

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

Cross-Account, Cross-Region

Can CMKs be migrated between regions?

A

No

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

Cross-Account, Cross-Region

How do you change a key to be multi-region?

A

Can’t, decided when you create the key

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

Cross-Account, Cross-Region

What can’t be used for a multi-region key?

A

Custom key stores

because they are backed by CloudHSM

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

Cross-Account, Cross-Region

Can you delete a replica key?

A

Sure, goes away

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

Cross-Account, Cross-Region

Can you delete a multi-region primary key?

A

Yes, but it removes all replica keys too

17
Q

Cross-Account, Cross-Region

What happens if the primary key fails?

A

Nothing, replica keys are complete copies

18
Q

Cross-Account, Cross-Region

Operationally, what do you do when a primary fails?

A

A replica becomed the primary

19
Q

Cross-Account, Cross-Region

How do you figure out the key ID for each replica?

A

All keys have the same ID (but different ARN prefixes since different regions)

20
Q

Cross-Account, Cross-Region

When should you use multi-region keys?

A

Multi-region distributed app: low-latency access in each region

21
Q

Asymmetric Keys

What do you use symmetric keys for?

A

Encrypt/decrypt

22
Q

Asymmetric Keys

What do you use asymmetric keys for?

A

Encrypt/decrypt OR sign/verify, but not both

23
Q

Asymmetric Keys

What can you do with RSA keys?

A

Encrypt/decrypt OR sign/verify, but not both

24
Q

Asymmetric Keys

What can you do with Elliptic Curve keys

A

sign/verify (only)

25
Q

Asymmetric Keys

How do you get an asymmetric key out of KMS?

A

Public key can come out, private key never leaves KMS

26
Q

Asymmetric Keys

How do you sign a file using KMS asymmetric key?

A

< 4kb -> send the whole thing, else send a hash of the large file

27
Q

Asymmetric Keys

How do you verify a file signed by a KMS asymmetric key?

A

Call KMS Verify API with file or hash

or do it yourself if you have the public key