QuestionQ87

VerifiedSecurity

An application is using Amazon Cognito user pools and identity pools for secure access. A developer wants to integrate the user-specific file upload and download features in the application with Amazon S3. The developer must ensure that the files are saved and retrieved in a secure manner and that users can access only their own files. The file sizes range from 3 KB to 300 MB.

Which option will meet these requirements with the HIGHEST level of security?

Explanation

Cognito identity pools generate unique identity IDs for each user, which can be embedded in IAM policies as a variable (e.g., ${aws:username}). This enables fine-grained access control where users can only access their own S3 folder. This achieves the highest security with built-in separation at the authorization layer, far simpler than application-level filtering or Lambda-based validation.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!