S3 Quiz
An application hosted in AWS allows users to upload videos to an S3 bucket. A user is required to be given access to upload some videos for a week based on the profile. How can be this be accomplished in the best way possible?
A.
Create an IAM bucket policy to provide access for a week’s duration.
B.
Create a pre-signed URL for each profile which will last for a week’s duration.
C.
Create an S3 bucket policy to provide access for a week’s duration.
D.
Create an IAM role to provide access for a week’s duration.
B. Create a pre-signed URL for each profile which will last for a week’s duration.
Pre-signed URL’s are the perfect solution when you want to give temporary access to users for S3 buckets. So, whenever a new profile is created, you can create a pre-signed URL to ensure that the URL lasts for a week and allows users to upload the required objects.
For more information on pre-signed URL’s, please visit the following URL:
https://docs.aws.amazon.com/AmazonS3/latest/dev/PresignedUrlUploadObject.html