A media company has a static web application that is generated programmatically. The company has a build pipeline that generates HTML content that is uploaded to an Amazon S3 bucket served by Amazon CloudFront. The build pipeline runs inside a Build Account. The S3 bucket and CloudFront distribution are in a Distribution Account. The build pipeline uploads the files to Amazon S3 using an IAM role in the Build Account. The S3 bucket has a bucket policy that only allows CloudFront to read objects using an origin access identity (OAI) . During testing all attempts to access the application using the CloudFront URL result in an HTTP 403 Access Denied response. What should a solutions architect suggest to the company to allow access the objects in Amazon S3 through CloudFront?
A) Modify the S3 upload process in the Build Account to add the bucket-owner-full-control ACL to the objects at upload.
B) Create a new cross-account IAM role in the Distribution Account with write access to the S3 bucket. Modify the build pipeline to assume this role to upload the files to the Distribution Account.
C) Modify the S3 upload process in the Build Account to set the object owner to the Distribution Account.
D) Create a new IAM role in the Distribution Account with read access to the S3 bucket. Configure CloudFront to use this new role as its OAI. Modify the build pipeline to assume this role when uploading files from the Build Account.
Correct Answer:
Verified
Q655: A company is developing a new service
Q656: A company has an application that runs
Q657: A company has been using a third-party
Q658: A company is in the process of
Q659: A large company with hundreds of AWS
Q661: A company has several Amazon EC2 instances
Q662: A company hosts a game player-matching service
Q663: A company has a single AWS master
Q664: A company has a web application that
Q665: An enterprise company is using a multi-account
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents