Bird
0
0

A developer tries to authenticate a user but receives a 'UserNotConfirmedException'. What is the most likely reason?

medium📝 Debug Q7 of 15
AWS - Serverless Architecture
A developer tries to authenticate a user but receives a 'UserNotConfirmedException'. What is the most likely reason?
AUser password is incorrect
BUser has not completed email or phone verification
CUser does not exist in the pool
DUser pool client ID is invalid
Step-by-Step Solution
Solution:
  1. Step 1: Understand UserNotConfirmedException meaning

    This error means the user has not verified their email or phone.
  2. Step 2: Eliminate other causes

    Incorrect password causes NotAuthorizedException; non-existent user causes UserNotFoundException; invalid client ID causes different error.
  3. Final Answer:

    User has not completed email or phone verification -> Option B
  4. Quick Check:

    UserNotConfirmedException = Unverified user [OK]
Quick Trick: User must verify contact info before sign-in [OK]
Common Mistakes:
  • Confusing with wrong password error
  • Assuming user does not exist
  • Ignoring verification step

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes