Object Storage and Content Delivery: S3 and CloudFront Flashcards

1
Q

Static website on Amazon S3 with custom domain name

A

Requires that the bucket name matches the DNS name / record set name in Route 53

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

503 errors experienced with new site and thousands of user

A

Request rate is too high

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

Discrepancy with number of objects in bucket console vs CloudWatch

A

Use Amazon S3 Inventory to properly determine the number of objects in a bucket

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

Need to enforce encryption on all objects uploaded to bucket

A

Use a bucket policy with a “Condition”: { “Bool”: { “aws:SecureTransport”: “false” statement for PutObject and with the resource set to the bucket

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

Unauthorized users tried to connect to S3 buckets. Need to know which buckets are targeted and who is trying to get access

A

Use S3 server access logs and Athena to query for HTTP 403 errors and look for IAM user or role making requests

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

Need to provide access to third-party to S3 bucket and must limit amount of access. List of users changes a lot

A

Use a pre-signed URL allowing access to the specific files

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

Need to protect S3 data from ransomware attacks that encrypt data

A

Enable S3 versioning

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

After enabling MFA on a bucket, what operations will require MFA authentication?

A

Permanently removing object versions and suspending versioning on the bucket

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

Files are downloaded from S3, edited and uploaded with same file name. Sometimes they are accidentally modified or deleted

A

To allow recovery enable versioning on the bucket

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

Existing application uses EC2, RDS, EFS and S3. Need to enable encryption

A

Can enable encryption only on S3 (as already deployed)

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

Static website deployed but “HTTP 403 Forbidden” message received

A

Add bucket policy granting everyone read access to objects

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

Application on EC2 must save files to Amazon S3 and needs access

A

Create an IAM role for S3 access and attach to EC2 instance

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

History of revisions to files stored in an S3 bucket must be maintained

A

Implement S3 versioning

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

Large volume of log files stored in S3 bucket and processed daily

A

Most cost-effective option is S3 standard

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

Need to restrict S3 bucket access to same account after previously shared with other account

A

Change ACL to restrict only to bucket owner

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

Static content is served from Amazon S3 with long loading times

A

Use CloudFront to cache for better performance

17
Q

Need to use custom domain name with CloudFront

A

Create an alias record in Route 53 pointing to the distribution URL

18
Q

CloudFront in front of ALB and EC2 and logging enabled. Need to view logs for HTTP layer 7 status codes

A

Check ALB access logs and CloudFront access logs

19
Q

App running on EC2 with RDS multi-AZ has static content on S3. Need to improve performance as load testing slowed it down

A

Use CloudFront to cache the content

20
Q

Need to secure S3 bucket that is used with CloudFront

A

Use an OAI and grant permissions to read objects in the bucket

21
Q

Website with dynamic content and need to restrict access from certain countries and regions

A

Use Amazon CloudFront geo-restriction and Amazon Route 53 geolocation routing