Skip to main content

DVA-C02 practice question · Development with AWS Services

After deploying an update to a static asset in S3, users behind CloudFront continue seeing the old cached version until…

After deploying an update to a static asset in S3, users behind CloudFront continue seeing the old cached version until the TTL expires. What can the team do to force CloudFront to fetch the updated version immediately?

  • ACreate a CloudFront invalidation for the affected path(s)
  • BDelete and recreate the entire CloudFront distribution
  • CWait for the S3 object's version ID to change automatically with no other action
  • DIncrease the origin's read replica count
Show the answer and explanation

Correct answer: A) Create a CloudFront invalidation for the affected path(s)

Why each option is right or wrong

  • A) Correct. An invalidation request tells CloudFront to treat cached copies of the specified paths as expired immediately, forcing the next request to fetch a fresh copy from the origin, rather than waiting for the normal TTL to elapse.
  • B) Incorrect. Recreating the whole distribution is a drastic, disruptive way to solve what invalidation handles directly and non-disruptively for specific paths.
  • C) Incorrect. A version ID changing in S3 doesn't automatically invalidate CloudFront's existing cached copy — an explicit invalidation (or a cache-busting filename/version in the URL) is needed.
  • D) Incorrect. Read replicas are a relational database concept, unrelated to CloudFront's caching of S3 content.
Exam domain
Development with AWS Services · 32% of DVA-C02
Question type
Multiple choice (one answer)

Practise the full DVA-C02 exam

This question is one of a small free sample from the CertRidge DVA-C02 bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with AWS; never copied from the real exam.

Worth reading: DVA-C02 cheat sheet, Lambda, DynamoDB, API Gateway, IAM and Cognito, messaging, CI/CD and X-Ray in tables, plus what DVA-C03 changes.