A SysOps Administrator needs to restrict access to an Amazon S3 bucket so that users can only access the content through an Amazon CloudFront distribution. The administrator wants to use the most secure, modern AWS-recommended method to prevent direct public access to the S3 bucket. Which configuration should the administrator implement to meet these requirements?
- Configure an Origin Access Control (OAC) for the S3 origin in CloudFront, and update the S3 bucket policy to allow access only to the CloudFront service principal representing the OAC.Cevap
- BCreate a Route 53 CNAME record pointing to the S3 bucket's regional domain name, and configure it as the zone apex record for the distribution.
- CApply an IAM policy requiring iam:PassRole permissions on the S3 bucket, and associate it with the viewer protocol policy.
- DEnable CloudWatch Detailed Monitoring on the CloudFront distribution to automatically block direct HTTP GET requests targeting the S3 bucket.
Cevap
Configure an Origin Access Control (OAC) for the S3 origin in CloudFront, and update the S3 bucket policy to allow access only to the CloudFront service principal representing the OAC.
The correct configuration is to configure an Origin Access Control (OAC) on the CloudFront distribution and update the S3 bucket policy. This combination ensures that the S3 bucket only accepts requests that are signed and sent by the CloudFront distribution, preventing direct public access via S3 endpoint URLs.
Adım Adım Çözüm
Anahtar Kavram
Securing Amazon S3 origins in Amazon CloudFront using Origin Access Control (OAC)
Tahmini Süre:1m 0s