Soru

Zorluk: KolayApplication Authentication and Authorization with Amazon Cognito

A developer is creating a mobile game. The application needs to authenticate users using a custom username and password. Once authenticated, the game client must directly publish player analytics events to an Amazon Pinpoint project. Which of the following Amazon Cognito components should the developer configure to meet these requirements? (Select TWO.)

  1. An Amazon Cognito User Pool to manage user sign-up, sign-in, and the player directory.Cevap
  2. An Amazon Cognito Identity Pool to exchange authentication tokens for temporary AWS credentials to access Amazon Pinpoint.Cevap
  3. C
    An Amazon Cognito Identity Pool to serve as the primary user directory and verify player passwords.
  4. D
    An Amazon Cognito User Pool to directly issue temporary AWS IAM credentials to the game client.
  5. E
    An IAM Policy attached directly to the Amazon Cognito User Pool to authorize write permissions to Amazon Pinpoint.

Cevap

The developer should configure an Amazon Cognito User Pool to manage user sign-up, sign-in, and the player directory, and configure an Amazon Cognito Identity Pool to exchange authentication tokens for temporary AWS credentials to access Amazon Pinpoint.
To manage player authentication and the user directory, an Amazon Cognito User Pool is required. To obtain temporary AWS credentials for the game client to access Amazon Pinpoint directly, an Amazon Cognito Identity Pool must be configured to exchange the user pool tokens for temporary IAM credentials.

Adım Adım Çözüm

1
Determine the service needed for user authentication and user directory management.
An Amazon Cognito User Pool is selected to register and authenticate players.
User Pools provide identity provider features such as sign-up, sign-in, and directory storage.
2
Determine the service needed to provide the client with access to AWS resources directly.
An Amazon Cognito Identity Pool is selected to supply temporary credentials.
Identity Pools exchange the tokens from the User Pool for temporary IAM credentials that allow the client to access services like Amazon Pinpoint.

Anahtar Kavram

Understanding the division of responsibility between Amazon Cognito User Pools (authentication and user directory) and Amazon Cognito Identity Pools (authorization and temporary AWS credentials).
Bu soruyu puanla