
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
A company is using AWS Key Management Service (AWS KMS) keys to encrypt AWS Lambda environment variables. A solutions architect needs to ensure that the required permissions are in place to decrypt and use the environment variables.
Which steps must the solutions architect take to implement the correct permissions? (Choose two.)
A
Add AWS KMS permissions in the Lambda resource policy.
B
Add AWS KMS permissions in the Lambda execution role.
C
Add AWS KMS permissions in the Lambda function policy.
D
Allow the Lambda execution role in the AWS KMS key policy.
E
Allow the Lambda resource policy in the AWS KMS key policy.
Explanation:
When using AWS KMS keys to encrypt Lambda environment variables, two key permissions need to be configured:
kms:Decrypt to decrypt the environment variables at runtime.A. Add AWS KMS permissions in the Lambda resource policy.
C. Add AWS KMS permissions in the Lambda function policy.
E. Allow the Lambda resource policy in the AWS KMS key policy.
This dual-permission model follows the AWS security best practice of least privilege and ensures that only authorized Lambda functions can decrypt sensitive environment variables.