S3 1 Flashcards

1
Q

Versioning

How do you disable versioning?

A

Can’t, but can pause it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Versioning

What is the version Key ID on an object without bucket versioning?

A

Null

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Versioning

When is a Key ID null once a bucket is versioned?

A

Absolutely never.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Versioning

What happens when you delete an object on a versioned bucket?

A

Adds a delete marker.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Versioning

What happens when you delete a Key ID on a versioned bucket?

A

True delete, gone forever.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Signed URLs

How long is a signed URL good for?

A

Until the creds that signed it expire or it’s expiration.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Signed URLs

What can you do with a signed URL?

A

Whatever the Principal that signed it can do. Careful signing with R/W privs if you only want to grant R/O!

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Signed URLs

Can you scope down a PSU to just s3:GetObject, for example?

A

No. Uses full access rights of whatever signed it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Signed URLs

What is the problematic constraint with signed URLs?

A

Signed URL expires when the temp creds expire that signed it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Signed URLs

Best practice for signing PSUs?

A

Use IAM User creds (long-lived creds)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Signed URLs

App has a PSU. What boto3 S3 call needed to use it?

A

Nope, it’s a URL, so use requests: straight HTTPS client only.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Signed URLs

Can you create a PSU for an object you don’t have access to?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Signed URLs

Generate PSU, change permissions on signing role, then use PSU. What happens?

A

Uses the at-this-moment permissions of the signing role when PSU used

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Signed URLs

Use a PSU, what’s in the audit/access log?

A

Looks like the principal that signed the PSU did the access

How well did you know this?
1
Not at all
2
3
4
5
Perfectly