Questions


Related Questions:


Questions

Asked By :  Santiago
Answers1

You have created a simple serverless website using S3 Lambda AP

You have created a simple serverless website using S3, Lambda, API Gateway and DynamoDB. Your website will process the contact details of your customers, predict an expected delivery date of their order and store their order in DynamoDB. You test the website before deploying it in to production and you notice that although the page executes, and the lambda function is triggered, it is unable to write to DynamoDB. What could be the cause of this issue?

A.) The AZ that DynamoDB is hosted in is down
B.) The AZ that Lambda is hosted in is down
C.) You have written your function in Python which is not supported as a run time environment for Lambda
D.) Your Lambda function does not have the sufficient IAM permissions to write to DynamoDB




Answers :

0

The most likely cause of the issue where the Lambda function is unable to write to DynamoDB is:

D.) Your Lambda function does not have the sufficient IAM permissions to write to DynamoDB

This is a common scenario where the Lambda execution role does not have the appropriate permissions to perform operations on the DynamoDB table. You can resolve this by attaching a suitable IAM policy to the Lambda execution role that grants the necessary permissions to read from and write to the DynamoDB table.


Answered By

Kaitlyn Murillo

Your Answer



XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Write your answer, be as detailed as possible...

Reply as a guest

Required but never shown

Try Now AI powered Content Automation