1. Home
  2. Computer Science MCQs
  3. Cloud Computing
  4. A static site on CloudFront must serve a corrected file…

Added 30 Nov -0001

A static site on CloudFront must serve a corrected file immediately everywhere. Which approach avoids stale edge copies most reliably?

  1. Issue an invalidation for /* first, then upload the fixed file to the same key
  2. Set the origin's Cache-Control max-age to zero, which flushes all existing edge copies at once
  3. Reduce the default TTL to 60 seconds, which bounds how long an edge copy is stale
  4. Version the object key, such as app-v2.js, so the CDN path itself is new and uncached Correct answer

Correct answer

D. Version the object key, such as app-v2.js, so the CDN path itself is new and uncached

11 views

MCQSEXAM

Explanation

Cache busting by changing the object key makes every edge location treat the file as a brand-new object, so no invalidation is needed and the first request already misses. Invalidations work too but are limited in number and take time to propagate, while lowering max-age only bounds staleness without removing it. Versioned filenames are why build tools emit hashed asset names.

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