Bird
0
0

After enabling Cloud CDN, users report stale content is served. What configuration change can fix this?

medium📝 Debug Q7 of 15
GCP - Cloud Load Balancing
After enabling Cloud CDN, users report stale content is served. What configuration change can fix this?
AIncrease backend instance size
BSet Cache-Control: max-age to a lower value or use Cache Invalidation
CDisable Cloud CDN to force backend responses
DRemove HTTP(S) Load Balancer from the setup
Step-by-Step Solution
Solution:
  1. Step 1: Understand stale content cause

    Long max-age or lack of cache invalidation causes CDN to serve outdated content.
  2. Step 2: Apply corrective actions

    Lower max-age or explicitly invalidate cache to refresh content promptly.
  3. Final Answer:

    Set Cache-Control: max-age to a lower value or use Cache Invalidation -> Option B
  4. Quick Check:

    Fix stale cache = Lower max-age or invalidate [OK]
Quick Trick: Use cache invalidation or reduce max-age to refresh content [OK]
Common Mistakes:
  • Disabling CDN instead of fixing cache settings
  • Scaling backend unrelated to cache freshness
  • Removing load balancer breaks CDN

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes