ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 320 - SOA-C02 discussion

Report
Export

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 TTL 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 Create Invalid at ion API operation when a change in cache time is necessary.
Answers
A.
Create an AWS Lambda function that calls the Create Invalid at ion 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.
Answers
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.
Answers
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.
Answers
D.
Add an Expires header through a CloudFront function in response to the Viewer response.
Suggested answer: B

Explanation:

To allow the TTL (Time to Live) of individual pages to vary while adhering to the maximum and minimum TTL settings configured for the Amazon CloudFront distribution, setting cache behaviors directly at the origin is most effective:

Use Cache-Control Headers: By configuring the Cache-Control: max-age directive in the HTTP headers of the objects served from the origin, you can specify how long an object should be cached by CloudFront before it is considered stale.

Integration with CloudFront: When CloudFront receives a request for an object, it checks the cache-control header to determine the TTL for that specific object. This allows individual objects to have their own TTL settings, as long as they are within the globally set minimum and maximum TTL values for the distribution.

Operational Efficiency: This method does not require any additional AWS services or modifications to the distribution settings. It leverages HTTP standard practices, ensuring compatibility and ease of management.

Implementing the TTL management through cache-control headers at the origin provides precise control over caching behavior, aligning with varying content freshness requirements without complex configurations.

asked 16/09/2024
Tyrome Myatt
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first