AWS Certified Security – Specialty — Question 492

An application uses Amazon Cognito to manage end users' permissions when directly accessing AWS resources, including Amazon DynamoDB. A new feature request reads as follows:
Provide a mechanism to mark customers as suspended pending investigation or suspended permanently. Customers should still be able to log in when suspended, but should not be able to make changes.
The priorities are to reduce complexity and avoid potential for future security issues.
Which approach will meet these requirements and priorities?

Answer options

Correct answer: D

Explanation

Moving suspended users to a dedicated Amazon Cognito group allows you to easily map them to a specific IAM role with read-only permissions, ensuring secure and centralized access control. This approach minimizes complexity and avoids potential security loopholes that might arise from custom application-level validation. Other options, such as managing multiple user pools or relying on application logic checks, significantly increase architectural complexity and the risk of misconfiguration.