User pools: User directories that provide sign-up and sign-in options for app users.
Identity pools: Cognito elements grant users access to other AWS services.
Authentication Flow:
User signs with their credentials through user pool.
After successful authentication, they receive an access token.
A client can access all resources with this token.