AWS KMS Flashcards
Is AWS KMS Free to use?
No, You pay for each key you store and each API call.
How can I control who accesses AWS KMS?
AWS KMS service has the same IAM access control as other services in AWS.
How can I control who can use the CMK keys created by AWS KMS?
A CMK can have an access control policy attached to it, this access control policy enables restriction to happen.
what is a symmetric data key?
It is used to encrypt large blocks of data and is the same key for encryption and decryption, AES 256 is symetricencryption.
What is asymmetric encryption?
It is public and private key encryption where the a public key is share with people to encrypt data. Good for small amounts of data.
What is envelope encryption?
This is where you encrypt plane text data with a key and ten encrypt the key
What is a CMK
Is is a customer master key, used to encrypt and decrypt unto 4k of data.
Is KMS a global or regional service?
It is a regional service.
Is the CMK a logical or real key?
It is a logical key, the reason for this is keys can be rotated and old keys kept until data is deleted.
What is a data key?
Is a key generated by HSM under CMK, returned as plane and encrypted
What is a permission?
A permission is a policy attached to a CMK and defines who/what can access the CMK.
What is the hierarchy of the keys for KMS?
Domain Key HBK Domain encrypts HBK and produced EKT EKT is stord in CMK CMK is stored in external durable storage form HSM
What is a HBK?
It is a HSM backed keys, it is a key generated in the HSM and never leaves the HSM unencrypted.
What is the EKT?
Is the HBK thet gets encrypted under the domain key and and is exported from the HSM into the CMK, CMK is resident in durable storage outside the hSM.
What is CDK
It is a customer data keys, encrypted under CMK.
I have an on-prem application that I want to use envelope encryption with, I need this to be highly secure and FIPS complaint, what are my options?
You could used AWS KMS and the KMS SKD to encrypt you key using the CMK.
What dose the CMK consist of?
EKS which are encrypted HBK thet were generated in the HSM and encrypted under the domain key.
Can I used my own Key with KMS and how dose this work?
Yes you can use your own key, you import they material into KMS and this key materiel is used for HBK, HBK gets encrypted under domain key and stored in logical CMK.
I need a key to encrypt some data, what should I used?
Call GenerateDataKey API, this will create a data key they is encrypted under the CMK, you can get back bot encrypted and plane text versions of this key.