Topic 1 Question 99
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?
Add a Cache-Control header field with max-age=0 to the S3 object.
Change the CloudFront cache policy to Managed-CachingOptimized.
Disable bucket versioning in the S3 bucket configuration.
Enable content compression in the CloudFront configuration.
ユーザの投票
コメント(5)
- 正解だと思う選択肢: 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
👍 3princajen2022/09/04 - 正解だと思う選択肢: A
A is the answer.
👍 2Surferbolt2022/10/16 - 正解だと思う選択肢: B
Would it not be B since Caching is already Disabled?
👍 1Atown2022/11/12
シャッフルモード