Podcast
Questions and Answers
What should you do to troubleshoot an API with a Lambda integration that returns {"message":"Internal Server Error"}?
What should you do to troubleshoot an API with a Lambda integration that returns {"message":"Internal Server Error"}?
- Check your Lambda function code (correct)
- Add $context.error.message to the log format
- Create a Lambda integration in the API Gateway console
- Grant permissions for API Gateway to invoke the Lambda function
What should you do to ensure that API Gateway has the required permissions to invoke the Lambda function?
What should you do to ensure that API Gateway has the required permissions to invoke the Lambda function?
- Check your Lambda function code
- Add $context.error.message to the log format
- Create a Lambda integration in the API Gateway console
- Grant permissions for API Gateway to invoke the Lambda function (correct)
What should you do to view the error message in your logs?
What should you do to view the error message in your logs?
- Check your Lambda function code
- Add $context.integrationErrorMessage to the log format (correct)
- Create a Lambda integration in the API Gateway console
- Grant permissions for API Gateway to invoke the Lambda function
Flashcards are hidden until you start studying