0
0
GCPcloud~20 mins

Cloud CDN integration in GCP - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Cloud CDN Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Architecture
intermediate
2:00remaining
Designing a scalable Cloud CDN setup for a global website

You need to design a Cloud CDN integration for a website that serves users worldwide. Which architecture best ensures low latency and high availability?

AUse Cloud CDN directly without a load balancer, pointing to backend VMs in one region.
BDeploy multiple backend instance groups in multiple regions behind a global HTTP(S) Load Balancer with Cloud CDN enabled.
CUse a single backend instance group in one region with Cloud CDN enabled.
DDeploy backend instance groups in multiple zones within one region and enable Cloud CDN on each.
Attempts:
2 left
💡 Hint

Think about how Google Cloud distributes traffic globally and caches content close to users.

scaling
intermediate
2:00remaining
Estimating cache hit ratio impact on backend load

Your Cloud CDN cache hit ratio improves from 60% to 90%. How does this affect the backend server load?

ABackend load decreases by 90% because all requests are served from cache.
BBackend load increases by 30% due to more cache misses.
CBackend load remains the same because cache hit ratio does not affect origin traffic.
DBackend load decreases by 30% because fewer requests reach the origin.
Attempts:
2 left
💡 Hint

Cache hit ratio means the percentage of requests served by the CDN cache instead of the backend.

tradeoff
advanced
2:00remaining
Choosing between Cloud CDN and Cloud Storage for static content delivery

You have static assets stored in Cloud Storage. You want to serve them globally with low latency. What is the main tradeoff when enabling Cloud CDN in front of Cloud Storage?

ACloud CDN adds caching and reduces latency but increases cost due to cache egress charges.
BCloud CDN reduces cost but increases latency because it bypasses edge locations.
CCloud CDN disables caching and serves content directly from Cloud Storage, increasing latency.
DCloud CDN automatically compresses content but does not cache it, so no latency benefit.
Attempts:
2 left
💡 Hint

Consider how caching affects cost and performance.

🧠 Conceptual
advanced
2:00remaining
Understanding cache invalidation in Cloud CDN

After updating your website content, you want Cloud CDN to serve the new version immediately. Which method correctly invalidates cached content?

AUse the Cloud CDN cache invalidation API to specify URLs to purge from cache.
BWait for the cache TTL to expire; no manual invalidation is possible.
CDelete the backend instance group to clear the cache.
DDisable and re-enable Cloud CDN on the backend service.
Attempts:
2 left
💡 Hint

Think about how to remove specific cached content without downtime.

estimation
expert
3:00remaining
Estimating required cache capacity for a high-traffic website

Your website receives 10 million requests per day. Average response size is 500 KB. You expect a 75% cache hit ratio. Estimate the daily data served from Cloud CDN cache edges.

AApproximately 10 TB per day served from cache edges.
BApproximately 5 TB per day served from cache edges.
CApproximately 3.75 TB per day served from cache edges.
DApproximately 1.25 TB per day served from cache edges.
Attempts:
2 left
💡 Hint

Calculate total data, then multiply by cache hit ratio.