
Answer-first summary for fast verification
Answer: Use Cognito User Pools
Use Cognito User Pools - As an alternative to using IAM roles and policies or Lambda authorizers, you can use an Amazon Cognito user pool to control who can access your API in Amazon API Gateway. To use an Amazon Cognito user pool with your API, you must first create an authorizer of the COGNITO_USER_POOLS type and then configure an API method to use that authorizer. After the API is deployed, the client must first sign the user into the user pool, obtain an identity or access token for the user, and then call the API method with one of the tokens, which are typically set to the request's Authorization header. The API call succeeds only if the required token is supplied and the supplied token is valid, otherwise, the client isn't authorized to make the call because the client did not have credentials that could be authorized. Incorrect options: Use Lambda Authorizer- A Lambda authorizer (formerly known as a custom authorizer) is an API Gateway feature that uses a Lambda function to control access to your API. A Lambda authorizer is useful if you want to implement a custom authorization scheme that uses a bearer token authentication strategy such as OAuth or SAML, or that uses request parameters to determine the caller's identity. This won't be a fully managed user management solution but it would allow you to check for access at the AWS API Gateway level. Use IAM permissions with sigv4 - Signature Version 4 is the process to add authentication information to AWS requests sent by HTTP. For security, most requests to AWS must be signed with an access key, which consists of an access key ID and secret access key. These two keys are commonly referred to as your security credentials. But, we cannot possibly create an IAM user for every visitor of the site, so this is where social identity providers come in to help. Use API Gateway User Pools - This is a made-up option.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are developing a mobile application that requires secure access to the AWS API Gateway. To maintain user security and streamline the registration process, it's imperative that users register themselves before they are granted access to your API. You want to ensure that the user management system is fully managed so that you don't have to handle authentication manually.
Which authentication method should you implement for your API Gateway layer to achieve these objectives?
A
Use IAM permissions with sigv4
B
Use API Gateway User Pools
C
Use Cognito User Pools
D
Use Lambda Authorizer
No comments yet.