KMS and Encryption on AWS (ACG) Flashcards

1
Q

What is AWS KMS?

A

AWS Key Management Service (KMS) manages your encryption keys.

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

What is CMK?

A

Customer Master Key (CMK)

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

What is a CMK alias?

A

Your app can refer to the alias when using the CMK.

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

You can export CMKs. True or False?

A

FALSE

CMKs can never be exported outside of KMS.

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

What are the basic steps to set up CMK?

A
  • Create alias and description.
  • Choose key material option - provide our own or KMS managed or CloudHSM
  • Set up Key Administrative Permissions (IAM Users/Roles that can administer but not use the key through the KMS API)
  • Key Usage Permissions - IAM Users/Roles that can use the key to encrypt and decrypt data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the different keys supported by KMS?

A

AWS-Managed CMK
Customer-Managed CMK
Data Key

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

What is the AWS KMS encrypt command?

A

aws kms encrypt

Encrypts plaintext into ciphertext by using a customer master key.

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

What is the AWS KMS decrypt command?

A

aws kms decrypt

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

What is the AWS KMS re-encrypt command?

A

aws kms re-encrypt

Decrypts ciphertext and re-encrypts with a new CMK if you wish.

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

What command would you use to automatically rotate your key annually?

A

aws kms enable-key-rotation

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

What command would you use to encrypt data over 4KB?

A

aws kms generate-data-key

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

What is Envelope Encryption?

A

Encrypting the key that encrypts our data.

The CMK is used to encrypt the data key (or envelope key).

The data key encrypts our data.

Used for encrypting anything over 4KB

Avoids sending all your data into KMS over the network to encrypt/decrypt directly.

Remember the GenerateDataKey API call.

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

What is the AWS managed service that allows you to create and control the encryption keys used to encrypt your data?

A

AWS KMS

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

Which command can you use to encrypt a plaintext file using a CMK?

A

aws kms encrypt

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

Envelope encryption is used to protect your encryption key. True or False?

A

TRUE

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

You cannot use AWS managed keys in cryptographic operations directly. True or False?

A

TRUE

17
Q

What is the name of the practice of encrypting plaintext data with a data key, and then encrypting the data key under another key?

A

Envelope encryption

18
Q

You would like KMS to rotate your encryption keys on a yearly basis. Which API command can you use to configure this?

A

aws kms enable-key-rotation

19
Q

You are working on a project which requires a key management solution. Your security architect has confirmed that a multi-tenant solution is fine. Which solution do you recommend?

A

KMS

KMS is multi-tenant, whereas CloudHSM is dedicated hardware. S3 encryption and client-side encryption are not key management solutions.

20
Q

You can export (copy out of the AWS KMS service in plaintext) your customer master key. True or False?

A

FALSE

You cannot export (copy out of the AWS KMS service in plaintext) your customer master key.

21
Q

KMS encryption keys are global by default. True or False?

A

FALSE

KMS encryption keys are global by default.