Medium1 markMultiple Choice
Domain 2.3: Security ControlsSecurityAPI GatewayServerlessAuthentication

AWS SAP-C02 · Question 57 · Domain 2.3: Security Controls

A company is building a serverless application using AWS Lambda and Amazon API Gateway. They need to secure the API against unauthorized access. The users authenticate via a third-party Identity Provider (IdP) that supports OpenID Connect (OIDC). Which TWO methods can be used to authorize API requests? (Select TWO)

Answer options:

A.

Use an API Gateway Lambda authorizer to validate the OIDC token.

B.

Integrate the IdP with Amazon Cognito User Pools and use a Cognito authorizer in API Gateway.

C.

Use AWS IAM Identity Center to generate temporary AWS credentials for the API.

D.

Configure API Gateway to use AWS WAF to validate the OIDC token.

E.

Use Amazon Macie to inspect the incoming tokens.

F.

Enable API Gateway resource policies to allow the IdP's IP address.

How to approach this question

Identify the two API Gateway features used for custom or federated authentication (Lambda Authorizer and Cognito Authorizer).

Full Answer

API Gateway supports Amazon Cognito authorizers (which can federate with OIDC IdPs) and Lambda authorizers (which allow you to write custom code to validate JWTs/OIDC tokens).

Common mistakes

Thinking WAF can be used as an identity provider/token validator.

Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 1

75 questions · hints · full answers · grading

More questions from this exam