Bird
0
0

What will be the result of calling the AWS CLI command to list users in a Cognito User Pool with an invalid User Pool ID?

medium📝 Predict Output Q5 of 15
AWS - Serverless Architecture
What will be the result of calling the AWS CLI command to list users in a Cognito User Pool with an invalid User Pool ID?
aws cognito-idp list-users --user-pool-id invalid-id
AResourceNotFoundException error
BEmpty user list
CAccessDeniedException error
DList of users returned
Step-by-Step Solution
Solution:
  1. Step 1: Identify error for invalid User Pool ID

    An invalid User Pool ID causes ResourceNotFoundException.
  2. Step 2: Compare with other errors

    AccessDeniedException is for permission issues; empty list means valid pool with no users.
  3. Final Answer:

    ResourceNotFoundException error -> Option A
  4. Quick Check:

    Invalid pool ID = ResourceNotFoundException [OK]
Quick Trick: Invalid pool ID triggers ResourceNotFoundException [OK]
Common Mistakes:
  • Expecting empty list instead of error
  • Confusing permission errors with invalid ID
  • Assuming users are returned regardless

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes