1. Home
  2. Computer Science MCQs
  3. Cloud Computing
  4. A presigned S3 URL was generated using credentials from an…

Added 30 Nov -0001

A presigned S3 URL was generated using credentials from an IAM role that is deleted shortly afterwards. What happens when the URL is used before its expiry time?

  1. It works until expiry, since the signature alone authorises the request
  2. It works only for HEAD requests, because GET needs live credentials
  3. It fails only if the object's ETag changes after the URL was generated
  4. It fails, because the signing credentials must still be valid when used Correct answer

Correct answer

D. It fails, because the signing credentials must still be valid when used

19 views

MCQSEXAM

Explanation

A presigned URL embeds the access key and a signature, so S3 can verify it without a live session, but the underlying credentials must still exist and be permitted at request time. Deleting the role or deactivating its keys invalidates previously signed URLs immediately, and expiry only limits how long a link stays usable. Credentials obtained from a role also carry a session expiry, which caps the URL lifetime regardless of the configured value.

Reference

Asked in: NTS, PPSC IT, Campus Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Cloud Computing MCQs

Practise all Cloud Computing MCQs

Similar MCQs