AmazonAWS Developer Associate DVA-C02 Certification ·EN ·Updated 27 Jul 2026

A developer hosts a static website on Amazon S3 and serves it through CloudFront using a custom domain. A CI/CD pipeline (triggered by CodeCommit) runs a build stage that executes a CodeBuild project referencing a buildspec.yml. The build uploads updated static files to the S3 bucket and the updates are visible at the S3 website URL, but the CloudFront distribution still serves the old content. What should the buildspec.yml do to ensure CloudFront serves the updated files?

Choose an answer

Tap an option to check your answer.

Pass your exam — without the endless answer hunt

Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.

Pass your exam faster No card needed
✓ Verified by ExamRoll editorial · Updated 27 July 2026 · Source: official academy
All-in-one access

One subscription. Every exam.

Every plan unlocks unlimited answer search, practice tests, AI explanations, and the full resource library — in 20+ languages.

Monthly
24.87
Just €0.83/day
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

Best value
12 months
179.87
Just €0.49/daySave 40%
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

✓ Free plan included · ✓ Cancel anytime · ✓ All plans unlock the full product