A developer is building the authentication mechanism for a new mobile app. Users need to be able to sign up, sign in, and access secured backend AWS resources.
Which solution will meet these requirements?
A.
Use AWS Identity and Access Management Access Analyzer to generate IAM policies. Create an IAM role. Attach the policies to the role. Integrate the IAM role with an identity provider that the mobile app uses.
B.
Create an IAM policy that grants access to the backend resources. Create an IAM role. Attach the policy to the role. Create an Amazon API Gateway endpoint. Attach the role to the endpoint. Integrate the endpoint with the mobile app.
C.
Create an Amazon Cognito identity pool. Configure permissions by choosing a default IAM role for authenticated users or guest users in the identity pool. Associate the identity pool with an identity provider. Integrate the identity pool with the mobile app.
D.
Create an Amazon Cognito user pool. Configure the security requirements by choosing a password policy, multi-factor authentication (MFA) requirements, and user account recovery options. Create an app client. Integrate the app client with the mobile app.
Using Amazon Cognito User Pools:
This is the correct solution because User Pools provide everything we need:
Complete user directory management
Built-in sign-up and sign-in flows
Customizable security policies
Password management and recovery
MFA support
Easy mobile SDK integration
Can be combined with Identity Pools for AWS resource access
D is the correct answer.
Amazon Cognito User Pools provide a fully managed authentication mechanism. They enable user sign-up, sign-in, and user management.
C is wrong, because identity pool does not provide user sign-up and sign-in features.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
LingZ
2 months agoitaliancloud2025
2 months, 1 week agoArad
3 months, 1 week ago