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:
Verified
Q319: You attempt to store an object in
Q320: What happens, by default, when one of
Q321: A legacy service has an XML-based SOAP
Q322: A Developer has written an application that
Q323: How should custom libraries be utilized in
Q325: An online retail company has deployed a
Q326: A Development team wants to instrument their
Q327: In a multi-container Docker environment in AWS
Q328: An application ingests a large number of
Q329: A company has multiple Developers located across
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