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 390 discussion

A developer manages a website that distributes its content by using Amazon CloudFront. The website's static artifacts are stored in an Amazon S3 bucket.

The developer deploys some changes and can see the new artifacts in the S3 bucket. However, the changes do not appear on the webpage that the CloudFront distribution delivers.

How should the developer resolve this issue?

  • A. Configure S3 Object Lock to update to the latest version of the files every time an S3 object is updated.
  • B. Configure the S3 bucket to clear all old objects from the bucket before new artifacts are uploaded.
  • C. Set CloudFront to invalidate the cache after the artifacts have been deployed to Amazon S3.
  • D. Set CloudFront to modify the distribution origin after the artifacts have been deployed to Amazon S3.
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
preachr
6 months, 3 weeks ago
Selected Answer: C
When a user requests content from a website, CloudFront checks if the content is available in its cache. If the content is available in the cache, CloudFront delivers the content to the user from its cache. This speeds up the delivery of the content and reduces the load on the website’s servers. However, if the content has changed on the website, the cached content in CloudFront will be outdated. To ensure that users receive the latest content, the cached content in CloudFront needs to be invalidated. This means that the cached content is removed from the CDN, and the next time a user requests the content, it is fetched from the website’s servers.
upvoted 1 times
...
albert_kuo
9 months ago
Selected Answer: C
aws cloudfront create-invalidation --distribution-id EXAMPLE_DIST_ID --paths "/*"
upvoted 2 times
...
komorebi
9 months, 2 weeks ago
C. Set CloudFront to invalidate the cache after the artifacts have been deployed to Amazon S3.
upvoted 2 times
...
rdiaz
9 months, 2 weeks ago
Selected Answer: C
By invalidating the CloudFront cache, you ensure that the latest artifacts in your S3 bucket are delivered to users, resolving the issue of outdated content being displayed.
upvoted 2 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