Bird
0
0

You want to secure your REST API so only users with a valid JWT token can access it. Which AWS feature should you configure in API Gateway?

hard📝 Application Q9 of 15
AWS - API Gateway
You want to secure your REST API so only users with a valid JWT token can access it. Which AWS feature should you configure in API Gateway?
AEnable API Gateway caching
BUse a Cognito user pool authorizer
CSet up a MOCK integration
DUse a Lambda function URL
Step-by-Step Solution
Solution:
  1. Step 1: Understand JWT token validation

    JWT tokens are validated by authorizers in API Gateway.
  2. Step 2: Choose Cognito user pool authorizer

    Cognito user pools provide JWT tokens and integrate as authorizers.
  3. Final Answer:

    Use a Cognito user pool authorizer -> Option B
  4. Quick Check:

    JWT validation = Cognito authorizer [OK]
Quick Trick: Cognito authorizer validates JWT tokens in API Gateway [OK]
Common Mistakes:
MISTAKES
  • Confusing caching with security
  • Using MOCK integration for security
  • Using Lambda URL instead of authorizer

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes