اختبار شهادة AWS Solutions Architect Associate

السؤال 420 من 539

كل الأسئلة

A serverless application uses Amazon API Gateway, AWS Lambda, and Amazon DynamoDB. The Lambda function needs permissions to read and write to the DynamoDB table. Which solution will give the Lambda function access to the DynamoDB table MOST securely?

الخيارات

  • A Create an IAM user with programmatic access to the Lambda function. Attach a policy to the user that allows read and write access to the DynamoDB table. Store the keys as Lambda environment variables.
  • B Create an IAM role that includes Lambda as a trusted service. Attach a policy to the role that allows read and write access to the DynamoDB table. Update the Lambda configuration to use the new role as the execution role.
  • C Create an IAM user with programmatic access to the Lambda function. Attach a policy to the user that allows read and write access to the DynamoDB table. Store the keys in AWS Systems Manager Parameter Store and have Lambda retrieve them.
  • D Create an IAM role that includes DynamoDB as a trusted service. Attach a policy to the role that allows read and write access from the Lambda function. Update the Lambda code to attach to the new role.

النقاشات

لا توجد نقاشات منشورة لهذا السؤال حالياً.