Medium1 markMultiple Choice
Domain 1.2: Secure WorkloadsDomain 1SecurityAPI GatewayCognito

AWS SAA-C03 · Question 12 · Domain 1.2: Secure Workloads

A company has built a serverless application using Amazon API Gateway and AWS Lambda. The company wants to authorize API calls using OAuth 2.0 tokens provided by a third-party identity provider. Which solution requires the LEAST operational overhead?

Answer options:

A.

Create a Lambda authorizer that validates the OAuth 2.0 token.

B.

Configure an Amazon Cognito User Pool as an authorizer in API Gateway.

C.

Use AWS IAM authorization and map the tokens to IAM roles.

D.

Implement token validation logic inside the backend Lambda function.

How to approach this question

Look for native integrations. API Gateway + Cognito User Pools is the standard, low-overhead way to handle OAuth/JWT tokens.

Full Answer

B.Configure an Amazon Cognito User Pool as an authorizer in API Gateway.✓ Correct
Configure an Amazon Cognito User Pool as an authorizer in API Gateway.
Amazon API Gateway can use Amazon Cognito User Pools as an authorizer. This allows API Gateway to natively validate the OAuth 2.0 JWT tokens provided by Cognito (which can federate with third-party IdPs) without requiring you to write custom Lambda authorizer code.

Common mistakes

Choosing Lambda authorizer, which works but requires more operational overhead (custom code).

Practice the full AWS SAA-C03 Practice Exam 1

65 questions · hints · full answers · grading

More questions from this exam