QuestionQ41

VerifiedSecurity

A developer is working on a new authorization mechanism for an application. The developer must create an Amazon API Gateway API and must test JSON Web Token (JWT) authorization on the API.

The developer must use the built-in authorizer and must avoid managing the code with custom logic. The developer needs to define an API route that is available at /auth to test the authorizer configuration.

Which solution will meet these requirements?

Explanation

HTTP APIs in Amazon API Gateway support the built-in JWT authorizer, which validates JSON Web Tokens without requiring custom Lambda code. WebSocket APIs do not support JWT authorizers; Lambda authorizers require custom code development. The JWT authorizer can be attached directly to the /auth route for token validation.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!