30. Security & Encryption **IMPORTANT** Flashcards
What is encryption in flight?
SSL/TLS (HTTPS)
What is server-side encryption at rest
Data is encrypted after being received by the server and is decrypted before being sent (KMS)
What is client-side encryption?
Data is encrypted by client and never decrypted by server
What standard does KMS use for symmetric encryption?
AES-256
What standard does KMS use for asymmetric encryption?
RSA & ECC key pairs
What is the KMS data per call maximum?
4KB of data per call
What should you use if your KMS data is greater than the maximum?
If data > 4KB, use envelope encryption
What should you do in KMS to authorize cross-account access?
Attach a KMS Key Policy to authorize cross-account access
True or False: KMS keys have a global view.
False. KMS keys are bound to the region they are in.
What is the API used for envelope encryption?
GenerateDataKey
What is the API for data key caching?
LocalCryptoMaterialsCache
What is the API for creating a unique symmetric data key (DEK)?
GenerateDataKey
What is the API for encrypting data 4KB or less?
Encrypt
What is the API for generating a DEK for later use (not immediately)?
GenerateDataKeyWithoutPlaintext
When you exceed a KMS request quota, what happens?
You get a ThrottlingException
What are the possible solutions for resolving a KMS ThrottlingException?
- exponential backoff
- For GenerateDataKey, use DEK caching from the Encryption SDK
- you can request a quota increase through API or AWS support
True or False: Shared KMS request quotas vary with the AWS Region and the type of CMK used in the request.
True
What are the 4 methods of encrypting objects in S3?
- SSE-S3
- SSE-KMS
- SSE-C
- Client-side Encryption