Topic 1 Question 504
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?
Create a WebSocket API and the /auth route. Configure and attach the JWT authorizer to the API. Deploy the API.
Create a WebSocket API and the /auth route. Create and configure an AWS Lambda authorizer. Attach the Lambda authorizer to the API. Deploy the API.
Create an HTTP API and the /auth route. Create and configure an AWS Lambda authorizer. Attach the Lambda authorizer to the /auth route. Deploy the API.
Create an HTTP API and the /auth route. Configure the JWT authorizer. Attach the JWT authorizer to the /auth route. Deploy the API.
ユーザの投票
コメント(4)
- 正解だと思う選択肢: D
not needs interactive chat like communication to verify the token. So no web-socket?
👍 3Dahlia95242024/12/09 - 正解だと思う選択肢: D
It narrow downs to C and D . But for C , we need to create a Lambda function , whereas for D - JWT authorizer, it uses the token.
👍 1ShakthiGCP2024/12/13 - 正解だと思う選択肢: D
WebSocket APIs in API Gateway do not support the built-in JWT authorizer. This option is invalid. Lambda authorizers require custom code, which contradicts the requirement to avoid managing custom logic.
👍 1xdeveloper2024/12/27
シャッフルモード