SAP-C02 Cache hit ratio Practice Question
A company is using Amazon CloudFront to distribute content globally. They want to improve the cache hit ratio. Which TWO actions are most effective? (Choose two.)
⚠ Common exam trap
A common trap is thinking that serving stale or cached content on errors improves cache hit ratio, but it only improves availability. Also, shortening TTL reduces cache hits, not improves.
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
✓
Configure the cache behavior to forward all query strings but cache based on a whitelist.
Forwarding all query strings but caching based on a whitelist prevents cache fragmentation from unnecessary query parameters, improving the cache hit ratio. Option B is correct because increasing the minimum TTL ensures objects remain in the cache for a longer duration, increasing the likelihood of cache hits. Option C is incorrect because custom error responses serve alternative content on errors but do not improve the cache hit ratio. Option D is incorrect because decreasing the default TTL reduces cache duration, leading to more misses. Option E is incorrect because compression improves transfer speed and reduces bandwidth, not the cache hit ratio.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Configure the cache behavior to forward all query strings but cache based on a whitelist.
Why this is correct
This prevents multiple cache entries for different query string orders.
- ✓
Increase the minimum TTL for objects.
Why this is correct
Longer TTL keeps objects in cache longer.
- ✗
Configure custom error responses to serve cached content on errors.
Why it's wrong here
This doesn't improve cache hit ratio.
- ✗
Decrease the default TTL for objects.
Why it's wrong here
Shorter TTL reduces cache hits.
- ✗
Enable automatic compression for compressible objects.
Why it's wrong here
Compression improves performance but not cache hit ratio.
Go deeper
Related to this question
About these practice questions
This SAP-C02 question is part of Courseiva's 1,660-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 by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
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.