KMS Flashcards

1
Q

AWS Regional Services are services that operate in isolation from every other region and requires certain configuration to access and be accesed from other regions

A

True

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

KMS is a regional service

A

True

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

AWS KMS is a public service, it is available in aws Public zone

A

True

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

KMS Features

A
  1. Regional & Public Service(Can be Multi-Region enabled)
  2. Create, Store and Manage Keys
  3. Symmetric and Asymmetric Keys
  4. Cryptographic operations (encrypt, decrypt & …)
  5. Keys never leave KMS
  6. Provides FIPS 140-2 (L2) Encryption standard
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

KMS Keys Components

A

KMS Keys are logical -
ID,
date,
policy,
desc &
state

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

KMS key max size

A

4kb

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

KMS Role separation

A

Create Keys
Encrypt
Decrypt

Each of th ese operations require a separate permission

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

KMS Data Encryption Key

A

DEK is used for encrypting Data >4kb
this kind of key is not stored within kms like the encryption key.
DEK - KMS hands you a Plaintext version and encryption key, you encrypt your data, and discard the plaintext version. In order to decrypt data, send encrypted Key back to KMS, and KMS will decrypt. Same DEK can be used to encrypt any number of files

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

KMS Keys vs DEK

A

KMS Keys - KMS Handles the Encryption process, you provide the data =<4KB

DEK - KMS hands you a Plaintext version and encryption key, you encrypt your data, and discard the plaintext version. In order to decrypt data, send encrypted Key back to KMS, and KMS will decrypt. Same DEK can be used to encrypt any number of files

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

KMS Decryption

A

KMS keys can not leave the region where it is generated, KMS keys cannot be extracted outside KMS. However, KMS offers Multi-region Keys

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

Customer MAnaged Keys

A

Customer Managed Keys can highly be customized. Unlike AWS Managed Keys, in the key policy, they can be customized for cross-account, cross-region usage, etc

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

KMS Key Rotation

A

AWS Managed Keys are rotated Automatically once a year(Fixed).

Customer Managed key can be configured anyhow

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

Aliases

A

You cant create Aliases with KMS Keys.

Both Old/previous Keys are stored after rotation(So as data encrypted previously can still be decrypted)

However with DEK, Aliases can be used

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

KMS Key Policy

A

This this is like an S3 resource Policy, the Policy is not Automatic. Trusted identity/resource must be explicitly specified, if not…

IAM Policy(kms) only gives the permission to create, encrypt, and decrypt, however, KMS Must trust the entity specified in the IAM Policy before anything can happen.

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

Deleting a KMS Key

A

Deleting a KMS Key is not instantaneous, you would have to schedule a deletion >=7days

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

KMS Key Delettion

A

Once a Delete operation is Called on, the specified key goes into delete pending deletion state for 7days. Within this Period, no cryptographic operation is allowed.

Advisably Disable your key instead of Delete when not sure.

17
Q

CFN Events data

A

A JSON document sent by Cloudformation to resources such as Lambda and other non AWS resources, this document contains instructions on mainly the desired properties that is expected. Then CFN receives back an OK message and registers the event as part of its Logical resource. Same is done during deletion, eg s3 buckets that wont allow deletion when not empty. This whole scenario is under **Cloudformation Custom Resources.

18
Q

Imported Key Rotation

A

Take note that you cannot enable automatic key rotation for a KMS key with imported key material, but you can manually rotate it by creating a new KMS key with imported key material.