Medium1 markMultiple Choice
Domain 1.2: Secure WorkloadsDomain 1SecurityAPI GatewayCognito

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

A company exposes a REST API using Amazon API Gateway. They want to restrict access to the API so that only authenticated users from their Amazon Cognito User Pool can call it. Which TWO steps are required? (Select TWO.)

Answer options:

A.

Create a Cognito User Pool authorizer in API Gateway.

B.

Configure the API methods to use the authorizer.

C.

Use AWS WAF to validate the Cognito tokens.

D.

Create an IAM role for API Gateway to access Cognito.

E.

Enable CORS on the API Gateway.

How to approach this question

Identify the API Gateway feature for Cognito integration.

Full Answer

Create a Cognito User Pool authorizer in API Gateway. Configure the API methods to use the authorizer.
To secure API Gateway with Cognito, you create a Cognito User Pool authorizer and then configure your API methods to require that authorizer.

Common mistakes

Thinking WAF or IAM roles are required for basic Cognito token validation.

Practice the full AWS SAA-C03 Practice Exam 2

65 questions · hints · full answers · grading

More questions from this exam