DVA-C02 Question 133
Select 3Your company is building a web application where users can sign up, log in, and access various resources based on their roles. You also need to integrate social identity providers (like Google and Facebook) and provide temporary AWS credentials for the users to access an S3 bucket. Which service(s) in Amazon Cognito would you use to achieve this?
- A
Cognito User Pools to handle user authentication and securely manage user sign-up and sign-in.
- B
Cognito Identity Pools to provide temporary AWS credentials for accessing AWS resources.
- C
Cognito User Pools to provide temporary AWS credentials for accessing AWS resources.
- D
Cognito Identity Pools to handle user authentication and manage user sign-up and sign-in.
- E
Cognito User Pools to integrate with social identity providers like Google and Facebook.
Show answer and explanation
Correct answers: A, B, E
Explanation
To implement the described scenario, you would use Cognito User Pools for user authentication, handling sign-up and sign-in processes, and integrating with social identity providers like Google and Facebook. To provide temporary AWS credentials for accessing AWS resources such as an S3 bucket, you would use Cognito Identity Pools. These two components of Amazon Cognito work together to meet the use case requirements.
- A. Correct.
Correct. Cognito User Pools are designed for user authentication and managing sign-up and sign-in processes.
- B. Correct.
Correct. Cognito Identity Pools are used to provide temporary AWS credentials to authenticated users, enabling access to AWS resources like an S3 bucket.
- C. Incorrect.
Incorrect. Cognito User Pools do not provide temporary AWS credentials for accessing AWS resources. This is a function of Cognito Identity Pools.
- D. Incorrect.
Incorrect. Cognito Identity Pools are not designed to handle user authentication or manage sign-up and sign-in. This is a function of Cognito User Pools.
- E. Correct.
Correct. Cognito User Pools support integration with social identity providers for user authentication.