Q34 — AWS DVA-C02 Ch.3

Question 34 of 100 | ← Chapter 3

A static website is hosted in an Amazon S3 bucket. The site’s HTML pages use JavaScript to load images from another Amazon S3 bucket. Users browsing the website do not see these images displayed.

Correct Answer: D. Cross-origin resource sharing (CORS) must be enabled on the Amazon S3 bucket.

Explanation

When static website HTML pages load images from another S3 bucket, cross-origin access is involved, requiring Cross-Origin Resource Sharing (CORS) to be enabled; otherwise, browsers block image loading due to the same-origin policy. Option A—different Regions—is not inherently a cause of image display failure. Option B—requiring images in the same bucket—is incorrect; cross-bucket access is supported with proper configuration. Option C—opening port 80 on a security group—is irrelevant because S3 does not use security groups. Therefore, the most likely cause is Option D: CORS must be enabled on the Amazon S3 bucket. 【Lantern Certification provided by: swufelp1999】