DVA-C02 Troubleshooting and Optimization Practice Question
A developer is using Amazon CloudFront to serve static content from an S3 bucket. Users are reporting that they see outdated content. The CloudFront distribution has a default TTL of 24 hours. What is the MOST efficient way to serve updated content immediately?
⚠ Common exam trap
DVA-C02 often tests the misconception that changing TTL settings or disabling the distribution is a quick fix for cache updates, but the most efficient and immediate method is invalidation.
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 objects.
Creating a CloudFront invalidation for the updated objects is the most efficient way to immediately serve updated content because it forces CloudFront to fetch the latest version from the origin, bypassing the cached copies. This method is targeted and does not affect other cached objects, making it ideal for urgent updates.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Create a CloudFront invalidation for the updated objects.
Why this is correct
Creating a CloudFront invalidation is the precise and recommended method to force edge locations to remove specific cached objects. When an object in the origin is updated, an invalidation request explicitly tells CloudFront to delete the old version from all edge caches, compelling subsequent user requests for that object to fetch the newest version directly from the origin. This ensures immediate content freshness across the entire distribution without affecting other cached items.
- ✗
Disable and re-enable the CloudFront distribution.
Why it's wrong here
Disabling a CloudFront distribution causes a complete service interruption, making all content served through it temporarily unavailable to end-users. While re-enabling it would eventually restore service, this drastic action is not an efficient or appropriate mechanism for merely updating specific cached content. It introduces unnecessary downtime and does not guarantee immediate cache refresh for individual objects, making it a highly disruptive and inefficient solution.
- ✗
Update the object key in the S3 bucket.
Why it's wrong here
Updating an object's key, such as its filename, in the S3 bucket effectively creates a new, distinct object with a new URL. CloudFront's edge caches, however, would continue to serve the *original* object under its *old* key until its configured TTL expires or an explicit invalidation is performed for that old key. This approach necessitates updating all references to the object across your application, which is cumbersome and fails to address the problem of stale content being served from the original URL.
- ✗
Change the default TTL to 0.
Why it's wrong here
Changing the default TTL (Time To Live) setting in a CloudFront distribution only dictates the caching duration for *newly ingested* objects. This modification does not retroactively affect or invalidate objects already present in CloudFront's edge caches; those existing objects will continue to be served based on their original TTL. Therefore, simply adjusting the TTL will not immediately propagate updated content to users, as it fails to address the stale content already residing at the edge.
Quick reference
AWS S3 Storage Class Comparison
| Storage Class | Min Duration | Retrieval | Use Case |
|---|---|---|---|
| S3 Standard | None | Immediate | Frequently accessed data |
| S3 Standard-IA | 30 days | Immediate | Infrequent access, rapid retrieval |
| S3 One Zone-IA | 30 days | Immediate | Non-critical infrequent data |
| S3 Intelligent-Tiering | None | Immediate–hours | Unknown or changing access patterns |
| S3 Glacier Instant | 90 days | Milliseconds | Archive with instant retrieval |
| S3 Glacier Flexible | 90 days | Minutes–hours | Archive, flexible retrieval |
| S3 Glacier Deep Archive | 180 days | Hours | Long-term compliance archive |
Go deeper
Related to this question
About these practice questions
This DVA-C02 question is part of Courseiva's 1,135-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
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 DVA-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 DVA-C02 exam.