D2: Using KMS Keys in Code
AWS Associate AWS Certified Developer – Associate exam practice questions · 11 flashcards
Question
KMS Encrypt API limit?
1 / 11
Tip: Space flips the card, ← / → navigate.
Show all 11 Using KMS Keys in Code practice questions and answers
- KMS Encrypt API limit?Up to 4 KB of plaintext directly.
- Envelope encryption steps?GenerateDataKey → encrypt data locally with plaintext key → store encrypted data key with data → discard plaintext key.
- Decrypting envelope-encrypted data?Call KMS Decrypt on the encrypted data key, then decrypt data locally.
- GenerateDataKeyWithoutPlaintext?Returns only encrypted data key for later use.
- Symmetric vs asymmetric KMS keys?Symmetric: single AES key, never leaves KMS. Asymmetric: public/private pair for encryption or signing.
- KMS key rotation?Automatic rotation for customer managed symmetric keys (enable/disable, period 90–2560 days); on-demand rotation also available.
- Can AWS managed keys rotation be disabled?No; they rotate automatically every year.
- Cross-account KMS use?Key policy must allow the external account; that account's IAM policy grants use.
- KMS ThrottlingException fix?Cache data keys (Encryption SDK caching), backoff, request quota increase.
- Encryption context?Non-secret key-value pairs bound to ciphertext as additional authenticated data.
- KMS Re-Encrypt?Changes key protecting ciphertext without exposing plaintext.