1. Home
  2. Computer Science MCQs
  3. Cloud Computing
  4. A CloudFront distribution has a default TTL of 86400…

Added 30 Nov -0001

A CloudFront distribution has a default TTL of 86400 seconds and a minimum TTL of 0. The origin sends Cache-Control: max-age=300. For how long does CloudFront cache the object?

  1. 86400 seconds, because the distribution default takes precedence always
  2. 0 seconds, because the minimum TTL allows revalidation on every request
  3. 300 seconds, but only when the viewer sends no conditional headers
  4. 300 seconds, because the origin header overrides the default TTL value Correct answer

Correct answer

D. 300 seconds, because the origin header overrides the default TTL value

20 views

MCQSEXAM

Explanation

CloudFront honours the origin's Cache-Control max-age when it falls between the configured minimum and default TTL, so 300 seconds wins here. The default TTL applies only when the origin sends no cache directives at all, and the minimum TTL raises shorter max-age values up to the floor. The maximum TTL caps longer directives, which is how you stop an origin from pinning stale content for a year.

Reference

Asked in: NTS, PPSC IT, Campus Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Cloud Computing MCQs

Practise all Cloud Computing MCQs

Similar MCQs