Amazon

DVA-C02 practice question 3

AWS Certified Developer - Associate (DVA-C02) · free question 3 of 20

Question

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?
  • A. Use S3 Event Notifications to validate the file upload and download requests and update the user interface (UI).
  • B. Save the details of the uploaded files in a separate Amazon DynamoDB table. Filter the list of files in the user interface (UI) by comparing the current user ID with the user ID associated with the file in the table.
  • C. Use Amazon API Gateway and an AWS Lambda function to upload and download files. Validate each request in the Lambda function before performing the requested operation.
  • D. Use an IAM policy within the Amazon Cognito identity prefix to restrict users to use their own folders in Amazon S3. Correct

Explanation

Option D is correct because using an IAM policy within the Amazon Cognito identity pool allows for fine-grained access control, ensuring that each user can only access their own folder in Amazon S3. This approach leverages AWS's security model to enforce permissions directly at the resource level, providing a high level of security and compliance with the requirement that users can only access their own files.

Need the theory? Learn it free in the DVA-C02 course on Godlike Academy

Practice the whole free set

Answer all 20 free DVA-C02 questions with instant feedback, or unlock all 557 questions with Learn and Exam modes.