Solved

A Developer Uses Amazon S3 Buckets for Static Website Hosting

Question 324

Multiple Choice

A Developer uses Amazon S3 buckets for static website hosting. The Developer creates one S3 bucket for the code and another S3 bucket for the assets, such as image and video files. Access is denied when a user attempts to access the assets bucket from the code bucket, with the website application showing a 403 error. How should the Developer solve this issue?


A) Create an IAM role and apply it to the assets bucket for the code bucket to be granted access.
B) Edit the bucket policy of the assets bucket to open access to all principals.
C) Edit the cross-origin resource sharing (CORS) configuration of the assets bucket to allow any origin to access the assets.
D) Change the code bucket to use AWS Lambda functions instead of static website hosting.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents