Skip to main content

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)

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.