AWS Certified Developer – Associate (DVA-C02) — Question 454

A company has an application that uses an Amazon Cognito user pool for authentication. A developer needs to add a new REST API that will use the user pool to authenticate requests.

Which solution will meet this requirement with the LEAST development effort?

Answer options

Correct answer: B

Explanation

Using a native Amazon Cognito authorizer in API Gateway requires the least development effort because it integrates directly with the user pool without requiring any custom code. AWS Lambda authorizers (both token and request types) would require writing, testing, and maintaining custom code to validate the tokens. API keys and usage plans are designed for rate-limiting and usage tracking rather than authenticating users via Cognito.