exam questions

Exam AWS Certified SysOps Administrator - Associate All Questions

View all questions & answers for the AWS Certified SysOps Administrator - Associate exam

Exam AWS Certified SysOps Administrator - Associate topic 1 question 99 discussion

A company hosts a static website on Amazon S3. An Amazon CloudFront distribution presents this site to global users. The company uses the Managed-
CachingDisabled CloudFront cache policy. The company's developers confirm that they frequently update a file in Amazon S3 with new information.
Users report that the website presents correct information when the website first loads the file. However, the users' browsers do not retrieve the updated file after a refresh.
What should a SysOps administrator recommend to fix this issue?

  • A. Add a Cache-Control header field with max-age=0 to the S3 object.
  • B. Change the CloudFront cache policy to Managed-CachingOptimized.
  • C. Disable bucket versioning in the S3 bucket configuration.
  • D. Enable content compression in the CloudFront configuration.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
princajen
Highly Voted 2 years, 7 months ago
Selected Answer: A
A! You can control how long your files stay in a CloudFront cache before CloudFront forwards another request to your origin. Reducing the duration allows you to serve dynamic content. Increasing the duration means that your users get better performance because your files are more likely to be served directly from the edge cache. A longer duration also reduces the load on your origin. To change the cache duration for an individual file, you can configure your origin to add a Cache-Control header with the max-age or s-maxage directive, or an Expires header to the file. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html
upvoted 6 times
...
be9z
Most Recent 9 months, 4 weeks ago
By adding a Cache-Control header with max-age=0 to the S3 object, you instruct CloudFront to revalidate the content on every request. When a user refreshes the page, CloudFront checks with S3 to ensure it has the latest version of the file. This approach ensures that users receive the most up-to-date content.
upvoted 2 times
...
bruppp31
1 year, 5 months ago
I think this question is wrong. By having the cache policy set to Managed-CachingDisabled all files will be fetched every time. This is also true of A if we have Managed-CachingOptimized. The answer is probably A but it shouldn't make a difference in this case.
upvoted 2 times
...
callspace
1 year, 6 months ago
Selected Answer: A
link in the comments section states: The Cache-Control max-age directive lets you specify how long (in seconds) that you want an object to remain in the cache before CloudFront gets the object again from the origin server. The minimum expiration time CloudFront supports is 0 seconds. The maximum value is 100 years. And the company continue using the Managed- CachingDisabled CloudFront cache policy.
upvoted 3 times
...
Hisayuki
2 years, 1 month ago
Selected Answer: A
You should disable Cache in Browser with Cache-Control: max-age=0.
upvoted 2 times
...
michaldavid
2 years, 4 months ago
Selected Answer: A
aaaaaaaa
upvoted 1 times
...
Atown
2 years, 5 months ago
Selected Answer: B
Would it not be B since Caching is already Disabled?
upvoted 1 times
...
Surferbolt
2 years, 6 months ago
Selected Answer: A
A is the answer.
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