DVA-C02 practice question · Development with AWS Services
Which API Gateway feature lets a developer run custom authentication logic in a Lambda function to validate a bearer…
Which API Gateway feature lets a developer run custom authentication logic in a Lambda function to validate a bearer token before allowing a request to reach the backend?
- AA Lambda authorizer
- BA usage plan
- CA mapping template
- DA stage variable
Show the answer and explanation
Correct answer: A) A Lambda authorizer
Why each option is right or wrong
- A) Correct. A Lambda authorizer runs custom code to validate an incoming token or request and returns an IAM policy that API Gateway uses to allow or deny the request before it reaches the backend integration.
- B) Incorrect. Usage plans control API key-based throttling and quotas; they don't run custom authentication logic.
- C) Incorrect. Mapping templates transform request/response payloads between formats; they don't perform authentication.
- D) Incorrect. Stage variables are configuration values scoped to a deployment stage; they don't implement custom authentication logic.
- Exam domain
- Development with AWS Services · 32% of DVA-C02
- Question type
- Multiple choice (one answer)
Related DVA-C02 questions
- An API Gateway endpoint serves data that changes infrequently, and the team wants to reduce both backend load and…Development with AWS Services
- What is the benefit of enabling SNS "raw message delivery" for an SQS queue subscribed to an SNS topic?Development with AWS Services
- A Step Functions workflow needs to run the same processing steps for each item in a dynamically sized array of input…Development with AWS Services
- An on-premises order system runs a self-managed, open source message broker cluster.Development with AWS Services
All 67 free DVA-C02 questions by domain · 15 sample questions on one page
Practise the full DVA-C02 exam
This question is one of a small free sample from the CertRidge DVA-C02 bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.
Original question written from the official exam guide. Not affiliated with AWS; never copied from the real exam.
Worth reading: DVA-C02 cheat sheet, Lambda, DynamoDB, API Gateway, IAM and Cognito, messaging, CI/CD and X-Ray in tables, plus what DVA-C03 changes.