nerdexam
AmazonAmazon

DVA-C02 · Question #4

DVA-C02 Question #4: Real Exam Question with Answer & Explanation

The correct answer is C: Create a cross-origin resource sharing (CORS) configuration that allows access to the central S3. This is a frequent trouble. Web applications cannot access the resources in other domains by default, except some exceptions. You must configure CORS on the resources to be accessed. https://docs.aws.amazon.com/AmazonS3/latest/userguide/cors.html

Submitted by yuki_2020· Mar 5, 2026Implement a secure environment

Question

A company hosts a client-side web application for one of its subsidiaries on Amazon S3. The web successful rollout, the company wants to host three more client-side web applications for its remaining subsidiaries on three separate S3 buckets. To achieve this goal, a developer moves all the common JavaScript files and web fonts to a central S3 bucket that serves the web applications. However, during testing, the developer notices that the browser blocks the JavaScript files and web fonts. What should the developer do to prevent the browser from blocking the JavaScript files and web fonts?

Options

  • ACreate four access points that allow access to the central S3 bucket. Assign an access point to
  • BCreate a bucket policy that allows access to the central S3 bucket. Attach the bucket policy to the
  • CCreate a cross-origin resource sharing (CORS) configuration that allows access to the central S3
  • DCreate a Content-MD5 header that provides a message integrity check for the central S3 bucket.

Explanation

This is a frequent trouble. Web applications cannot access the resources in other domains by default, except some exceptions. You must configure CORS on the resources to be accessed. https://docs.aws.amazon.com/AmazonS3/latest/userguide/cors.html

Community Discussion

No community discussion yet for this question.

Full DVA-C02 PracticeBrowse All DVA-C02 Questions