Bird
0
0

You want to allow users to sign in with either their email or username in a Cognito User Pool. Which configuration should you choose?

hard📝 Application Q8 of 15
AWS - Serverless Architecture
You want to allow users to sign in with either their email or username in a Cognito User Pool. Which configuration should you choose?
AEnable Multi-Factor Authentication (MFA)
BSet 'Alias Attributes' to include email and username
CUse Identity Pool with social providers
DCreate separate User Pools for email and username
Step-by-Step Solution
Solution:
  1. Step 1: Identify how to allow multiple sign-in options

    Alias Attributes let users sign in with email or username in one User Pool.
  2. Step 2: Exclude unrelated options

    MFA adds security but doesn't affect sign-in identifiers; Identity Pools handle federated login; separate pools complicate management.
  3. Final Answer:

    Set 'Alias Attributes' to include email and username -> Option B
  4. Quick Check:

    Alias Attributes enable multiple sign-in options [OK]
Quick Trick: Use Alias Attributes for email and username sign-in [OK]
Common Mistakes:
  • Confusing MFA with sign-in options
  • Using multiple User Pools unnecessarily
  • Mixing Identity Pools with User Pools

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes