Medium1 markMultiple Choice
Domain 1.1: Secure AccessSecurityAPI GatewayCognito

AWS SAA-C03 · Question 15 · Domain 1.1: Secure Access

An application uses Amazon API Gateway and AWS Lambda. The API is public, but the company wants to restrict access so that only users who have authenticated via a third-party OpenID Connect (OIDC) identity provider can call the API. <br/><br/>What is the MOST appropriate way to secure the API?

Answer options:

A.

Use an Amazon Cognito User Pool as an authorizer for the API Gateway.

B.

Configure API Gateway to use AWS IAM authorization and create IAM users for each client.

C.

Implement the OIDC validation logic inside the backend Lambda function.

D.

Use AWS WAF to validate the OIDC tokens in the HTTP headers.

How to approach this question

Identify the service that handles third-party identity federation and integrates natively with API Gateway.

Full Answer

A.Use an Amazon Cognito User Pool as an authorizer for the API Gateway.✓ Correct
Amazon Cognito User Pools support federation with OIDC providers. You can configure an API Gateway method to use a Cognito User Pool authorizer, which validates the JWT token provided by the client before allowing the request to reach the backend.

Common mistakes

Choosing to implement validation in Lambda, which violates the best practice of offloading authorization to the API Gateway layer.

Practice the full AWS SAA-C03 Practice Exam 4

65 questions · hints · full answers · grading

More questions from this exam