Question 379:
You are a developer at a company that has built a serverless application that allows users to make payments online. The applications consist of several Lambda functions and a DynamoDB table. This is implemented using a SAM template. However, when users want to see their transactions and update their payment information, they cannot do so. After debugging, you discover that the Lambda functions don’t have permissions to access records from the DynamoDB table. How will you resolve this issue using more tighter and secure AWS Managed Policy?
Answer options:
A.Create an IAM role using AWS Managed Policy AmazonDynamoDBFullAccess and attach to Lambda functions. B.Use AmazonDynamoDBFullAccess policy template in the SAM template. C.Use DynamoDBCrudPolicy policy template in the SAM template. D.Create an IAM role using AWS Managed Policy AmazonDynamoDBReadOnlyAccess and attach to Lambda functions.