DVA-C02 · Question #798
A company has an application on AWS. In the application, users can upload and share images. The images are stored in an Amazon S3 bucket. The application uses temporary tokens to upload images to the
The correct answer is C. The temporary token that was used to generate the presigned URL is no longer valid.. A presigned URL that is generated by using temporary security credentials depends on the validity of those credentials. If the temporary token expires or is otherwise no longer valid before the presigned URL expires, Amazon S3 cannot validate the request signature and redirects t
Question
A company has an application on AWS. In the application, users can upload and share images. The images are stored in an Amazon S3 bucket. The application uses temporary tokens to upload images to the S3 bucket and create presigned URLs for users to access the images. Some users report that the presigned URLs that they received do not work. A developer tests the application and finds that some presigned URLs are redirected to an error page. The presigned URLs have not expired. What is the cause of the error?
Options
- AThe application's access to the tokens that allow it to generate presigned URLs was disabled.
- BThe users are not allowed to access the object in the S3 bucket.
- CThe temporary token that was used to generate the presigned URL is no longer valid.
- DThe users uploaded a XML file to the application instead of an image file.
How the community answered
(40 responses)- A5% (2)
- B3% (1)
- C83% (33)
- D10% (4)
Explanation
A presigned URL that is generated by using temporary security credentials depends on the validity of those credentials. If the temporary token expires or is otherwise no longer valid before the presigned URL expires, Amazon S3 cannot validate the request signature and redirects the request to an error page even though the URL itself has not yet expired.
Community Discussion
No community discussion yet for this question.