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

A SysOps administrator manages the caching of an Amazon CloudFront distribution that serves pages of a website, The SysOps administrator needs to configure the distribution so that the TTL of individual pages can vary. The TTL of the individual pages must remain within the maximum TLL and the minimum TTL that are set for the distribution.

Which solution will meet these requirements?

  • A. Create an AWS Lambda function that calls the Createlnvalidation API operation when a change in cache time is necessary.
  • B. Add a Cache-Control: max-age directive to the object at the origin when content is being returned to CloudFront.
  • C. Add a no-cache header through a Lambda@Edge function in response to the Viewer response.
  • D. Add.an Expires header through a CloudFront function in response to the Viewer response.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
Gomer
Highly Voted 1 year, 4 months ago
Selected Answer: B
I'm believing that applying a custom "max-age" to individual "*.html" files ("individual pages") is the solution. (remove my duplicate response)
upvoted 5 times
...
r2c3po
Most Recent 10 months ago
Selected Answer: C
Lambda@Edge Function: Lambda@Edge allows you to run AWS Lambda functions globally, and it can be used to customize content delivered through CloudFront. In this scenario, you can create a Lambda@Edge function that modifies the Cache-Control header in the Viewer response to include the no-cache directive for specific pages. no-cache Directive: The no-cache directive indicates that the content must be revalidated with the origin server before serving it from the CloudFront cache. By adding this directive for specific pages, you can control the TTL on a per-page basis. This approach provides flexibility and allows you to override the default TTL settings for individual pages. Options A, B, and D do not offer the same level of flexibility or control for varying TTLs for individual pages.
upvoted 1 times
...
TwinSpark
1 year, 1 month ago
Selected Answer: B
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html#expiration-individual-objects "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 Expires header field lets you specify an expiration date and time using the format specified in RFC 2616, Hypertext Transfer Protocol -- HTTP/1.1 Section 3.3.1, Full Date, for example: Sat, 27 Jun 2015 23:59:59 GMT"
upvoted 4 times
...
Atest00678
1 year, 3 months ago
Selected Answer: B
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html
upvoted 3 times
...
Gomer
1 year, 4 months ago
I'm believing that applying a custom "max-age" to individual "*.html" files ("individual pages") is the solution.
upvoted 1 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