A service exposes an API through API Gateway + Lambda. The Lambda function receives requests with an incoming Authorization header. Which configuration most directly ensures that only validated JWT claims are trusted by the Lambda without extra custom parsing?

Answer

Configure a JWT authorizer in API Gateway and pass validated claims to the Lambda via the request context.

Explanation

API Gateway JWT authorizers validate the token signature and claims before invocation. Lambda can then safely consume claims from the validated context rather than performing ad-hoc parsing.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list