Bird
0
0

How can you combine usage plans with AWS Lambda authorizers to control API access based on API keys and custom logic?

hard📝 Application Q9 of 15
AWS - API Gateway
How can you combine usage plans with AWS Lambda authorizers to control API access based on API keys and custom logic?
AUse Lambda authorizers to replace usage plans entirely
BUse usage plans for rate limits and Lambda authorizers for custom authentication
CUse usage plans to store Lambda code
DUse Lambda authorizers to generate API keys automatically
Step-by-Step Solution
Solution:
  1. Step 1: Understand usage plans and Lambda authorizers roles

    Usage plans enforce rate and quota limits; Lambda authorizers run custom authentication logic.
  2. Step 2: Combine for access control

    Use usage plans to limit usage and Lambda authorizers to validate requests beyond keys.
  3. Final Answer:

    Use usage plans for rate limits and Lambda authorizers for custom authentication -> Option B
  4. Quick Check:

    Usage plans limit usage; Lambda authorizers authenticate [OK]
Quick Trick: Usage plans limit usage; Lambda authorizers add custom auth [OK]
Common Mistakes:
  • Thinking Lambda authorizers replace usage plans
  • Confusing usage plans with code storage
  • Assuming Lambda authorizers create API keys

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes