KMS Flashcards
What is AWS Key Management Service?
AWS KMS is a managed service that makes it easy for you to create and control the customer master keys (CMKs)
What are CMKs?
Customer Master Keys are encryption keys that are used to encrypt your data
AWS CMKs are protected by ________
Hardware security modules (HSMs)
How to track the use of CMKs for auditing, regulatory and compliance needs?
KMS is integrated with CloudTrail to log the use of CMKs.
CloudTrail delivers the log files to ________
Amazon S3
What is Symmetric CMK?
Symmetric CMK represents single 256 bit secret encryption key that never leaves KMS unencrypted. To use symmetric CMK you must call AWS KMS
What is Asymmetric CMK?
Asymmetric CMK represents mathematically related public key and private key pair, where the private key never leaves AWS KMS unencrypted.
Where can Asymmetric CMKs be used?
Asymmetric CMKs can be used for encryption/decryption or signing/verification but not for both.
How is the asymmetric key used?
You can use public key within AWS KMS by calling AWS KMS API operations or download public key and use it outside of AWS KMS.
What is Symmetric Data key?
Symmetric data key is a symmetric encryption key that is used to encrypt data outside of KMS. The Symmetric data key is protected by Symmetric CMK in AWS KMS
What is Asymmetric Data key?
An asymmetric data key is an RSA or elliptic curve (ecc) key pair that consists of public key and private key where the private key is protected by symmetric CMK in AWS KMS.
What is AWS recommendation for using RSA and Elliptical Curve key usages?
AWS KMS recommends to use Elliptical Curve (ECC) keys for signing and use RSA keys for encryption and decryption, but not both. However AWS KMS cannot enforce restrictions on the use of data key pairs outside of AWS KMS.
When you create a Customer Master Key in KMS, by default you get a _________
Symmetric CMK
Symmetric keys are used in _________ encryption
Symmetric, which means the same key is used for encryption and decryption.
___________ keys are good choice? (Symm/Asymm)
Symmetric
AWS Services that are integrated with KMS use ________ CMKs and does not support encryption with _________ CMKs
Symmetric; Asymmetric
If your case requires encryption outside of AWS, by users that cannot access KMS, ___________ keys are good choice.
Asymmetric CMKs
If you are creating a CMK to encrypt the data stored and managed in AWS, use ______________ key.
Symmetric CMKs
What are the Asymmetric keys that KMS support?
- RSA CMKs
2. Elliptic Curve (ECC) CMKs
What are RSA CMKs
A CMK with RSA is used for for encryption and decryption or signing and verification (but not both). AWS KMS supports several key lengths for different security requirements.
What is Elliptic Curve (ECC) CMK?
A CMK with an elliptic curve key pair for signing and verification. AWS KMS supports several commonly-used curves.
The type of CMK that you create depends largely on ____________
how you plan to use the CMK, your security requirements, and your authorization requirements.
Use a ___________ for most use cases that require encrypting and decrypting data.
symmetric CMK
The symmetric encryption algorithm that AWS KMS uses is __________
fast, efficient, and assures the confidentiality and authenticity of data.
Symmetric Key supports authenticated encryption with ______________
additional authenticated data (AAD)
If your use case requires encryption outside of AWS by users who cannot call AWS KMS, __________ are a good choice.
asymmetric CMKs
To sign messages and verify signatures, you must use an_________
asymmetric CMK.
To perform public key encryption, you must use ___________;
__________key specs cannot be used for public key encryption.
asymmetric CMK with an RSA key spec; Elliptic curve (ECC)
The Decrypt operation fails if the data was encrypted under a public key from a CMK with a key usage of ________
SIGN_VERIFY.
_______ CMKs only support encryption and decryption.
Symmetric
AWS KMS does not store, manage, or track your _____ keys.
data
By default, ______ creates the key material for a CMK
AWS KMS
How to extract, export, view, or manage/delete the key material that is generated by AWS KMS
You cannot
You can create the key material for a CMK in the ________ associated with an ________
AWS CloudHSM cluster; AWS KMS custom key store.
_______ let you encrypt data in one AWS Region and decrypt it in a different AWS Region.
multi-Region CMKs,
the CMK includes metadata, such as its _________
key ID, creation date, description, and key state.
AWS KMS supports three types of CMKs:
- Customer Managed CMKs
- AWS Managed CMKs
- AWS Owned CMKs
What are Customer managed CMKs
Customer managed CMKs are CMKs in your AWS account that you create, own, and manage. You have full control over these CMKs,
What are AWS managed CMKs
AWS managed CMKs are CMKs in your account that are created, managed, and used on your behalf by an AWS service that is integrated with AWS KMS
What are AWS owned CMK
AWS owned CMKs are a collection of CMKs that an AWS service owns and manages for use in multiple AWS accounts. Although AWS owned CMKs are not in your AWS account, an AWS service can use its AWS owned CMKs to protect the resources in your account.
You can use_________ to generate, encrypt, and decrypt data keys.
symmetric customer master keys (CMKs)
You must use and manage ______ keys outside of AWS KMS.
data
AWS KMS cannot use a ________ key to encrypt data
data
_______ are asymmetric data keys that consist of a mathematically-related public key and private key.
Data key pairs
_________ are designed to be used for client-side encryption and decryption, or signing and verification outside of AWS KMS.
Data Key Pairs
To generate a cryptographic signature for a message, use the ______ key in the data key pair. Anyone with the _____ key can use it to verify that the message was signed with your private key and that it has not changed since it was signed.
private; public
What is a custom key store?
A custom key store is an AWS KMS resource that is associated with hardware security modules (HSMs) in a AWS CloudHSM cluster that you own and manage.
How do you create and manage CMKs in HSMs
When you create an AWS KMS customer master key (CMK) in your custom key store, AWS KMS generates a 256-bit, persistent, non-exportable Advanced Encryption Standard (AES) symmetric key in the associated AWS CloudHSM cluster. This key material never leaves your HSMs unencrypted. When you use a CMK in a custom key store, the cryptographic operations are performed in the HSMs in the cluster.
___________ act as names for your AWS KMS customer master keys (CMKs).
Key identifiers
What are the types of Key identifiers?
- Key ARN
- Key ID
- Alias ARN
- Alias Name
What is Key Material?
Key material is the secret string of bits used in a cryptographic algorithm.
If you use AWS KMS key material, you can enable _________ of your key material.
automatic rotation
y default, each CMK has _________ key material.However, you can create a set of _________with the same key material.
unique ; multi-Region keys
When you create a CMK with an ______ key material origin, the CMK has no key material. Later, you can import key material into the CMK.
External