API with Lambda Integration Troubleshooting

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

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?

  • 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?

  • 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

More Like This

API 653 (Part-A) Quiz
5 questions
Postman API Testing Quiz
5 questions
Apigee API Proxy Troubleshooting
0 questions
API Flashcards - Aircrew Position Indicator
20 questions
Use Quizgecko on...
Browser
Browser