A developer is building a serverless client application and needs to implement user authentication and allow authenticated users to upload files directly to a private Amazon S3 bucket. Which Amazon Cognito features should the developer use to meet these requirements? (Select TWO.)
- Amazon Cognito User Pools to manage the user directory, registration, and authentication.Cevap
- Amazon Cognito Identity Pools to authorize users and obtain temporary AWS credentials for accessing the Amazon S3 bucket.Cevap
- CAmazon Cognito User Pools to directly assume an IAM role and provide temporary credentials to the client.
- DAmazon Cognito Identity Pools to act as the primary user directory and handle password reset flows.
- EAn Amazon API Gateway Lambda Authorizer to validate tokens and assume IAM roles for direct S3 access.
Cevap
The developer should configure Amazon Cognito User Pools for user directory authentication, and Amazon Cognito Identity Pools to exchange tokens for temporary AWS credentials to access S3.
Amazon Cognito User Pools act as a user directory to manage registration and authentication, while Amazon Cognito Identity Pools authorize users by providing temporary AWS credentials for accessing AWS services like Amazon S3.
Adım Adım Çözüm
Anahtar Kavram
Amazon Cognito User Pools vs. Amazon Cognito Identity Pools
Tahmini Süre:1m 0s