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?
AIt works until expiry, since the signature alone authorises the request
BIt works only for HEAD requests, because GET needs live credentials
CIt fails only if the object's ETag changes after the URL was generated
DIt fails, because the signing credentials must still be valid when usedCorrect answer
Correct answer
D. It fails, because the signing credentials must still be valid when used
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.