KMS Flashcards

This deck aims to help retain concepts related to the AWS KMS service.

1
Q

Does KMS support only asymmetric encryption keys?

A

No, KMS supports both symmetric and asymmetric encryption keys

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

Which cryptographic operations is KMS capable of?

A

Encryption and decryption

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

Are KMS keys used directly to encrypt data?

A

No, KMS keys are used to generate Data Encryption Keys (DEKs), which are used to encrypt data

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

What is the maximum size of data that KMS keys can work on?

A

Up to 4KB in size (4,096 bytes to be precise)

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

How is access to KMS keys provided?

A

Access must be explicitly provided through the KMS key resource-based policy

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

In the scenario of key rotation, how does KMS decrypt data that was previously encrypted by an older key?

A

KMS retains previous keys so that data encrypted before rotation can still be decrypted

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

How would you describe the KMS scope?

A

KMS is a regional and public service

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

Can KMS keys leave KMS unencrypted?

A

No, KMS keys never leave KMS unencrypted

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

What types of keys does KMS feature?

A
  • AWS-owned keys
  • AWS-managed keys
  • Customer-managed keys
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which type of KMS keys are created, owned, and managed by you in your AWS account?

A

Customer-managed keys

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

Which type of KMS keys in your AWS account are created, managed, and used on your behalf by an AWS service integrated with AWS KMS?

A

AWS-managed Keys

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

Which type of KMS keys are owned and managed by an AWS service for use in multiple AWS accounts?

A

AWS-owned Keys

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

What CLI command is used to encrypt data using AWS KMS?

A
aws kms encrypt \
    --key-id <key_id> \
    --plaintext fileb://<file_name>.txt \
    --output text \
    --query CiphertextBlob \
    | base64 --decode > <file_name>.enc
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What CLI command is used to decrypt data using AWS KMS?

A
aws kms decrypt \
    --ciphertext-blob fileb://<file_name>.enc \
    --output text \
    --query Plaintext \
    | base64 --decode > <file_name>.txt
How well did you know this?
1
Not at all
2
3
4
5
Perfectly