S3 Access Logs Flashcards

1
Q

What are Amazon S3 Access Logs?

A

Amazon S3 Access Logs are records that provide details about each request made to your S3 bucket, including requester, bucket name, request time, request action, response status, and error codes.

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

How can you enable Amazon S3 Access Logs?

A

You can enable S3 Access Logs through the S3 Management Console, AWS CLI, or AWS SDKs. You specify a target bucket for the logs and can optionally set a prefix for log object names.

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

For what purposes can S3 Access Logs be used?

A

S3 Access Logs can be used for security and access audits, analyzing user access patterns, diagnosing system response issues, and understanding your AWS bill by identifying high-frequency requests.

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

What information is not contained in S3 Access Logs?

A

S3 Access Logs do not contain the content of the request or the response. They focus on metadata about the request, such as operational details, request IDs, and status codes.

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

Are there any costs associated with enabling S3 Access Logs?

A

Yes, enabling S3 Access Logs incurs costs for storing the log files in the specified target bucket, and for the PUT requests to write these logs. There’s also a potential cost for data transfer if logs are accessed.

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

How frequently are S3 Access Logs delivered to the target bucket?

A

S3 Access Logs are delivered periodically and can experience a delay from a few minutes to several hours from the time of the request. The logs are not real-time.

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

Can S3 Access Logs be delivered to a bucket in another AWS account?

A

Yes, S3 Access Logs can be configured to be delivered to a bucket in another AWS account. Proper permissions must be set on the target bucket to accept logs from another account.

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

What is the format of an S3 Access Log record?

A

Each S3 Access Log record is a plain text line with fields delimited by spaces. Fields include requester, bucket name, request time, request IP, request action, response status, error code, and more.

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

How can you analyze S3 Access Logs?

A

S3 Access Logs can be analyzed manually, using tools like Amazon Athena to query log data directly, or processed into Amazon CloudWatch Logs for monitoring and analytics.

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

Can S3 Access Logs be encrypted?

A

Yes, S3 Access Logs can be encrypted by enabling default server-side encryption (SSE) for the target log bucket. This ensures that all logs delivered to the bucket are encrypted at rest.

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