exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 181 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 181
Topic #: 1
[All AWS Certified Developer Associate Questions]

A developer wants to implement authentication using Amazon Cognito user pools for an existing API in Amazon API Gateway. After creating the Amazon Cognito user pool, the developer tests the GET request to the API. Unauthenticated requests to the API return a 200 OK status response.

Which combination of additional steps are required to complete the authentication implementation? (Choose two.)

  • A. Create an Amazon Cognito authorizer in API Gateway and specify the Amazon Cognito user pool.
  • B. Create an AWS Lambda authorizer in API Gateway and specify the Amazon Cognito user pool.
  • C. Specify the authorizer in the GET method section of API Gateway and redeploy the API
  • D. Use Amazon Cognito user pools to make and authenticate the request to API Gateway.
  • E. Create an Amazon Cognito authorizer in API Gateway and specify the Amazon Cognito identity pool.
Show Suggested Answer Hide Answer
Suggested Answer: AC 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
rcaliandro
1 year, 10 months ago
Selected Answer: AC
A and C. After creating an user pool "API Gateway doesn't know that the requests should made only by authenticated users". So we need to create a cognito authorizer in API Gateway, by specifing the user pool already created (A is correct). Then, we do need to specify the authorizer (created in the previous step) in the GET method of our endpoint and redeploy the service (C is correct)
upvoted 3 times
...
MrTee
2 years ago
A. Create an Amazon Cognito authorizer in API Gateway and specify the Amazon Cognito user pool: An authorizer in API Gateway is responsible for verifying incoming requests before they reach your API's backend. By creating an Amazon Cognito authorizer and specifying the user pool, the API Gateway will authenticate the user's credentials with the Amazon Cognito user pool. C. Specify the authorizer in the GET method section of API Gateway and redeploy the API: After creating the authorizer, the developer should specify it in the GET method section of the API Gateway. The authorizer will then be invoked on all incoming requests to the API. The API Gateway will then return a 401 Unauthorized status response for any unauthenticated requests.
upvoted 2 times
...
Krt5894
2 years, 3 months ago
Selected Answer: AC
A & C https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-integrate-with-cognito.html https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-use-lambda-authorizer.html
upvoted 1 times
...
michaldavid
2 years, 5 months ago
Selected Answer: AC
A and C
upvoted 1 times
...
k1kavi1
2 years, 5 months ago
Selected Answer: AC
https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-integrate-with-cognito.html
upvoted 2 times
...
CloudHandsOn
2 years, 5 months ago
I believe it’s A,C After the user pool is created in Cognito, an authorizer will need to be created in API Gateway for Cognito (not Lambda) specifying a user pool. Then, redeploying the API after the changes will allow the changes to take effect. References: 1.) https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-integrate-with-cognito.html 2.) https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-deploy-api-with-console.html
upvoted 3 times
...
kapil206001
2 years, 5 months ago
A&C https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-integrate-with-cognito.html https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-use-lambda-authorizer.html
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago