exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 28 discussion

A company hosts a client-side web application for one of its subsidiaries on Amazon S3. The web application can be accessed through Amazon CloudFront from https://www.example.com. After a 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?

  • A. Create four access points that allow access to the central S3 bucket. Assign an access point to each web application bucket.
  • B. Create a bucket policy that allows access to the central S3 bucket. Attach the bucket policy to the central S3 bucket
  • C. Create a cross-origin resource sharing (CORS) configuration that allows access to the central S3 bucket. Add the CORS configuration to the central S3 bucket.
  • D. Create a Content-MD5 header that provides a message integrity check for the central S3 bucket. Insert the Content-MD5 header for each web application request.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Untamables
Highly Voted 1 year, 9 months ago
Selected Answer: C
C 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
upvoted 6 times
...
sumanshu
Most Recent 2 weeks ago
Selected Answer: C
The issue described is related to Cross-Origin Resource Sharing (CORS). A) Eliminated - S3 access points deals with permissions, not with resolving cross-origin issues. B) Eliminated - A bucket policy defines access rules for an S3 bucket (e.g., which users or accounts can access it).Bucket policies define access permissions, but they do not address the cross-origin issue. C) By adding a CORS configuration to the central bucket, you instruct the browser to allow requests from the web application’s domains (origins). D) Eliminated - Content-MD5 is a header used to ensure that data was not corrupted during transmission. it is unrelated to the browser’s blocking behavior due to CORS.
upvoted 2 times
...
trieudo
3 weeks, 1 day ago
Selected Answer: C
==> Discard A. Access points manage S3 access but don't address browser's cross-origin restrictions. ==> Discard B. Bucket policies control permissions but don't override browser Same-Origin Policy. ==> Discard D. Content-MD5 ensures data integrity but doesn't affect cross-origin resource sharing. C is useful when cross site access
upvoted 1 times
...
tomchandler077
6 months ago
C The question described is a classic case of Cross-Origin Resource Sharing (CORS) where the browser blocks resources (like JavaScript files and web fonts) that are loaded from a different origin (the central S3 bucket) than the web application. To resolve this, a CORS configuration needs to be added to the central S3 bucket to allow these resources to be accessed from the different origins of the web applications.
upvoted 1 times
...
65703c1
7 months, 2 weeks ago
Selected Answer: C
C is the correct answer.
upvoted 1 times
...
badsati
9 months ago
Selected Answer: C
The answer is C for cat
upvoted 1 times
...
svrnvtr
1 year, 9 months ago
Selected Answer: C
It is C
upvoted 3 times
...
aragon_saa
1 year, 9 months ago
C https://www.examtopics.com/discussions/amazon/view/88856-exam-aws-certified-developer-associate-topic-1-question-302/
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago