AWS Certified Solutions Architect – Professional (SAP-C02) — Question 508

A company is using AWS to develop and manage its production web application. The application includes an Amazon API Gateway HTTP API that invokes an AWS Lambda function. The Lambda function processes and then stores data in a database.

The company wants to implement user authorization for the web application in an integrated way. The company already uses a third-party identity provider that issues OAuth tokens for the company’s other applications.

Which solution will meet these requirements?

Answer options

Correct answer: A

Explanation

An Amazon API Gateway Lambda authorizer is the standard way to validate custom OAuth tokens issued by a third-party identity provider. By requiring this authorizer on the HTTP API routes and passing the tokens in the Authorization header from the client application, the system achieves secure, integrated validation. Other options incorrectly attempt to leverage AWS Directory Service or AWS IAM Identity Center for direct API Gateway token validation, which do not support this use case natively.