Courseiva

SAP-C02 Continuous Improvement for Existing Solutions Practice Question

A company runs a static website on Amazon S3 behind Amazon CloudFront. The website uses a custom domain and SSL certificate from AWS Certificate Manager (ACM). Users report that they sometimes see an older version of the website after updates. What should the company do to ensure users always see the latest content?

⚠ Common exam trap

SAP-C02 often tests the misconception that changing origin-side settings (versioning, TTLs, or toggling the distribution) refreshes edge caches, when only an explicit CloudFront invalidation purges cached objects.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

Create a CloudFront invalidation for the updated files.

CloudFront caches objects at edge locations based on TTL and only re-fetches from the S3 origin when the cache expires or is explicitly invalidated. When a static site is updated, existing cached copies at edge locations continue to be served until they expire, which is why users sometimes see stale content. Creating a CloudFront invalidation for the updated files (or a wildcard path like /*) forces the edge locations to discard the cached objects and retrieve the latest versions from S3 on the next request.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    Disable and re-enable the CloudFront distribution after each update.

    Why it's wrong here

    Disabling and re-enabling a distribution takes many minutes to redeploy to all edge locations and does not purge cached objects, so stale content persists. It is tempting as a forceful reset, and suits recovering a distribution from a failed state rather than refreshing content.

  • ✗

    Enable S3 bucket versioning and use version IDs in URLs.

    Why it's wrong here

    Versioning retains old object versions but CloudFront still serves whatever key the URL requests; version IDs in URLs change every update and break stable links. It is tempting because versioning protects against overwrites, and suits rollback or accidental-deletion recovery, not cache freshness.

  • ✗

    Reduce the CloudFront TTL to 0 seconds for all objects.

    Why it's wrong here

    A zero TTL forces CloudFront to revalidate every object on every request, adding origin latency and cost without invalidating objects already cached at edge locations or in browsers. It is tempting as a blanket freshness guarantee, and suits rapidly changing APIs where caching is undesirable.

  • ✓

    Create a CloudFront invalidation for the updated files.

    Why this is correct

    CloudFront caches objects at edge locations until the TTL expires, so updated S3 objects can still serve stale copies. An invalidation forces edge locations to fetch the current object from the origin, satisfying the requirement that users always see the latest content.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

Courseiva writes every SAP-C02 question from scratch — 984 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Amazon Web Services exam blueprint

This SAP-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SAP-C02 exam.